-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Error while upgrading Diet-pi #3670
Comments
Looks like old PHP installation was corrupted and was preventing the new installation somehow... I uninstalled the PHP from the dietpi-software tool and re-installed and getting PHP 7.2.32-1+0 Unfortunately, this also didn't get the owncloud to work. I had to run "apt-get install php7.2-intl" separately and now all is working fine. |
Ah yes the PHP upgrade is messy. I'll adjust and simplify it. A recent change in how incremental patches are applied caused this issue where Just assure that dietpi-update finally runs through including all incremental patches that are done after |
Not sure how the update logic works, so this might be a dumb idea but, maybe all versions of PHP should be deleted before attempting 7.2 deployment? After messing around a little with different versions, now all seems to be working fine except when I restart the Pi, it gets stuck in maintenance mode and I have to SSH and "occ maintenance:mode --off" twice before it starts working. I'm thinking this might be the result of the "dietpi-update finally" you've mentioned. Should I just run that command in shell? |
The problem is that now all reinstalls are done bundled at the end of all incremental patches to reduce overhead (multiple dedicated dietpi-software calls) and assure that dietpi-software (which is called with newest code) finds the system with all possibly required incremental patches instead of half done half not. However of course this means that all patches must not rely on any reinstall, and in case of PHP7.0 upgrade to PHP7.2/7.3 when ownCloud and/or Nextcloud and/or Pydio are installed, they do require the PHP reinstall first, which places the repository form where php7.2/7.3-intl can be installed. I'll now add required module installs and webserver config adjustments right into PHP (re)install code in dietpi-software, which also enables the possibility to uninstall and reinstall PHP, e.g. do have it upgraded to newest version, without breaking dependants like webservers or other PHP web applications. The incremental patches will then only mark the old PHP packages for autoremoval which is done after the reinstalls.
One way to verify, could you paste:
Please also verify that PHP7.2 is the only installed PHP version:
|
Man as powerful as Linux package management is, it's hella confusing too... I've run the commands you've sent. The first one doesn't do anything as far as i can tell. Just returns back. The output for the second one is this: php-apcu install I think only 7.2 is present now. |
Okay jep looks good then. Not sure why
This way you see the very first attempt of starting up PHP and disabling maintenance mode... Now that I'm thinking about it: Actually maintenance mode is not enabled on shutdown/reboot, hence disabling it should be skipped on boot 🤔. |
Just did another reboot and indeed it's not stuck in the maintenance mode now. I think all the problems I got with the upgrade is sorted now. Thank you for the fast response! Appreciate the work you guys do! |
Should be |
|
Yeah sorry... I did overread the "owncloud" and actually didnt know that OwnCloud is supported as well... |
Especially since ownCloud and Nextcloud are still similar enough to share 99% of install and config code (and we do MUCH on those), it would be a waste of quality code to use it only for one option 😄. I remember sharing the same steps for both was one of my earliest contributions to DietPi after improving the Nextcloud install: #1251 |
Hi,
I tried to upgrade the dietpi. Looks like it's getting stuck while installing the new PHP version.
Details:
Steps to reproduce:
Expected behaviour:
Update
Actual behaviour:
Getting the error message
│ E: Unable to locate package php7.2-intl │
│ E: Couldn't find any package by glob 'php7.2-intl' │
│ E: Couldn't find any package by regex 'php7.2-intl'
Extra details:
Installation is not modified. Just the default installation with OwnCloud and lighthttp
Additional logs:
The text was updated successfully, but these errors were encountered: