• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Wolfgang Reidlinger

Basic Pleskian
Hi there!

I'm trying to update my nextcloud extension which runs on a subdomain of another (wordpress) website.

ULprjLQkrr6fJvHYW-TOfw.png


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
 
okey, strange. the posted screenshots/setting fields did not show the actual, (global) memory_limit, which was still set to 128 in the php.ini file in the php 7.4 .23 version. changing the value in the php.ini file of the used php version did the magic.
update did now works.

1632836264231.png

1632836228009.png

thanks again for this hin. it this a bug or normal behaviour?
 
I still have this error.
Why is nextcloud not using the setting per domain but the global setting?
Is this a bug or not?
 
Since Plesk version 18.0.44, you can find the .php-ini and .php-version files that facilitate the management of php in the domain to make sure that you are using that version.

I have several instances of nextcloud on a Plesk Obsidian with Linux server and the configurations are applied per domain without problems.
Either on the domain or subdomain where they are configured by activating PHP support, "FPM application server apache" applies in:

/var/www/vhosts/system/[domain-name]/etc/php.ini

or view it from the terminal

Bash:
plesk bin domain --show-php-settings [domain]

to find php configurations in version plesk/os can help this link.

On the other hand, in my experience, updating nextcloud works better manually.

administration > settings overview > open updater

then from the domain terminal located in the folder where nextcloud is installed

Bash:
./occ upgrade
 
Back
Top