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.php not support background command php 8.2.0 #35709

Closed
5 of 9 tasks
tigernero79 opened this issue Dec 9, 2022 · 7 comments
Closed
5 of 9 tasks

[Bug]: cron.php not support background command php 8.2.0 #35709

tigernero79 opened this issue Dec 9, 2022 · 7 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 25-feedback bug needs info

Comments

@tigernero79
Copy link

⚠️ 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

Nextcloud not support background command cron.php is i have php 8.2.0

Error command in crontab -u www-data -e

*/5 * * * * php -f /var/www/Pensierando/nx/cron.php

Steps to reproduce

Nextcloud not support background command cron.php is i have php 8.2.0

Error command in crontab -u www-data -e

*/5 * * * * php -f /var/www/Pensierando/nx/cron.php

Expected behavior

Nextcloud not support background command cron.php is i have php 8.2.0

Error command in crontab -u www-data -e

*/5 * * * * php -f /var/www/Pensierando/nx/cron.php

Installation method

Official All-in-One appliance

Operating system

Debian/Ubuntu

PHP engine version

Other

Web server

Apache (supported)

Database engine version

MariaDB

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

Nextcloud not support background command cron.php is i have php 8.2.0

Error command in crontab -u www-data -e

*/5  *  *  *  * php -f /var/www/Pensierando/nx/cron.php

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@tigernero79 tigernero79 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Dec 9, 2022
@szaimen
Copy link
Contributor

szaimen commented Dec 10, 2022

Hi, which nc version?

@tigernero79
Copy link
Author

Version 25.0.2

@szaimen
Copy link
Contributor

szaimen commented Dec 10, 2022

Can you share your Nextcloud logs?

@tigernero79
Copy link
Author

tigernero79 commented Dec 10, 2022

yes
nextcloud.log

Senza titolo

@szaimen
Copy link
Contributor

szaimen commented Dec 10, 2022

Thanks, see #32595

@szaimen szaimen closed this as completed Dec 10, 2022
@ze-nite
Copy link

ze-nite commented Dec 11, 2022

I solved this bug by changing the cronjob to execute with php8.1 instead of php that defaults to php8.2 which isnt supported yet in nextcloud

image

@bcutter
Copy link

bcutter commented Dec 14, 2022

I solved this bug by changing the cronjob to execute with php8.1 instead of php that defaults to php8.2 which isnt supported yet in nextcloud

image

You could probably also just use update-alternatives (see e. g. https://blog.mediendezign.com/debian-ubuntu-php-version-aendern/) depending on your system.

Mine was updated to PHP 8.2 automatically and OCC initially stopped working. So I set PHP for the whole system manually to 8.1 until NC will officially support PHP 8.2.

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 needs info
Projects
None yet
Development

No branches or pull requests

4 participants