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]: Cron Error: Call to undefined method OC\Files\Node\File::getDirectoryListing() #32450

Closed
5 of 8 tasks
escoand opened this issue May 17, 2022 · 4 comments · Fixed by #32956
Closed
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@escoand
Copy link
Contributor

escoand commented May 17, 2022

⚠️ 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.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Executing the cron.php from time to time causes this error:

Error: Call to undefined method OC\Files\Node\File::getDirectoryListing() in /var/www/html/apps/dav/lib/BackgroundJob/UploadCleanup.php:74
Stack trace:
#0 /var/www/html/lib/public/BackgroundJob/Job.php(79): OCA\DAV\BackgroundJob\UploadCleanup->run(Array)
#1 /var/www/html/lib/public/BackgroundJob/TimedJob.php(95): OCP\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#2 /var/www/html/cron.php(151): OCP\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
#3 {main}

This is already happening longer time but just maybe once a week or so.

Steps to reproduce

unknown

Expected behavior

no error

Installation method

Official Docker image

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MariaDB

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

No response

List of activated Apps

Enabled:
  - calendar: 3.3.0
  - cloud_federation_api: 1.7.0
  - contacts: 4.1.0
  - dav: 1.22.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_external: 1.16.1
  - files_pdfviewer: 2.5.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - groupfolders: 12.0.0
  - impersonate: 1.11.0
  - keeweb: 0.6.9
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - mail: 1.12.0
  - metadata: 0.16.0
  - news: 15.4.5
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - password_policy: 1.14.0
  - photos: 1.6.0
  - previewgenerator: 4.0.0
  - provisioning_api: 1.14.0
  - ransomware_protection: 1.13.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - text: 3.5.1
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - twofactor_nextcloud_notification: 3.4.0
  - updatenotification: 1.14.0
  - viewer: 1.8.0
  - workflowengine: 2.6.0
Disabled:
  - accessibility: 1.6.0
  - activity: 2.13.4
  - admin_audit: 1.10.0
  - circles: 24.0.0
  - comments: 1.11.0
  - contactsinteraction: 1.2.0
  - dashboard: 7.1.0
  - encryption
  - facerecognition: 0.8.2
  - files_rightclick: 0.15.1
  - firstrunwizard: 2.2.1
  - nextcloud_announcements: 1.2.0
  - privacy: 1.0.0
  - recommendations: 0.4.0
  - support: 1.0.0
  - survey_client: 0.1.5
  - systemtags: 1.12.0
  - tasks: 0.14.4
  - user_ldap
  - user_status: 1.0.0
  - weather_status: 1.0.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

@escoand escoand added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 17, 2022
@solracsf solracsf changed the title [Bug]: Error when running cron [Bug]: Cron Error: Call to undefined method OC\Files\Node\File::getDirectoryListing() May 18, 2022
@PVince81
Copy link
Member

assuming you're using Nextcloud 24.0.0

@icewind1991 might look like the issue we fixed recently ?

@escoand
Copy link
Contributor Author

escoand commented May 19, 2022

assuming you're using Nextcloud 24.0.0

Yes, but happening since 22 I think...

@escoand
Copy link
Contributor Author

escoand commented Jun 18, 2022

At the moment the error is thrown once per day. Interesstingly the time is moving, every day it's 5 minutes later than the day before.

CarlSchwan added a commit that referenced this issue Jun 21, 2022
Fix #32450

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
Copy link
Member

Fix in #32956

CarlSchwan added a commit that referenced this issue Jun 21, 2022
Fix #32450

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
CarlSchwan added a commit that referenced this issue Jun 21, 2022
Fix #32450

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
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 bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants