Skip to content
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

Installing when running PHP7.4 breaks Nextcloud #136

Closed
chriscroome opened this issue Mar 30, 2023 · 7 comments
Closed

Installing when running PHP7.4 breaks Nextcloud #136

chriscroome opened this issue Mar 30, 2023 · 7 comments
Labels
wontfix This will not be worked on

Comments

@chriscroome
Copy link

On a Nextcloud server running on Debian Bullseye with PHP7.4 installing files_zip results in a requirement for PHP8.0 which causes Nextcloud to only serve HTTP 500 errors, when using occ there is this message:

Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33.
@juliusknorr
Copy link
Member

How do you install the app? There is no composer involved in the final release package.

@chriscroome
Copy link
Author

I didn't install it, but as far as I'm aware it was done using the Nextcloud web based admin interface.

I've added PHP 8.0 to the server now -- there didn't seem to be any way to get it working again other than rolling back the server or installing a newer PHP.

@mbh-dev
Copy link

mbh-dev commented Mar 31, 2023

The app was installed from the nextcloud app store by simply clicking on download and install.

This then broke the server by changing some config file somewhere by requiring PHP 8.0 but couldn't find the JSON file that forced this change, therefore requiring that the server be upgraded to PHP 8.0 even after disabling and removing the file_zip app

@juliusknorr
Copy link
Member

Was there any log trace that pointed to files_zip as there is no composer usage in the release tarball as far as I'm aware and can see from the latest release.

@chriscroome
Copy link
Author

chriscroome commented Apr 3, 2023

Sorry I couldn't find anything of interest in the logs, myself and @mbh-dev were physically sat next to each other at the time this happened and we were not aware of any other changes that were made to the server, all we could put the sudden requirement for a PHP version ">= 8.0.2" down to was installing files_zip.

@joshtrichards
Copy link
Member

The only reference I see to this output is here: https://github.com/nextcloud/3rdparty/blob/master/composer/platform_check.php

And the reference to 8.0.2 was added in nextcloud/3rdparty#1311 and would have started appearing first in NC27 (which already required PHP 8.0). Oh, and this related one nextcloud/server#36617. The weird thing is none of this code was even merged into master until mid-April.

So this couldn't (shouldn't) haven't even been in-service for you unless you were running off master (server) or something.

Was this on a production server? Are you guys using any sort of CI?

@chriscroome
Copy link
Author

chriscroome commented Jul 7, 2023

It was on a production server, @mbh-dev caused it when using the Nextcloud web UI as an admin.

The server was configured using Ansible but the issue wasn't caused by this.

The server has been since upgraded to run PHP 8.2 and the latest Nextcloud.

Sorry I don't know how exactly it happened, there is probably nothing else that can be done apart from closing this issue...

@joshtrichards joshtrichards added bug Something isn't working wontfix This will not be worked on and removed bug Something isn't working labels Aug 20, 2023
@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants