Skip to content

updater constantly fails to remove folders #283

@2019-05-10

Description

@2019-05-10

[✔] 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions