Bug 2081053 - Nextcloud is broken with Fedora 38
Summary: Nextcloud is broken with Fedora 38
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nextcloud
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ivan Chavero
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2014559
TreeView+ depends on / blocked
 
Reported: 2022-05-02 15:55 UTC by Andreas Kohn
Modified: 2024-03-03 04:25 UTC (History)
15 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:45:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2014559 1 unspecified CLOSED PHP 8.1 2022-05-10 14:41:45 UTC

Description Andreas Kohn 2022-05-02 15:55:40 UTC
Description of problem:

After upgrading from F35 to F36 server, my nextcloud instance (installed from packages) is not running anymore.


Version-Release number of selected component (if applicable):

nextcloud-22.0.0-2.module_f36+13700+b924b8d9.noarch
php-8.1.5-1.fc36.x86_64

How reproducible:

Always

Steps to Reproduce:
1.a Install and configure nextcloud in F35 and upgrade to F36.
..or
1.b Probably also just installing nextcloud in F36 will trigger this.
2. Navigate to local nextcloud instance and observe "This version of Nextcloud is not compatible with > PHP 8.0."


Actual results:

> This version of Nextcloud is not compatible with > PHP 8.0.
> You are currently running 8.1.5.


Expected results:

Usable nextcloud

Additional info:

https://github.com/nextcloud/server/issues/29287

Comment 1 Remi Collet 2022-05-03 05:19:04 UTC
Nextcloud is at old 22.1.0

Nextcloud 24.0.0 is compatible with PHP 8.1

