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

Error while running background job OCA\Collectives\BackgroundJob\IndexCollectives #1448

Closed
davidfrickert opened this issue Aug 26, 2024 · 1 comment · Fixed by #1449
Closed
Assignees
Labels
bug Something isn't working

Comments

@davidfrickert
Copy link

davidfrickert commented Aug 26, 2024

Describe the bug
Nextcloud logs are full of errors on IndexCollectives cronjob, e.g.:

file_get_contents(/var/www/html/data/appdata_ocrblmvzwlmq/collectives/1/Kubernetes Cluster/Migrations.md): Failed to open stream: No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#331 

Looking at the filesystem, this file indeed does not exist, as it is a folder, due to it being a parent page to other subpages.

root@nextcloud-555c8b79f9-9c56s:/var/www/html/data/appdata_ocrblmvzwlmq/collectives/1/Kubernetes Cluster# ls
Debugging  Migrations  Readme.md  Renovate  Storage
root@nextcloud-555c8b79f9-9c56s:/var/www/html/data/appdata_ocrblmvzwlmq/collectives/1/Kubernetes Cluster# cd Migrations/
root@nextcloud-555c8b79f9-9c56s:/var/www/html/data/appdata_ocrblmvzwlmq/collectives/1/Kubernetes Cluster/Migrations# ls
 Readme.md  'SQlite3 to Postgres.md'

This is an example structure that gives these errors in the logs:

image

To Reproduce
?

Expected behavior
No errors in logs from IndexCollectives

Screenshots
If applicable, add screenshots to help explain your problem.

Server details:

  • Collectives app version: 2.14.2
  • Nextcloud version: 29.0.5
  • PHP Version: ? (official NC docker image)
  • Database: Postgres 16.3
Logs

Nextcloud log (data/nextcloud.log)

GenericFileException Error while running background job OCA\Collectives\BackgroundJob\IndexCollectives (id: 76559, arguments: null)
Error while running background job OCA\Collectives\BackgroundJob\IndexCollectives (id: 76559, arguments: null)
	
file_get_contents(/var/www/html/data/appdata_ocrblmvzwlmq/collectives/1/Kubernetes Cluster/Migrations.md): Failed to open stream: No such file or directory at /var/www/html/lib/private/Files/Storage/Local.php#331 
@davidfrickert davidfrickert added the bug Something isn't working label Aug 26, 2024
@mejo- mejo- self-assigned this Aug 28, 2024
mejo- added a commit that referenced this issue Aug 28, 2024
@mejo-
Copy link
Member

mejo- commented Aug 28, 2024

Thanks for the report @davidfrickert, good finding. It seems like some files went missing on your filesystem while they're still indexed in the filecache database table. Still, indexing shouldn't error in this case. I'll push a fix.

mejo- added a commit that referenced this issue Aug 28, 2024
mejo- added a commit that referenced this issue Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: ☑️ Done
Development

Successfully merging a pull request may close this issue.

3 participants
@mejo- @davidfrickert and others