Wolfgang Reidlinger
Basic Pleskian
Hi there!
I'm trying to update my nextcloud extension which runs on a subdomain of another (wordpress) website.
I'm getting this error in the Plesk GUI:
The Logfile shows the following:
It looks to me, that the updater is stuck in step 5, is also is writen in the .step file in the update folder, located in .nextcloud.
When I try to hit the update button again I'm getting this in the GUI:
When I remove the .step file, the whole process can be repeated, till i have {"state":"start","step":5} written in the .step file again!
I also tried with this comand, without success!
Questions:
OS: Ubuntu 20.04.3 LTS | Product: Plesk Obsidian 18.0.38 Update #2, last updated on Sept 15, 2021 04:03 AM
I'm trying to update my nextcloud extension which runs on a subdomain of another (wordpress) website.
I'm getting this error in the Plesk GUI:
Execution filemng has failed with exit code 255, stdout: #!/usr/bin/env php Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4 Current version is 21.0.4. Update to Nextcloud 22.1.1 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.1.1.zip Open changelog ↗ Updater run in non-interactive mode. Start update Info: Pressing Ctrl-C will finish the currently running step and then stops the updater. [ ] Check for expected files ... [2K[✔] Check for expected files [ ] Check for write permissions ... [2K[✔] Check for write permissions [ ] Create backup ... [2K[✔] Create backup [ ] Downloading ... [2K[✔] Downloading [ ] Verify integrity ..., stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 173684032 bytes) in phar:///var/www/vhosts/domain.com/nextcloud.domain.com/updater/updater.phar/lib/Updater.php on line 637
The Logfile shows the following:
Code:
tail -f /var/www/vhosts/domain.com/.nextcloud/data/4e9d1a52acaa/updater.log
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] updater cli is executed
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] currentStep()
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] current version: 21.0.4 build time: 2021-08-03T15:44:43+00:00 c52fea0b16690b492f6c4175e1ae71d488936244
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] getUpdateServerResponse()
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] updaterServer: https://updates.nextcloud.com/updater_server/
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] releaseChannel: stable
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] internal version: 21.0.4.1
2021-09-28T12:14:08+0000 cCQhx2SWiy [info] updateURL: https://updates.nextcloud.com/updater_server/?version=21x0x4x1xxxstablexx2021-08-03T15%3A44%3A43%2B00%3A00+c52fea0b16690b492f6c4175e1ae71d488936244x7x4x23
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] getUpdateServerResponse response: Array
...
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] checkForUpdate() Array
...
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] getChangelogURL()
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] end of checkForUpdate() Update to Nextcloud 22.1.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-22.1.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#22-1-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] updater run in non-interactive mode
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] updater started
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] executeStep request for step "1"
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] startStep("1")
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] checkForExpectedFilesAndFolders()
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] end of checkForExpectedFilesAndFolders()
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] endStep("1")
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] executeStep request for step "2"
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] startStep("2")
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] checkWritePermissions()
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] end of checkWritePermissions()
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] endStep("2")
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] executeStep request for step "3"
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] startStep("3")
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] createBackup()
2021-09-28T12:14:09+0000 cCQhx2SWiy [info] backup folder location: /var/www/vhosts/domain.com/.nextcloud/data/4e9d1a52acaa/updater-oc98u2d26q1g/backups/nextcloud-21.0.4.1-1632831249/
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] end of createBackup()
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] endStep("3")
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] executeStep request for step "4"
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] startStep("4")
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] downloadUpdate()
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] getUpdateServerResponse()
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] updaterServer: https://updates.nextcloud.com/updater_server/
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] releaseChannel: stable
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] internal version: 21.0.4.1
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] updateURL: https://updates.nextcloud.com/updater_server/?version=21x0x4x1xxxstablexx2021-08-03T15%3A44%3A43%2B00%3A00+c52fea0b16690b492f6c4175e1ae71d488936244x7x4x23
2021-09-28T12:14:16+0000 cCQhx2SWiy [info] getUpdateServerResponse response: Array
...
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] end of downloadUpdate()
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] endStep("4")
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] executeStep request for step "5"
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] startStep("5")
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] verifyIntegrity()
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] getUpdateServerResponse()
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] updaterServer: https://updates.nextcloud.com/updater_server/
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] releaseChannel: stable
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] internal version: 21.0.4.1
2021-09-28T12:14:19+0000 cCQhx2SWiy [info] updateURL: https://updates.nextcloud.com/updater_server/?version=21x0x4x1xxxstablexx2021-08-03T15%3A44%3A43%2B00%3A00+c52fea0b16690b492f6c4175e1ae71d488936244x7x4x23
2021-09-28T12:14:20+0000 cCQhx2SWiy [info] getUpdateServerResponse response: Array
...
2021-09-28T12:14:20+0000 cCQhx2SWiy [info] storage location: /var/www/vhosts/domain.com/.nextcloud/data/4e9d1a52acaa/updater-oc98u2d26q1g/downloads/
It looks to me, that the updater is stuck in step 5, is also is writen in the .step file in the update folder, located in .nextcloud.
Code:
root@server:/var/www/vhosts/domain.com/.nextcloud/data/4e9d1a52acaa/updater-oc98u2d26q1g# ll
total 20
drwxr-xr-x 4 webspace-user psacln 4096 Sep 28 14:14 ./
drwxrwx--- 5 webspace-user psacln 4096 Sep 28 14:14 ../
-rw-r--r-- 1 webspace-user psacln 26 Sep 28 14:14 .step
drwxr-x--- 3 webspace-user psacln 4096 Sep 28 14:14 backups/
drwxr-x--- 2 webspace-user psacln 4096 Sep 28 14:14 downloads/
Code:
root@server:/var/www/vhosts/domain.com/.nextcloud/data/4e9d1a52acaa/updater-oc98u2d26q1g# cat .step
{"state":"start","step":5}
When I try to hit the update button again I'm getting this in the GUI:
Execution filemng has failed with exit code 255, stdout: #!/usr/bin/env php Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4 Step 5 is currently in process. Please call this command later. , stderr:
When I remove the .step file, the whole process can be repeated, till i have {"state":"start","step":5} written in the .step file again!
I also tried with this comand, without success!
Code:
sudo -u webspace-user php /var/www/vhosts/domain.com/nextcloud.domain.com/updater/updater.phar
Questions:
- if nextcloud extension is installed an a subdomain of an existion domain, is it normal, that the .nextcloud folder is in the root directory of the domain and not the subdomain?
- can I skip step 5 (integrity check) in the nextcloud update process?
OS: Ubuntu 20.04.3 LTS | Product: Plesk Obsidian 18.0.38 Update #2, last updated on Sept 15, 2021 04:03 AM