Comment 2 Andreas Kohn 2022-05-04 15:15:46 UTC
(In reply to Remi Collet from comment #1)
> Nextcloud is at old 22.1.0
> 
> Nextcloud 24.0.0 is compatible with PHP 8.1

I know that the Nextcloud version included in the repository is (too?) old. How's the process to get a more recent one packaged up? Is there anything I can do to support that?

Comment 3 João Rodrigues 2022-05-13 11:19:20 UTC
Hello,

As a (temporary I hope!) workaround I installed remi's repo which contains php 7.4

Steps:

dnf install https://rpms.remirepo.net/fedora/remi-release-36.rpm
dnf module enable php:remi-7.4
dnf install php --allowerasing

sudo -u apache /usr/share/nextcloud/occ maintenance:mode --on
sudo -u apache /usr/share/nextcloud/occ upgrade
sudo -u apache /usr/share/nextcloud/occ maintenance:mode --off

Comment 4 Andreas Kohn 2022-05-17 21:40:34 UTC
(In reply to João Rodrigues from comment #3)
> Hello,
> 
> As a (temporary I hope!) workaround I installed remi's repo which contains
> php 7.4
> 
> Steps:
> 
> dnf install https://rpms.remirepo.net/fedora/remi-release-36.rpm
> dnf module enable php:remi-7.4
> dnf install php --allowerasing
> 
> sudo -u apache /usr/share/nextcloud/occ maintenance:mode --on
> sudo -u apache /usr/share/nextcloud/occ upgrade
> sudo -u apache /usr/share/nextcloud/occ maintenance:mode --off


Hey João,

Thanks for the hint. Being a little impatient, I got rid of the packaged version and installed the latest nextcloud from the website manually. Files and settings survived after some tinkering.

Comment 5 James E. LaBarre 2022-06-28 14:50:19 UTC
Same situation with Fedore Server 36 installed fresh.   The workaround with Remi's repo has been working thus far, but I'm still running the install.

The "Web Installer" might be the better method, except I'd have to figure out what it needs for the base "web space" (as Nextcloud calls it on their site).  Building a fresh system, so there's nothing configured yet.

Comment 6 Matt Olson 2022-07-12 04:08:16 UTC
I tried the remi repo above and had an issue with php-pecl-zip 1.21.0-3.fc36.remi.7.4:

Problem: cannot install the best update candidate for package php-pecl-zip-1.21.0-2.fc36.remi.7.4.x86_64
  - nothing provides libzip(x86-64) >= 1.9.2 needed by php-pecl-zip-1.21.0-3.fc36.remi.7.4.x86_64

Installed version of libzip is libzip-1.8.0-4.fc36.x86_64. 

And when attempting to execute php:

php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/lib64/php/modules/zip.so (/usr/lib64/php/modules/zip.so: undefined symbol: zip_file_is_seekable), /usr/lib64/php/modules/zip.so.so (/usr/lib64/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I'm not requesting support; just posting for others who are having the same issue.  

Guidance an whether Nextcloud 24 will be released for Fedora 36 would be helpful.  I'll try building an RPM for Nextcloud 24.

Comment 7 Remi Collet 2022-07-12 04:48:51 UTC
>  - nothing provides libzip(x86-64) >= 1.9.2 needed by php-pecl-zip-1.21.0-3.fc36.remi.7.4.x86_64

libzip 1.9.2 is in "remi" repository which have to be enabled (will also be part of Fedora 37 official repository)

Comment 8 Stefano Corti 2022-07-12 10:28:25 UTC
Waiting for official ones, I managed to create f36 RPMs for nextcloud v24.0.2

Be aware that:
- they are not official f36 packages, use them at your own risk
- they are based on nextcloud f35 spec file, adapted to new nextcloud version.
- Fedora guidelines are not completely respected (ex. license files are not copied where they should be)
- Upgrading from v23 may need some post-installation activity, I did it some month ago on f35 and I don't remember well 

Yoy can find the packages at the following link (Gdrive): 
https://drive.google.com/drive/folders/1YAqARLStgw0XW8z2kThYKOwzexl3qW5f?usp=sharing

Spec file used to build them is included.

Comment 9 Scott Dowdle 2022-07-12 14:50:15 UTC
Why is the conversation about how to use third-party repos and homebrew-built packages to fix this.  Has the package maintainer disappeared?

Comment 10 Stefano Corti 2022-07-12 15:11:09 UTC
It seems so. See https://bugzilla.redhat.com/show_bug.cgi?id=2103756

Comment 11 Matt Olson 2022-07-12 17:59:14 UTC
The maintainer is in Germany.  I suspect they're just not taking the initiative to keep pace with Fedora releases.  My build of 24.0.2 went fine (spec file changes were minimal); it installed and is upgrading the installation and plug-ins now.  

Nextcloud support has frequently run into this kind of difficulty.  It's a big web app with a lot of dependencies.  Worth the trouble in my opinion.  It does a great job of syncing contacts and calendars with mobile.

Comment 12 Daniel Demus 2022-07-29 13:39:51 UTC
The 24.0.3 el8 rpm seems to work on f36 without needing to enable any other repos than koalillo/nextcloud.

Comment 13 Ben Cotton 2023-04-25 17:06:28 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 14 Michael Cronenworth 2023-04-29 13:48:32 UTC
Nextcloud 25.0.3 shipped in Fedora 38/39 is not compatible again. Nextcloud 25.x is set to check for PHP version 8.2 or higher and not function.

PHP 8.2.x is shipped in Fedora 38 and higher.

Nextcloud 26.x is compatible with PHP 8.2.

Comment 15 camelot 2023-05-02 00:54:21 UTC
Full "warning"

> This version of Nextcloud is not compatible with PHP>=8.2.
> You are currently running 8.2.5.

You could disabled it in /usr/share/nextcloud/lib/versioncheck.php

sudo sed 's/80200/99999/' -i /usr/share/nextcloud/lib/versioncheck.php

Seems to work fine ^^

Comment 16 Panu Matilainen 2023-05-16 16:12:58 UTC
Since there is that runtime version check in the software, that version check should be brought into the package level dependencies, eg conflict with php >= 8.2. Having uninstallable software in Fedora sucks, but bricking an existing installation on upgrade with zero warning is worse (and yes I saw the workaround)

Comment 17 Ivan Chavero 2023-05-22 22:42:20 UTC
Updated Nextcloud to 26.0.0 for F37, F38 and Rawhide

Comment 18 Michael Cronenworth 2023-05-23 20:16:57 UTC
Thanks, @ichavero however version 26.0.1 was released before your build. Would you have time to push version 26.0.1? The F37/F38 builds would also need an update record in Bodhi.

Comment 19 João Rodrigues 2023-05-25 14:45:20 UTC
Hello,

I'd just like to remind that there are also versions 21.0.3, 23.0.7 and 24.0.3 available in the fedora-modular repo. These versions are no longer supported by upstream and are broken as well, as they require php versions that are no longer available (at least without a 3rd party repo).

# dnf module list nextcloud
Fedora Modular 38 - x86_64
Name                                          Stream                                              Profiles                                            Summary                                                                                 
nextcloud                                     nextcloud-stable                                    default, testing                                    A private file sync and share server - Stable branch                                    
nextcloud                                     23                                                  default, testing                                    A private file sync and share server - version 23.x.x                                   
nextcloud                                     24                                                  default, testing                                    A private file sync and share server - version 24.x.x

Comment 20 Fedora Release Engineering 2023-08-16 08:07:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 21 Michael Cronenworth 2023-08-30 04:19:31 UTC
The 26.0.0 update was never released to F37 or F38. Version 26.0.5 is now the latest on the 26 branch. Ivan, are you available to push an update?

Comment 22 Michael Cronenworth 2023-10-03 14:26:31 UTC
@ichavero.mx I see you are building new versions in Koji, but there are no updates being created in Bodhi.

Is it OK if I publish the updates to hit at least F39? What about F38?

Comment 23 Ivan Chavero 2023-10-03 20:34:36 UTC
(In reply to Michael Cronenworth from comment #22)
> @ichavero.mx I see you are building new versions in Koji, but
> there are no updates being created in Bodhi.
> 
> Is it OK if I publish the updates to hit at least F39? What about F38?

yes please!
Thanks!

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

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

Comment 26 Fedora Update System 2023-10-04 02:18:26 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 27 Fedora Update System 2023-10-04 03:30:33 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 28 Panu Matilainen 2023-10-04 10:08:49 UTC
(In reply to Michael Cronenworth from comment #22)
> @ichavero.mx I see you are building new versions in Koji, but
> there are no updates being created in Bodhi.
> 
> Is it OK if I publish the updates to hit at least F39? What about F38?

Thank you!!

Comment 29 Fedora Update System 2023-10-12 01:45:03 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 30 Scott Dowdle 2023-10-14 01:40:40 UTC
Was this ever released for F37?  I have an F37 system with nextcloud-24.0.3-1.module_f37+14919+2983dfa9.noarch.

How might I upgrade this to something contemporary?

Comment 31 Ivan Chavero 2023-10-14 06:00:06 UTC
(In reply to Scott Dowdle from comment #30)
> Was this ever released for F37?  I have an F37 system with
> nextcloud-24.0.3-1.module_f37+14919+2983dfa9.noarch.
> 
> How might I upgrade this to something contemporary?

while it lands on F37 you can download the package from koji: https://koji.fedoraproject.org/koji/buildinfo?buildID=2288525

Comment 32 Scott Dowdle 2023-10-14 11:05:57 UTC
I tried that and while the packages upgrade, I just get a blank page from the application post-upgrade... and end up rolling back.  How might I get past the blank web page?

Comment 33 camelot 2023-10-15 13:56:40 UTC
Thx, nextcloud-27 works for me with Fedora 38

Comment 34 Fedora Update System 2023-11-03 18:28:12 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 35 Red Hat Bugzilla 2024-03-03 04:25:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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