Skip to content
New issue

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

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

Already on GitHub? # to your account

Nextcloud 22 cron failure #247

Closed
mejo- opened this issue Sep 26, 2021 · 5 comments
Closed

Nextcloud 22 cron failure #247

mejo- opened this issue Sep 26, 2021 · 5 comments
Labels
backend bug: regression bug Something isn't working

Comments

@mejo-
Copy link
Member

mejo- commented Sep 26, 2021

In GitLab by @crobarcro on Sep 26, 2021, 08:10

After upgrading to Nextcloud 22 I get the following error from the cron job

Error: Call to undefined function OCA\Collectives\Versions\isNull() in /var/www/nextcloud/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php:124
Stack trace:
#0 /var/www/nextcloud/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php(112): OCA\Collectives\Versions\CollectiveVersionsExpireManager->expireFolder()
#1 /var/www/nextcloud/apps/collectives/lib/BackgroundJob/ExpirePageVersions.php(32): OCA\Collectives\Versions\CollectiveVersionsExpireManager->expireAll()
#2 /var/www/nextcloud/lib/public/BackgroundJob/Job.php(79): OCA\Collectives\BackgroundJob\ExpirePageVersions->run()
#3 /var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php(63): OCP\BackgroundJob\Job->execute()
#4 /var/www/nextcloud/cron.php(127): OCP\BackgroundJob\TimedJob->execute()
#5 {main}

not sure if this preventing th ecron job from completing

@mejo-
Copy link
Member Author

mejo- commented Sep 26, 2021

In GitLab by @crobarcro on Sep 26, 2021, 23:32

To add a little more info, I have only had this error about 2 times since upgrade, so over about 24 hours.

@mejo-
Copy link
Member Author

mejo- commented Sep 28, 2021

In GitLab by @inos-github on Sep 28, 2021, 17:27

The error occurs every 13 hours
and I had the same on NC21 already

@mejo-
Copy link
Member Author

mejo- commented Oct 7, 2021

In GitLab by @mspae on Oct 7, 2021, 09:27

I can confirm having this exact error too. Error is thrown by every cron run.

Running the cron.php task manually does not trigger the error. :

I believe here https://gitlab.com/collectivecloud/collectives/-/blob/main/lib/Versions/CollectiveVersionsExpireManager.php#L124 is the problem. I think is_null and isNull (https://nextcloud-server.netlify.app/classes/ocp-db-querybuilder-iexpressionbuilder#method_isNull) were confused. I think is_null would be correct. I'm only guessing here though …

@mejo-
Copy link
Member Author

mejo- commented Oct 19, 2021

mentioned in commit 73a4c8c

@mejo-
Copy link
Member Author

mejo- commented Oct 20, 2021

mentioned in commit e699a2a

@mejo- mejo- closed this as completed Dec 13, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
backend bug: regression bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant