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

[Bug]: previews are not getting deleted after file removal #35290

Closed
5 of 9 tasks
tobiasKaminsky opened this issue Nov 21, 2022 · 4 comments
Closed
5 of 9 tasks

[Bug]: previews are not getting deleted after file removal #35290

tobiasKaminsky opened this issue Nov 21, 2022 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 25-feedback bug

Comments

@tobiasKaminsky
Copy link
Member

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Preview files are not getting deleted.

Steps to reproduce

  1. upload an image
  2. see 2-x preview files in data/appdata/preview
  3. delete file, remove it from trash
  4. run cron.php (for potential cleanup)
  5. see those files still there

Expected behavior

Preview files should get deleted after removing the file.

Installation method

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database engine version

No response

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

Docker with latest master

List of activated Apps

/

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@tobiasKaminsky tobiasKaminsky added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Nov 21, 2022
@tobiasKaminsky
Copy link
Member Author

In addition it would then be great to have a cleanup task to get the old previews removed.

@juliusknorr
Copy link
Member

The job is only running once per hour:

$this->setInterval(3600);
Maybe you can check your oc_jobs table if that job was recently executed

@tobiasKaminsky
Copy link
Member Author

tobiasKaminsky commented Dec 1, 2022

This works!
Thanks.

@tobiasKaminsky
Copy link
Member Author

However it does not seem to delete the empty folders, but this might not be needed:

./6
./6/7
./6/7/c
./6/7/c/6
./6/7/c/6/a
./6/7/c/6/a/1
./6/7/c/6/a/1/e
./a
./a/d
./a/d/6
./a/d/6/1
./a/d/6/1/a
./a/d/6/1/a/b
./a/d/6/1/a/b/1
./a/d/6/1/a/b/1/74
./a/d/6/1/a/b/1/74/
./a/d/6/1/a/b/1/74/
./d
./d/0
./d/0/9
./d/0/9/b
./d/0/9/b/f
./d/0/9/b/f/4
./d/0/9/b/f/4/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 25-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants