-
Notifications
You must be signed in to change notification settings - Fork 32
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
Create backup - Parsing response failed. Step 3 is currently in process. Please reload this page later. #257
Comments
I am aware of the following help forum entry, which is not applicable as I am on a shared hosting env. Also space is sufficiently available 10GB of 50GB used and file ownership has been checked and updated via the shared hosting menu. Please help us to fix UPDATE ERROR FROM 16.0.3 TO 16.0.4 - It is frozen in Step 3 is currently in process. Please reload this page later My assumption is that the copying of the backup files takes longer than the default max_execution_time and therefor breaks step 3 somewhere in between. The target nextcloud-16.0.3.0 directory has been created and contains already 32.233 items totalling 288,6 MB. It eventually might have (almost) finished already. |
Calling the https://example.com/nextcloud/updater/ will return only the partial response: "Step 3 is currently in process. Please reload this page later." To fill in the max_execution_time value here is the preset from the hosting provider: max_execution_time: 60 s Any other questions regarding failure situation just ask. |
In a way this is similar to nextcloud/server#10082 and nextcloud/server#13990 which are suffering from similar limitations. It would be beneficial for the updater to be more resilient and allow resume of backup, download and move file / cleanup steps, as they can take pretty long (more than the default 60 seconds in this case). If the connection between client (SPA) and server (updater/index.php) expires the current step can not be resumed, it will retry the step from beginning. It should be sufficient to give a status update, e.g. files backed up, bytes downloaded, files moved, files cleaned up and continue the necessary actions for the step. |
Funny, I retried it after more than two weeks with the Tab still open in my browser and somehow it succeeded to get past the dreaded third step with the newer upgrade to 16.0.7. But I doubt something to the updater.php has been changed without me noticing. I kept my fingers crossed so that I do not run into #249 and it worked so far to succeed to 16.0.7. I actually would like to get to NC 17, but I guess I have also been hitting #250 up till now, as 16.0.6/16.0.7 were the only available updates, but not 17.0.1. See new screenshot from 2019-12-23 |
Lines 1267 to 1268 in 96234eb
We should try to overwrite the default limits here. This will probably fix this kind of issues for some people. If higher limits not allowed the webspace is not capable of running nextcloud. Still the manual update is always possible. |
I've just encountered this updating 18.0.1 RC1 to 18.0.1 RC2 on a server with root access. On a second try it succeeded. The question is, why is the updater not able to parse a simple gateway timeout error and return something more meaningful to the user? It could instead return something like: |
|
If your shared hosting has strict limitations I would recommend to use the shell to update or the manual update. A web server involved in a update process is always a point of failure for such long running operations. Making it possible to skip the backup or retry able without starting from scratch sounds like a plan. Patches are always welcome ;) |
Same issue here, it stopped backing up after ~30 apps (total 73 including built in apps). We rely on a rather slow NFS mount and have a 1,1 GB mysql DB. No chance to restart the upgrade from within the web UI. Yes, please allow to skip the backup. What we try now is to do all steps manually (backup, move apps, download new version, remove, continue with occ). This is our step-by-step guide (in German language). Successfully upgraded to NC 17.0.7. |
If you are able to upgrade via cli - do it ;)
I see three options to add this feature:
But again! Update via cli (and restart php-fpm afterwards) is the most reliable way to upgrade. |
Dear @rasos thanks for feedback. I actually made an upgrade from 16.0.7 through 16.0.11 and 17.0.7 to 18.0.6 last week. This time again the automated upgrade failed because of some spreed issue at some stage. I have in the end resorted to manual upgrade (i.e. unzipping the files locally and transfer them via SFTP, which takes about 50 minutes for 16.000 small files). This seems to have worked seamlessly and I might use it in the future as it is more predictable than the automated approach on my shared hosting env, where I do not have shell access. I wonder if there is an option to have the new version downloaded manually and just stage the whole zip file in the nextcloud-data/updater-/downloads folder and have some PHP process unzip the files on the webserver with right permissions. This usually takes about 10 seconds on my desktop and probably not much longer on the server. @kesselb any suggestions on how one would implement the two features, ie. skipping steps and/or starting at a specific step in the automated upgrade process. Where should I start implementing it myself, if I would like to download and stage the zip file in the above downloads folder and continue without/after a manual backup (a move on the server is again an atomic SFTP operation) ? Kind regards, |
@kesselb having read through the code I actually am quite sure that we should add the start time into the .step file (e.g. a UNIX timestamp). Then when we check if already a step is in process, we could verify if this actually may have timed out. Wordpress Core Updater creates a lock file with 15 minutes in the future to prevent multiple updates from running.
In case of any exception handler the lock is removed again in order to allow retry, eg. if ( is_wp_error( $download ) ) { |
same problem .. has anyone a solution? |
I did a new installation with the latest version. I found no possible way to update. Now it's working fine. |
I have also done a manual upgrade, i.e. move the old install from Also make sure that you rename/move the Then simply copy the extracted tar-ball to a new That should make you skip over the upgrade assistant and start the post-uprade process straight away, |
@kesselb is there a dedicated zip component in nextcloud I did a local timing of zipping/tarring with gzip the whole nextcloud folder as a backup which took only 20 seconds. When I unzip locally and transfer all 20.000 files via SFTP to the hosted server this takes 2 hours. Maybe the problem could be solved easily that way ? |
I get the same error which might be related to installations on a shared web hosting and a lot of data? I have the impression that the backup takes longer than the script execution time of my web hoster permits. I measured the time until the error appears and for me, that might be the problem? |
I've experienced the same as @smiddy and I have similar suspicions. |
I can confirm that the problem is with the web-based update. I was able to get SSH access and update via No problem with the update. And I noticed that the backup was significantly faster than in the web-based update process. |
@smiddy, yes this is foremost a problem with the web updater only and especially under the constraints of shared hosting. I also was granted ssh access and I can confirm that using local tools (mv, tar, gzip) is much faster than the current PHP code of the web based updater handling each file individually. |
Now i have the same problem. This time on a dedicated Ubuntu 20.04 VM, plenty of space, LAMP, php-fpm. Only 5 active users. The error is: Gateway TimeoutThe gateway did not receive a timely response from the upstream server or application. Apache/2 Server at nextcloud.domain.tld Port 443 Soon this problem will kill ALL nextcloud systems. |
I have found a workaround: cat .step{"state":"end","step":3}` you can see that step 3 (backup) was finished. 4. Check your Backup directory: 297M backups/nextcloud-14.0.3.0/` Do NOT click "Retry" button! If you have modified your PHP engine, check or change php timeouts: |
I had this problem upgrading to v23. This command solved it in my case:
|
I have not had this problem in my past two upgrades today:
I too have shell access now to execute IMHO it would be best to
Especially the second an UNZIP for extracting the uploaded zip archive into the |
I'm new to nC, but commenting to confirm this is definitely still happening for poor schlubs like me on shared hosting. :-) I've got it particularly bad having multiple occurrences of the error/issue throughout the update process, over my first (and only) 4 updates. For others benefit, I've found the best workaround to be:
Obviously @stefan123t above "IMHO" solution would be good for automating all this. |
@user-1138 thanks for providing this simple recipe. I think I followed a similar approach when I first encountered this. Though this is far from a "solution" for users like us running on somewhat constrained webspace it is a workaround to get on with the process. Still I think a practical approach would be to have another option to simply upload the zip archive with the upcoming nextcloud software into a folder of the webspace and we could trigger a simple Admin script that runs unzip natively.
While backup could be done by simply renaming the current release directory (given it is separated from the nextcloud data) this is an almost atomic action. |
Agreed on all points @stefan123t - I'd welcome anything that helped to improved the situation. |
A most positive update on my experiences here. In short, since 25.0.5 (upgraded from .0.3, I missed the .0.4 update) the upgrade process has simply worked flawlessly! Not one hiccup, ever, during previous 3 updates. The entire update process completes in a matter of seconds (I'd say around 40-80ish), each There has been no changes to my shared hosting (basic specs below), and there was nothing obvious to me in the .0.4 or .0.5 changelogs that might indicate a relevant change. So I'm not sure what has caused this drastic improvement (if anybody has a clue, please do enlighten me), but it is most welcomed. It's nice not having to gird ones loins each and every update... :-) Update History Host specifications (a typical budget grade CloudLinux shared host) PHP 8.1 Options |
Current error message is:
Create backup
Parsing response failed. Step 3 is currently in process. Please reload this page later.
I can not alter/update the PHP max_execution_time parameter being on a shared hosting env.
When running the update on said shared webhosting system the backup step 3 times out while copying the files. There is no option to resume the copying of files from where it left due to the recursiveDelete($backupFolderLocation); eventually also running into the same timeout.
I can retry several times using the Retry update button without success.
The result of removing the .step file and pressing the Retry button several times after the first timeout is reported in the updater.log:
As you can see retry update has no effect.
Here is my updater.log with the past updates since NextCloud 12 till version 16.0.3.0 until now failing with version 16.0.6.0:
updater.log
The text was updated successfully, but these errors were encountered: