-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Nextcloud: ncc doesn't work anymore (error message: This version of Nextcloud is not compatible with > PHP 7.3.) #3436
Comments
Hi, many thanks for your report. Well you can check inside NextCloud application if there are updates available and perform the update from there. as well you can have a look to the NextCloud Doc on how to upgrade https://docs.nextcloud.com/server/latest/admin_manual/maintenance/upgrade.html |
@Krawei |
Hello @Joulinar, unfortunately I forgot thre login credentials for the webinterface and wanted to add a new admin user via ncc. So what about the nextcloud software package? Is it a flatpack/snapd-one? Are there other methods to update it? Or will you update the dietpi-nextcloud-package to v18? |
Well, I don't think so atm....I'll check that. |
@Krawei Usually PHP7.4 is pulled on DietPi Stretch systems since Ondrejs PHP repo has it made the new default PHP version some moths ago. So if any APT package pulls the PHP meta packages (instead of an explicit PHP version, or the PHP API which every package should do!), then PHP7.4 is installed. phpMyAdmin from Debian repo as an example does this. Since it is anyway implemented intrusively and suboptimal in many other ways, on DietPi we pull the upstream version and implement it according to the official install instructions now. And I see that we actively migrate this on update to v6.27. Okay lets see what would be removed when actively purging the PHP7.4 base package. Please do not blindly confirm when being asked. Other packages (aside of PHP7.4 modules) might depend on it, hence this should be checked carefully first. Instead call the following command, hit
|
Well there is no DietPi own Nextcloud package. DietPi will pull latest Nectcloud version directly from Nextcloud during installation. If I'm not mistaken currently DietPi is pulling v17.0.1 as there were issues with 17.0.2. Anyway it will be switched to |
Actually it should have been switched already for MOTD hack 😉. Ah lol I've overseen that that NC18 already added PHP7.4 support. However I would still not recommend to use it as long as it has not gained wider support. So I would go with the above to purge PHP7.4, if there is not any strong dependency on it. |
yeah, I just checked the |
@MichaIng : Well it seems that there's no other software related to php7.4-common on my system, see:
I've installed dietpi and nextcloud, lightty atm on my system and baikal in the past. Maybe php7.4 has been installed with the "upgrade"/"switch" to the dietpi Buster Beta-Branch some months ago (is there a way to switch back to the stable branch without reinstalling btw?). So it should be save to remove it, I guess. But last but not least: There are plenty of performance gains in PHP7.4, aren't they? So @Joulinar , if I understand you right, dietpi will pull the latest NC-version when I do a re-install, so it should be NC18, am I correct? But I think I will purge PHP7.4 once :). Thanks for your help! |
Well I'm not sure if it's a good idea to simply install NC18 over NC17. This could lead to some damage on your NC installation. I would recommend to follow official instruction of Nextcloud to move from 1 major release to another. |
@Krawei I would purge PHP7.4 first, upgrade Nextcloud to v18, then you can think of upgrading PHP again. But take care that the
And you need to alter |
Pheeww, thanks for your great support and step-by-step help. :D |
@Krawei
I'll also add general support for PHP7.4 to DietPi-Software, in a way that if PHP7.3 is not installed but PHP7.4 is installed, it will install required modules and configure all web applications against PHP7.4. |
Do you mean |
@MichaIng well I think I need to do a break....
Package: php-apcu apt show php-redisPackage: php-redis Well, at least: Thanks for your help and hints. Seems I need to lean back and wait for the updated apcu and redis-packages ;). |
@Krawei However I'll keep an eye on it and inform you once this changes. So we can implement general support and test other web applications with PHP7.4 then. |
I mark this as closed. Feel free to reopen if required. |
With PHP 7.4, you should not need to bake the version in to the path to PHP-FPM. Proposed patch to Debian lighttpd config to add "lighty-enable-mod fastcgi-php-fpm option": |
Jep, however PHP7.4 is not used in any stable Debian release and using an explicit version assures that the exact intended PHP version is used, e.g. if multiple PHP versions are installed. Good to know about the purposed PHP-FPM module for Lighttpd 😃, at least for Debian Bullseye we could be able to skip our |
Creating a bug report/issue
Required Information
DietPi version |
cat /DietPi/dietpi/.version
:G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=28
G_DIETPI_VERSION_RC=0
G_GITBRANCH='beta'
G_GITOWNER='MichaIng'
Distro version |
echo $G_DISTRO_NAME
orcat /etc/debian_version
:9.11
Kernel version |
uname -a
:Linux Himbeere 4.19.108-v7+ DietPi-Software | PHP-FPM: fails to fork multiple processes on single core systems #1298 SMP Fri Mar 6 18:04:35 GMT 2020 armv7l GNU/Linux
SBC device |
echo $G_HW_MODEL_DESCRIPTION
or (EG: RPi3):RPi 3 Model B (armv7l)
Power supply used | (EG: 5V 1A RAVpower):
5V 3A
SDcard used | (EG: SanDisk ultra):
SanDisk ultra
Additional Information (if applicable)
Nextcloud
migrated
yes
Steps to reproduce
ncc help
Expected behaviour
ncc showing its possible commands
Actual behaviour
'# ncc help
This version of Nextcloud is not compatible with > PHP 7.3.
You are currently running 7.4.4.
Extra details
I've migrated from the Debian 8 to the debian 9 Image some months ago. it seems that there are both PHP7.3 and PHP7.4 installed on my system.
I've read that Nextcloud 18 works with PHP7.4 (see: nextcloud/server#18146). So my question is if the installed nextcloud version is outdated? If yes, please upgrade it to the new major version. If this is not possible please explain how to update nextclpud myself? I didn't found it via apt so it is kinda flatpack/snap-software package, am I right? how I update this?
I hope you can shed some light in the dark :).
KInd Regards,
Krawei.
The text was updated successfully, but these errors were encountered: