Bug 2071843 - Nextcloud is shipped with wrong PHP version
Summary: Nextcloud is shipped with wrong PHP version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nextcloud
Version: 37
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ivan Chavero
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2169537 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-04 23:14 UTC by Janet Blackquill
Modified: 2024-03-10 23:28 UTC (History)
7 users (show)

Fixed In Version: nextcloud-27.0.2-2.fc38 nextcloud-27.0.2-2.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-10-12 01:44:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot (10.43 KB, image/png)
2022-07-12 05:45 UTC, Bradi
no flags Details
Integrity check (84.97 KB, text/plain)
2022-07-12 05:46 UTC, Bradi
no flags Details
Nextcloud upgrade (7.46 KB, image/png)
2022-07-12 08:52 UTC, Bradi
no flags Details

Description Janet Blackquill 2022-04-04 23:14:00 UTC
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.

Comment 1 krinkodot22 2022-04-07 21:26:44 UTC
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.

Comment 2 krinkodot22 2022-05-02 07:28:32 UTC
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.

Comment 3 Ivan Chavero 2022-05-16 05:11:32 UTC
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

Comment 4 Michael Cronenworth 2022-06-16 12:59:02 UTC
@ichavero any news on an update for F36?

Comment 5 Michael Cronenworth 2022-06-21 05:16:26 UTC
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

Comment 6 Ivan Chavero 2022-06-28 04:56:37 UTC
(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.

Comment 7 Bradi 2022-07-10 06:46:52 UTC
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.

Comment 8 Bradi 2022-07-12 05:45:51 UTC
Created attachment 1896233 [details]
Screenshot

Comment 9 Bradi 2022-07-12 05:46:24 UTC
Created attachment 1896234 [details]
Integrity check

Comment 10 Bradi 2022-07-12 05:51:33 UTC
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.

Comment 11 Bradi 2022-07-12 08:51:35 UTC
Unable to run the web upgrade.  See attached screenshot.

Comment 12 Bradi 2022-07-12 08:52:16 UTC
Created attachment 1896283 [details]
Nextcloud upgrade

Comment 13 Ben Cotton 2022-08-09 13:38:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 14 Fedora Update System 2023-10-03 20:55:33 UTC
FEDORA-2023-ed33f2d60a has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ed33f2d60a

Comment 15 Fedora Update System 2023-10-03 20:56:35 UTC
FEDORA-2023-815a43e875 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-815a43e875

Comment 16 Fedora Update System 2023-10-04 02:18:23 UTC
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.

Comment 17 Fedora Update System 2023-10-04 03:30:30 UTC
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.

Comment 18 krinkodot22 2023-10-05 02:47:25 UTC
*** Bug 2169537 has been marked as a duplicate of this bug. ***

Comment 19 krinkodot22 2023-10-05 02:49:11 UTC
This is fixed for me on the Fedora 39 beta & nextcloud-27.0.2-2.fc39.noarch.

Comment 20 Fedora Update System 2023-10-12 01:44:59 UTC
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.

Comment 21 Fedora Update System 2023-11-03 18:28:10 UTC
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.

Comment 22 krinkodot22 2024-03-10 18:25:51 UTC
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

Comment 23 krinkodot22 2024-03-10 23:28:06 UTC
> I'll attempt downgrading to Fedora 39's php-common (8.2.16) to temporarily resolve this.

For the record, this worked.


Note You need to log in before you can comment on or make changes to this bug.