Fail (Backup) atUpdate from 27.1.3 to 27.1.11, but later up to 30

Hello folks,

i tried to update my NC fom 27.1.3 up a few times now and also tried a few things, I read in this forum…
The biggest problem is, that my Host provides me with a SSH access WITHOUT the option to use Sudo or -su rights, why stuff like:

sudo -u www-data php updater.phar

doesnt work:
grafik

So what do i do??

Nextcloud version: 27.1.3
Operating system and version (eg, Ubuntu 24.04): i dont know - webhost via world4you.com
Apache or nginx version (eg, Apache 2.4.25): same thing as before
PHP version (eg, 8.3): PHP 8.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):
It happened always, when i tried updating, and other people seam to have the same problem.

Steps to replicate it:

  1. Start the Update in the Browser
  2. Fail

You can use the su command instead:

su - www-data -s /bin/bash -c "php /path/to/nextcloud/updater/updater.phar"

hth.


much and good luck,
ernolf

Thank you, for respronding.
Sadly no

such cheap hosters, often run the web server under the same user as the one you log in as.

What is the output of

whoami

and

ls -l /path/to/nextcloud/

ernolf

So this is the outcome:


All Users beneath the violet block, are structured as

ftpUSERID

, everything hidden by the orange block is

siteUSERID

I found this: https://faq.world4you.com/en/articles/4777-bash-use-different-php-versions

So I’d say check which php version Nextcloud is using, and then the command should look as follows…

Example for PHP 8.2:

php82 /path/to/nextcloud/updater/updater.phar

I tried that already.
Same Problem
:frowning:

Update:
I contacted the support and they raised my memory and kill_time. Then it worked :slight_smile:

Thanks for the help!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.