-
Notifications
You must be signed in to change notification settings - Fork 34
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
updater constantly fails to remove folders #283
Comments
Added the needs info label because the issue template is missing. For some reason the updater is not able to remove the folder. I would probably check the permissions. |
permissions are corret and always have been.
with
and commenting unnecessarily repeated steps like backup, download, integrity, extract finally made it working -- more or less. |
For those like me desperately looking for a workaround: |
After some hesitation I updated from 17.06, which gave me all those troubles, to 18.04
before reattempting the update, if the errors about non-deletable folders occurs. I think, the updater should item b) could be a parameter to the updater, although I cannot imagine a scenario where one would want to delete the zip prematurely. |
Nope. It's not the goal to support any shared web hosting out there. If rmdir returns false for whatever reason it seems more a workaround than a solution. Probably acceptable if a known quirks with rmdir.
Is not even officially supported. |
Sorry to say that, but I will close the ticket. The updater itself remembers the step it is in and continues there, but if the commands return a failure, then there is not much we can do. Feel free to debug this more, but I don't see any obvious issues here. if you have a special way to properly reproduce this then we can look into a solution, but just retry harder (which only sometimes work) and then patching out essential functionality (like the verification of the archive and the code) out is not really a solution. |
Given the frustrated comments I've seen while searching for a solution, I can't say I am surprised you're just closing this.
What about really remembering the last step and retrying from there? At least, that's what the updater itself suggests:
Creating a new backup, downloading the same zip again, verifying, expanding, deleting bit by bit -- again and again? That's just unnecessary waste of resources and doesn't fix anything, but most likely serves only to make sure the installer runs in the timeout each time again as well. Allowing to skip the backup, keeping the downloaded zip, keeping the extracted zip's folder, deleting only at the very end in one go -- these are all valid points and IMO very sensible to address. At least the CLI updater is supposedly meant to be used by people knowing (more or less) what they do -- and I got there since it was suggested to be used when the web updater runs into timeouts. The stuff I did was to make things work. I am not familiar with NC's code nor have I coded in PHP for a long time. I attached it to illustrate my points (and help others looking for a way to make things work). Using that as an excuse just confirms my first impression. Hopefully this ticket, closed or not, helps others, stuck in the same frustrating and poorly addressed situation. |
That should not happen. We actually really remember the state. There is a
Skipping backup: #282 Keeping the downloaded zip works. It's the same step file I mentioned above.
CLI updater uses the exact same code and is heavily tested. It seems to be a setup issue with your system. The only difference for the CLI updater are the CLI arguments (unattended upgrade, verbose mode) and that it can not run into the timeout of the webserver as it is not executed via the webserver.
Sorry that you had such issues, but we try to make things work as good as possible. And saying that the updater itself works poorly is something I cannot confirm. It might be related that you run Nextcloud in a non-Linux environment which we don't support and don't want to spend time into as of now. |
Well, it doesn't.
Manually deleting the folder and "just executing theupdater again" ... just starts from the top. Any chance you could describe how that |
Still not working, please reopen the issue. I can't update normally since 4 versions. |
same and it sucks, devs ignoring issues and just closing them. there are so many open issues with the updater, guess ill just rollback and stay on the same version while looking for an alternative cloud. |
fell into the same trap, just because: NC25 on Debian11 is end of line because of PHP7.4 NC25 of course does not support PHP8.2 so running a manual
Hell yeah... :-/ Hell no. php-8.2-xml missing. It might be a failure of the Debian update process, but why does the updater not check? After installation the updater re-runs and fails again... php-8.2-zip missing After installation
No, nothing is running, probably just a stale lock file.
goddamit, I have never ever encountered a piece of software with an update process that bad. |
i have the same issue now I downloaded your files but I don't know where I have to put the files. can you help me with that? I try to update 30.0.0 to 30.0.4 . thank you |
|
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[ ] Delete old files ...PHP Warning: rmdir(/home/nextcloud/updater/../lib/l10n): Directory not empty in phar:///home/nextcloud/updater/updater.phar/lib/Updater.php on line 862
[✘] Delete old files failed
Could not rmdir: /home/nextcloud/updater/../lib/l10n
Update failed. To resume or retry just execute the updater again.
$ ~/updater]$ php updater.phar
The web updater always fails to remove a bunch folders, making each update to a hours long experience of removing folders manually, restarting updater again, removing folders from updater folder (why aren't files just copied and the updater folder deleted in full at the end?), fixing missing files the updater always looses.
Today I tried the command line updater, since I understood the web updater may run into timeout issues.
But here I am again.
"Update failed. To resume or retry just execute the updater again."
executing the updater again, starts everything again, including backup which is not necessary after the first time (and in fact will probably result in a useless backup).
If indeed even the cli updater suffers from timeouts due to too long running operations, starting from scratch over an over again ist not going to help, instead it should remember the last step and proceed from there.
shared web server w/o any way to change settings
FreeBSD 11.3-RELEASE-p6
The text was updated successfully, but these errors were encountered: