Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

occ maintenance:repair should fix missing directories in user data directories. #5446

Closed
JoveToo opened this issue Jun 16, 2017 · 2 comments
Closed

Comments

@JoveToo
Copy link

JoveToo commented Jun 16, 2017

Steps to reproduce

  1. delete "data/user/files"
  2. run occ files:scan -all -> error
  3. run occ maintenance:repair
  4. run occ files:scan -all -> still error

Expected behaviour

maintenance:repair should restore obviously missing and required directories.

optionally, the core file module should restore the missing directory.

Actual behaviour

directory is not restored and error can only be recovered from manually.

@MorrisJobke
Copy link
Member

delete "data/user/files"

Don't do this.

maintenance:repair should restore obviously missing and required directories.

Not really. It repairs known bugs and not stuff that the admin randomly deletes.

@JoveToo
Copy link
Author

JoveToo commented Jul 18, 2017

delete "data/user/files"

Don't do this.

Not deliberately, no. I am unsure how this directory got deleted, probably when I was messing around trying to get migrated from owncloud or perhaps when I was trying to get those files stored on a different logical volume. These things happen.

In any case, the result was a permissions error. I had to strace the php binary to find out that the error was thrown because the scripts tried to access a directory that didn't exist. If you don't want maintenance::repair to automatically correct such flaws, so be it but then accurate error reporting would be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants