-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
ncp-update-nc: Nextcloud successful updated, but failure to update PHP to version 8.1 #1694
Comments
You should be able to install the new php version by following the install script and doing the steps manually This is the file that installs PHP https://github.com/nextcloud/nextcloudpi/blob/devel/lamp.sh I linked the devel branch because the master currently has the php-json package there which you shouldn't install |
@ZendaiOwl In the meantime I have installed PHP8.1 manually, and removed all previous versions of PHP. |
@LittleAlf Glad to hear, that @ZendaiOwl was able to help you. Can we close this ticket then? |
@theCalcaholic : Of course. Sorry, I forgot. |
I do not understand why it is getting the
It does not change that I was able to resolve it myself. I do believe that this should not happen in an automatic upgrade. If this is not an issue to be reported, please, tell me what is missing to make something like this to be egligible to be reported. |
@LittleAlf Sorry you're right. The issue was kinda a mix between bug report and support request. When I went through the open tickets earlier, I mostly saw the support part ("How do I resolve the result of the failed update"), which is more suited for the forum and missed the bug report aspect ("the update aborted silently and without recovery") |
Reopened, since the original bug is unresolved. I believe that the underlying issue is, that the web UI relies on PHP and breaks mid-process, when php is upgraded to 8.1. @LittleAlf Do you remember if you were using the admin web UI to perform the update, that was aborted? |
@theCalcaholic : thanks for reopening it. Regarding your question: yes, I performed the update using the admin web UI! The script did the update of Nextcloud fine, it just crashed when updating PHP. In the web UI there was no message. |
why is the update page through the UI even available? |
Because it's supposed to work that way :) |
@theCalcaholic : I did some more tests and here are the results: With the new NCP 1.51.0 an upgrade of Nextcloud to version 25.0.3 was available. Since I wanted to see the difference, I started After installing NC 25.0.3 the upgrade wanted to install PHP8.1 again, even though I had installed PHP8.1 manually. After clearing the OPcache, it aborted with the error message
The following rollback was successful It installed NC version 24.0.12 together with PHP7.4 again. Nextcloud as well as PHP were now fully setup by NCP once more. So I started a second try to upgrade to NC 25.0.3 via the cli. This time the upgrade went through successfully without errors! Why in my initial upgrade try via the web interface (the starting point of this issue) it failed without a proper error message and rollback I do not know. Somehow I am getting a little bit suspicous about using the web interface for critical tasks. It seems like stdout messages are not always properly shown. I will explain this further in another issue. |
@LittleAlf I'm glad to hear you could resolve this. You are correct, the web UI has a few issues that make it hard to do administrative tasks related to PHP without breaking itself. Back when I wrote the upgrade to PHP 8.1 I was not yet fully aware of these issues (I just really started to understand them during the last two weeks). In this case, the web UI removed PHP, while itself being written in PHP, killing the upgrade process itself. I'm working on a solution for this, but the real solution is, rewriting the backend part of the web UI in something other than PHP. That and a second measure that will be announced shortly on the forums. :) |
My case seems to be a bit stuck in that I did the upgrade from the web ui, but after a (loong time, being like the issue you mentioned) timeout i closed the web interface. At this point, the ncp shell scripts have not been updated, but the php code has been. The nextcloud php is working with a newer version, where the php is ver 8.3.1, but the nextcloudpi has not updated and I am thus stuck inbetween, and sadly i hadent yet done a proper backup... :S Do you have any idea how to update nextcloudpi properly? Can I roll back nextcloud to a compatible version of php, so that I can upgrade things in the right order? Cheers! |
I successfully upgraded my Nextcloud installation from version 23.0.12 to 24.0.8 using the '
nc-update-nextcloud
' command in the web interface of NCP.I noticed the following actions were not performed, as I expected them:
/var/www/nextcloud-old
was NOT removedI do not know what happened. I can remove the backup directory and move the tar file myself.
But how do I get the new PHP version now?
Any help would be really appreciated.
LittleAlf
<--! Paste this in GitHub report -->
NextCloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: