Failed to update from stable 17.0.5 to stable 18.0.3

Using WebUpdater which fails with following output:

Check for write permissions
The following places can not be written to:

/var/www/nextcloud/updater/../cron.php
/var/www/nextcloud/updater/../version.php
/var/www/nextcloud/updater/../console.php
/var/www/nextcloud/updater/../public.php
/var/www/nextcloud/updater/../robots.txt
/var/www/nextcloud/updater/../status.php
/var/www/nextcloud/updater/../.htaccess
/var/www/nextcloud/updater/../COPYING
/var/www/nextcloud/updater/../occ
/var/www/nextcloud/updater/../remote.php
/var/www/nextcloud/updater/../index.php
/var/www/nextcloud/updater/../index.html
/var/www/nextcloud/updater/../AUTHORS
/var/www/nextcloud/updater/../.user.ini

So please check the file permissions on your server.

You provide such less information about your environment so it is hard to help you.
You skipped the support template as well … :unamused:

…check file permission on server…that’s what the updater did and he did not has the permission!!!

Update directory shows “drwxr-x—”

Content of “.htaccess” does not say anything to me.

This version is based on “https://www.hanssonit.se/nextcloud-vm/”.
The OS is “Ubuntu Linux 18.04.2” running as VM on Windows.
I resized the maximum size and i am using LetsEncrypt for WAN access.

Yes, the may be the cause.

Which user is running the webserver? www-data?
Which webserver is used? Apache?

That is about the permission.
But who own the files? root?

Do ssh to your machine.
Go to “/var/www/nextcloud/” and type “ls -la” and show the output.

First of all: Thank you very much for your support.
Hope we find a way to speed up trouble shooting.
I think webserver is Apache, but don’t know the user who is running the server.
The demanded ls -la output:

drwxr-x— 15 root www-data 4096 Apr 10 14:53 .
drwxr-xr-x 4 root root 4096 Apr 4 18:09 …
drwxr-x— 33 root www-data 4096 Mar 11 15:35 3rdparty
drwxr-x— 47 www-data www-data 4096 Apr 4 18:09 apps
-rw-r----- 1 root www-data 12063 Mar 11 15:31 AUTHORS
drwxr-x— 2 www-data www-data 4096 Apr 6 10:36 config
-rw-r----- 1 root www-data 3805 Mar 11 15:31 console.php
-rw-r----- 1 root www-data 34520 Mar 11 15:31 COPYING
drwxr-x— 23 root www-data 4096 Mar 11 15:35 core
-rw-r----- 1 root www-data 4993 Mar 11 15:31 cron.php
drwxr-x— 2 root www-data 4096 Apr 4 18:09 data
-rw-r–r-- 1 root www-data 3831 Apr 4 18:09 .htaccess
-rw-r----- 1 root www-data 156 Mar 11 15:31 index.html
-rw-r----- 1 root www-data 3172 Mar 11 15:31 index.php
drwxr-x— 6 root www-data 4096 Mar 11 15:31 lib
-rwxr-x–x 1 root www-data 283 Mar 11 15:31 occ
drwxr-x— 2 root www-data 4096 Mar 11 15:31 ocm-provider
drwxr-x— 2 root www-data 4096 Mar 11 15:31 ocs
drwxr-x— 2 root www-data 4096 Mar 11 15:31 ocs-provider
-rw-r----- 1 root www-data 2951 Mar 11 15:31 public.php
-rw-r----- 1 root www-data 5139 Mar 11 15:31 remote.php
drwxr-x— 4 root www-data 4096 Mar 11 15:31 resources
-rw-r----- 1 root www-data 26 Mar 11 15:31 robots.txt
drwxr-x— 13 root www-data 4096 Mar 11 15:35 settings
-rw-r----- 1 root www-data 2287 Mar 11 15:31 status.php
drwxr-x— 3 www-data www-data 4096 Mar 11 15:31 themes
drwxr-x— 2 www-data www-data 4096 Mar 11 15:31 updater
-rw-r----- 1 root www-data 101 Mar 11 15:31 .user.ini
-rw-r----- 1 root www-data 362 Mar 18 14:32 version.php

The update of the VM provided by @enoch85 should not be made using the webupdater.

Please ssh into your VM once more and run /var/scripts/update.sh

1 Like