-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Updating to NC 26 - "This version of Nextcloud requires at least PHP 8.0" #1781
Comments
I may have had a similar issue. Check your ncp.cfg file and try set the line for php version from 8.1 to 7.4. |
Thanks for the reponse @mayermart . Can you point me to where I can find the ncp.cfg file? I'm still very much learning my way around nextcloudpi and I'm having trouble figuring that out. |
Sure, that file ist located at /usr/local/etc/ncp.cfg |
Found the solution! Long story short, I had to update specifically to NC 25.0.6 through the terminal before trying to update to NC latest (26.0.1). Apparently going to 25.0.6 is the way to get PHP correctly updated. Credit goes to: https://help.nextcloud.com/t/i-have-latest-nextcloudpi-version-but-dated-php-version/161951. Not sure why I couldn't find that post until now. |
I too was getting the same PHP version error Updating to version 25.0.7 via the terminal triggered PHP to update to version 8.x and then I was successfully able to update to NC 26 Edit: Just read the change log "[v1.51.3] Add support for Nextcloud 25.0.6" so might be best to update to 25.0.6 instead of 25.0.7 |
Hi. Happy to see I'm not the only one in this loop hole ! |
What should we do the ones that skipped 5.0.26 and are already in 5.0.28 with PHP7.4? |
I, too, face this issue now through auto update. Are there any solutions by now. AFAIK, Debian 11 which OP and I are running does not ship PHP8. Will NCP bring its own PHP? All input is appreciated. |
@chronohart according to your logs you suffer from an old issue as well, there is a duplicate symlink to Zend opcache... see details hrere: #416 (comment) |
Thanks for spotting that! I'll look into it. |
Changing the line did not change the behavior of ncp-update-nc for me. The ncp-update-nc script checks if the PHPVER (set in library.sh which reads from ncp.cfg file) is more recent than 8.1. Even though 8.1 is not installed, the ncp.cfg indicates so and does so again after every attempt to upgrade nc. The "Upgrading PHP..." line never gets echoed as you can see in the attached log. I had upgraded from 24.something to 25.0.6 (which installed 25.0.6.1). The attempt to update to 26.0.3 failed. An attempt to upgrade to 25.0.7 did not fix the issue and I still cant install 26.0.3. I feel like this is a bug in the update script. The linked forum post indicated a solution with an updated script, which apparently put the Upgrading of PHP at the top of the script. Maybe this is a potential fix? I am on the current ncp version v1.52.4, which runs on by Raspberry Pi. |
Hi, I've the same problem. I'm at Nextcloud version 25.0.13.2 and PHP 7.4.33. And I can't update to v26.0.3, because of this error. Is there any way to upgrade PHP version? I came from v20 and updated all versions including dist-upgrade and everything was working very well so far. I guess there is any way to solve this. Thanks in advance. |
Hi there - we are still stuck in NC 25 and support is an unsupported version. |
Attempting to update from NC 25 to NC 26 through the cli, the process aborts and reverts back to NC 25 with the message "This version of Nextcloud requires at least PHP 8.0
You are currently running 7.4.33. Please update your PHP version.Abort".
Output from nc-update-nextcloud
Running nc-update-nextcloud
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Current Nextcloud version 25.0.3.2
Available Nextcloud version 26.0.1
Download Nextcloud 26.0.1...
Back up current instance...
Cannot load Zend OPcache - it was already loaded
check free space...
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Maintenance mode enabled
backup database...
backup files...
backup /var/www/nextcloud-bkp_20230527_1685197459.tar.gz generated
Cannot load Zend OPcache - it was already loaded
Maintenance mode disabled
Storing backup at '/var/www/nextcloud-bkp_20230527_1685197459-25.0.3.2.tar.gz'...
Install Nextcloud 26.0.1...
Fix permissions...
Upgrade...
Cannot load Zend OPcache - it was already loaded
This version of Nextcloud requires at least PHP 8.0
You are currently running 7.4.33. Please update your PHP version.Abort
Clean up...
Rolling back to backup /var/www/nextcloud-bkp_20230527_1685197459-25.0.3.2.tar.gz...
check free space...
extracting backup file /var/www/nextcloud-bkp_20230527_1685197459-25.0.3.2.tar.gz...
restore files...
restore database...
Cannot load Zend OPcache - it was already loaded
No datadir found in backup
Cannot load Zend OPcache - it was already loaded
Maintenance mode disabled
Cannot load Zend OPcache - it was already loaded
Starting scan for user 1 out of 4 (chronohart)
Starting scan for user 2 out of 4 (guest)
Starting scan for user 3 out of 4 (jgturbin)
Starting scan for user 4 out of 4 (ncp)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 152 | 2311 | 00:00:03 |
+---------+-------+--------------+
Installing template 'php/opcache.ini.sh'...
Cannot load Zend OPcache - it was already loaded
System config value tempdirectory set to string /media/myCloudDrive/ncdata/tmp
Cannot load Zend OPcache - it was already loaded
System config value logfile set to string /media/myCloudDrive/ncdata/nextcloud.log
Cannot load Zend OPcache - it was already loaded
System config value trusted_domains => 11 set to string 74.97.29.229
Cannot load Zend OPcache - it was already loaded
System config value trusted_domains => 1 set to string 192.168.1.10
Cannot load Zend OPcache - it was already loaded
System config value trusted_domains => 14 set to string nextcloudpi
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Scanning AppData for files
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 9946 | 2568 | 00:00:53 |
+---------+-------+--------------+
Cleanup...
Rollback successful. Nothing was updated
Done. Press any key...
System information
NextcloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: