The versions of Nextcloud that Fedora ships do not support PHP 8.1, the version shipped by Fedora Rawhide at the time of this bug report. They require 7.3-7.4. Trying to install and configure Nextcloud fails immediately due to the version check enforcing this.
This is still an issue in the Fedora 36 beta. After upgrading my system, visiting my Nextcloud page displays this error message: --- This version of Nextcloud is not compatible with > PHP 8.0. You are currently running 8.1.4.
It looks like only PHP versions _higher_ than 8.0 are forbidden, while 8.0 is allowed: https://github.com/nextcloud/server/blob/stable22/lib/versioncheck.php#L36 In any case, commenting out this check (in /usr/share/nextcloud/lib/versioncheck.php) allows Nextcloud to run.
Hello, Sorry for the delay. This appears to be a problem since there's no PHP < 8.0 for Fedora 36 and upwards. Nextcloud 24 [1] now supports PHP <= 8.2, will bump the package to this version. [1] https://github.com/nextcloud/server/releases
@ichavero any news on an update for F36?
Ivan, I went ahead and tested the 24.0.2 update on my Fedora 36 Nextcloud instance. Files, Photos, Contacts, Calendar, etc. all work well. I went ahead and created a PR for you to review. I believe a one-time waiver to allow this update into F36 is needed due to the PHP version issue. https://src.fedoraproject.org/rpms/nextcloud/pull-request/6
(In reply to Michael Cronenworth from comment #5) > Ivan, I went ahead and tested the 24.0.2 update on my Fedora 36 Nextcloud > instance. Files, Photos, Contacts, Calendar, etc. all work well. I went > ahead and created a PR for you to review. I believe a one-time waiver to > allow this update into F36 is needed due to the PHP version issue. > > https://src.fedoraproject.org/rpms/nextcloud/pull-request/6 Thanks! I've already created the spec file for 24.0.0 and created the scratch builds for rawhide, but since you already tested 24.0.2 I'll update it to this version.
Unable to run Nextcloud. Package version of Nextcloud is v22 which does not support PHP8. New installation of Fedora 36 Server since release. Current OS Version : Fedora release 36 (Thirty Six) 5.18.10-200.fc36.x86_64 Current Nextcloud package : Name : nextcloud Version : 22.1.0 Release : 2.fc36 Architecture : noarch Size : 406 M Source : nextcloud-22.1.0-2.fc36.src.rpm Repository : @System From repo : fedora Current PHP package : Name : php Version : 8.1.7 Release : 1.fc36 Architecture : x86_64 Size : 0.0 Source : php-8.1.7-1.fc36.src.rpm Repository : @System From repo : updates Please update to a version that supports PHP8 or downgrade the system version of PHP.
Created attachment 1896233 [details] Screenshot
Created attachment 1896234 [details] Integrity check
It appears that this package also does not include some files that are included in the base source which cause an error in Nextcloud Admin GUI. I am using the hack mentioned above to upgrade to the latest version (versioncheck.php) to ignore the requirement check for PHP. I have attached the error message and list of files that fail the integrity check fyi.
Unable to run the web upgrade. See attached screenshot.
Created attachment 1896283 [details] Nextcloud upgrade
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37.
FEDORA-2023-ed33f2d60a has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ed33f2d60a
FEDORA-2023-815a43e875 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-815a43e875
FEDORA-2023-ed33f2d60a has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-ed33f2d60a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-ed33f2d60a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-815a43e875 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-815a43e875` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-815a43e875 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
*** Bug 2169537 has been marked as a duplicate of this bug. ***
This is fixed for me on the Fedora 39 beta & nextcloud-27.0.2-2.fc39.noarch.
FEDORA-2023-815a43e875 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-ed33f2d60a has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
This issue has cropped up again in the Fedora 40 beta. After upgrading my system, visiting my Nextcloud page displays this error message: > This version of Nextcloud is not compatible with PHP>=8.3. > You are currently running 8.3.3. Package versions are: - nextcloud-27.0.2-4.fc40.noarch - php-common-8.3.3-1.fc40.x86_64 I'll attempt downgrading to Fedora 39's php-common (8.2.16) to temporarily resolve this. Nextcloud 28 does support php 8.3 [1], and is a stable release, so perhaps Fedora 40 should ship that instead of Nextcloud 27. [1] https://docs.nextcloud.com/server/stable/admin_manual/installation/system_requirements.html#server
> I'll attempt downgrading to Fedora 39's php-common (8.2.16) to temporarily resolve this. For the record, this worked.