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

"php occ trashbin:cleanup" removes files_trashbin/files from filesystem #4743

Closed
daniela-waranie opened this issue May 8, 2017 · 4 comments
Labels
bug feature: trashbin stale Ticket or PR with no recent activity

Comments

@daniela-waranie
Copy link

daniela-waranie commented May 8, 2017

After running this command :
php occ trashbin:cleanup

I get the following error (my data dir is /vagrant/data/owncloud):
Error PHP opendir(/vagrant/data/owncloud/admin/files_trashbin/files): failed to open dir: No such file or directory at /var/www/nextcloud/lib/private/files/storage/local.php#100 2017-05-08T15:23:51+00:00 admin
The "trashbin:cleanup" removed files_trashbin/files dir in each user-dir.

While it can be easy repaired it should be fixed in occ.
By the way: would be nice if occ will be renamed to ncc. Next occ should issue a deprication warning before forwarding command to ncc - for a while.

@MorrisJobke
Copy link
Member

cc @icewind1991 @schiessle

@daniela-waranie
Copy link
Author

Background: i'm on a migration path from owncloud 8.2.11 to nextcloud 11.0.3.
The first migration step was to migrate to nextcloud 9.0.58. I ran that "occ" command with nextcloud 9.0.58.

Even if support for nc9 is end-of-life i think "migration-support" should be still available, because nc9 is subject of the recommended migration path. The above command is a basic admin task.

@MorrisJobke
Copy link
Member

By the way: would be nice if occ will be renamed to ncc. Next occ should issue a deprication warning before forwarding command to ncc - for a while.

We know, but as of now this has no priority and only cause more confusion ;)

And you are right - the migration path should be kept stable.

@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2019

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

I'm guessing we fixed this already as we create the dir if it is missing now.

@skjnldsv skjnldsv closed this as completed Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: trashbin stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

4 participants