nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.42k stars 4.07k forks source link

nextcloud 12.0.4 incompatible with php 7.2 #7384

Closed dvzrv closed 6 years ago

dvzrv commented 6 years ago

Arch Linux, as a rolling release distribution, follows upstream closely, which is why php 7.2 has been adopted a few hours ago. This renders nextcloud (server) unusable for new installations of Arch Linux, while longer running installations theoretically still have the possibility to downgrade or not upgrade.

This is quite unfortunate, given the fact, that this is a feature release for php.

I'm aware of #6786, but I'd like to have an open bug for this, as this happened before with owncloud server and it would be nice to circumvent situations such as these in the future.

Steps to reproduce

  1. Install nextcloud on Arch Linux

Expected behaviour

Should work.

Actual behaviour

Is not compatible with php 7.2

Server configuration

Operating system: Arch Linux

Web server: Any

Database: Any

PHP version: 7.2

Nextcloud version: 12.0.4

Updated from an older Nextcloud/ownCloud or fresh install: Any

Where did you install Nextcloud from: Arch [community] repository

Tyil commented 6 years ago

@alerque

wait until after everything goes sideways for the earlier distros

Were there any distros other than Arch affected?

SBado commented 6 years ago

@Tyil

Were there any distros other than Arch affected?

openSUSE Tumbleweed is also affected.

bjoernv commented 6 years ago

@Tyil

Were there any distros other than Arch affected?

distrowatch.com (https://distrowatch.com/search.php) can be used to answer such questions:


The following distributions include php version greater or equal to 7.2 in some releases:

• Manjaro Linux (2)
• Fedora (7)
• Arch Linux (13)
• Mageia (23)
• FreeBSD (25)
• Slackware Linux (33)
• Gentoo Linux (41)
• BlackArch Linux (57)
• DragonFly BSD (58)
• NuTyX (72)
• AUSTRUMI (80)
• Void (107)
• Lunar Linux (195)
• Exherbo (228)
• paldo GNU/Linux (265)
Tyil commented 6 years ago

@bjoernv Having PHP 7.2 in the repositories isn't a problem per se, some distro's (like Gentoo) can include multiple versions of PHP and have multiple versions installed. The package manager can even instruct that a version below 7.2 is required for a package, and still allow 7.2 to be installed seperately.

From my POV, it looks like the "affected distros" just have bad maintainers that don't check for dependency breakage and come with package managers that can't deal with having multiple versions of a package available.

Just a list of "distros with PHP 7.2 available" doesn't say anything about whether it actually breaks on these distros.

SBado commented 6 years ago

So, the problem here is that some major distros like openSUSE or Arch have "bad maintainers". I don't know, but imho It sounds a lot like Apple's "You're holding it wrong". Personally, I can wait for as long as it will be necessary for the developers to move Nextcloud to PHP 7.2 and live without it in the meantime, no problem at all. But, I think that you can't ask all the distros out there to not update or to maintain different versions of PHP just because a single package doesn't work with the latest version, it's not (always) feasible. Just my two cents.

arendtio commented 6 years ago

@Tyil you are missing the point...

Yes, some package managers allow to mask certain packages and a friend of mine, who runs an Exherbo server (very similar to Gentoo), keeps asking me when Nextcloud 13 is being released, because Nextcloud doesn't support PHP 7.2 yet. So just because some package managers make it easier than others to run different versions in parallel or to not update to a specific version, doesn't mean it is okay that Nextcloud can't run on the latest stable PHP version.

So your whole 'with Gentoo you don't have that problem, it's just an Arch problem' song is just a distraction from the real problem. The real problem is that the latest Nextcloud versions, often have problems with the latest stable PHP versions. That is something which could and should be solved.

rullzer commented 6 years ago

I think all there is has to be said about this topic. NC13 will support 7.2. If you really can't wait to upgrade then try out the beta.