Nextcloud version (eg, 12.0.2): 14.0.3
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):
The issue you are facing:
When updating from 14.0.1 to 14.0.3 the updater stopped at “Extracting” with the message “Error during unpacking zipfile: No error”.
The updater.log says:
2018-10-14T05:07:17+0200 XztBje9bsk [info] request to updater
2018-10-14T05:07:17+0200 XztBje9bsk [info] currentStep()
2018-10-14T05:07:17+0200 XztBje9bsk [info] POST request for step "6"
2018-10-14T05:07:17+0200 XztBje9bsk [info] startStep("6")
2018-10-14T05:07:17+0200 XztBje9bsk [info] extractDownload()
2018-10-14T05:07:17+0200 XztBje9bsk [info] storage location: /media/nextcloud/nc_data/updater-oc568k78b4f2/downloads/
2018-10-14T05:08:42+0200 XztBje9bsk [error] POST request failed with other exception
2018-10-14T05:08:42+0200 XztBje9bsk [error] Exception: Exception
Message: Error during unpacking zipfile: No error
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1320): Updater->extractDownload()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:779
2018-10-14T05:08:42+0200 XztBje9bsk [info] rollbackChanges("6")
2018-10-14T05:08:42+0200 XztBje9bsk [info] unlink .step
2018-10-14T05:08:42+0200 XztBje9bsk [info] end of rollbackChanges()
I have no clue, what to do next.
This occurred after trying to update to 14.0.2 which failed with a different error. It said:
Message: Could not copy
"/var/www/nextcloud/apps/support/resources/Why the Nextcloud Subscription?.pdf"
to
"/media/nextcloud/nc_data/updater-oc568k78b4f2/backups/nextcloud-14.0.1.1/apps/support/resources/Why the Nextcloud Subscription?.pdf".
Destination /media/nextcloud/nc_data/updater-oc568k78b4f2/backups/nextcloud-14.0.1.1/apps/support/resources/Why the Nextcloud Subscription?.pdf
is not writable
I couldn’t make sense of this because this folder is writable for the nextcloud user. Maybe the problem arises from the questionmark in the file name. So I renamed the file, but then 14.0.3 arrived and I ran into the problem above.
Yes problem is question mark in filename (both in nextcloud and also in instalation zip)
1 before update rename file (delete question mark) “/var/www/nextcloud/apps/support/resources/Why the Nextcloud Subscription?.pdf”
2 in downloaded zip file /var/www/nextcloud/data/updater-XXX/downloads/nextcloud-14.0.3.zip
delete question mark in filename: “apps/support/resources/Why the Nextcloud Subscription?.pdf” and repack zip file
3 delete failed (not fully) extracted folder: /var/www/nextcloud/data/updater-XXX/downloads/nextcloud
4 retry update
Please try to check apache logs. In my case there was this error:
[Mon Oct 15 2018] [:error] [pid 8002] [client ] PHP Warning: ZipArchive::extractTo(/var/www/nextcloud/data/updater-XXX/downloads/nextcloud/apps/support/resources/Why the Nextcloud Subscription?.pdf): failed to open stream: No such file…
You are right. In /var/log/nginx/nextcloud.error.log:
2018/10/15 21:43:34 [error] 32358#32358: *675 FastCGI sent in stderr: “PHP message: PHP Warning: ZipArchive::extractTo(/media/nextcloud/nc_data/updater-oc568k78b4f2/downloads/nextcloud/apps/support/resources/Why the Nextcloud Subscription?.pdf): failed to open stream: No such file or directory in /var/www/nextcloud/updater/index.php on line 777” while reading response header from upstream, …
Still the damned question mark. I’m going to open another issue on github.