Update from 12.05 to 13.0.6 stable fails with Write Permissions errors

Hi,
I’ve tried updating by the web updater but hit the following errors under “Check for expected files”

\\

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

/var/www/html/nextcloud/updater/../console.php
/var/www/html/nextcloud/updater/../version.php
/var/www/html/nextcloud/updater/../AUTHORS
/var/www/html/nextcloud/updater/../index.php
/var/www/html/nextcloud/updater/../status.php
/var/www/html/nextcloud/updater/../robots.txt
/var/www/html/nextcloud/updater/../occ
/var/www/html/nextcloud/updater/../remote.php
/var/www/html/nextcloud/updater/../db_structure.xml
/var/www/html/nextcloud/updater/../cron.php
/var/www/html/nextcloud/updater/../index.html
/var/www/html/nextcloud/updater/../public.php

\\

I googled the error and tried chown -R apache.apache /var/www/html/nextcloud/
(I’m running on Centos 7 with apache version httpd-2.4.6-80.el7.centos.1.x86_64)

V12 is fine and all but I’d love a go at v13. Does anyone have any clues?
thanks.

The output of your Nextcloud log in Admin > Logging:

|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/zimbradrive.md5): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|
|---|---|---|---|
|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/templates/admin.php): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|
|Error|PHP|mkdir(): No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#182|2018-09-20T16:34:47+0100|
|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/lib/settings/section.php): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|
|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/lib/settings/appsettings.php): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|
|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/lib/settings/admintemplate.php): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|
|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/lib/settings/admin.php): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|
|Error|PHP|copy(/var/www/html/nextcloud/apps/zimbradrive/zimbradrive/lib/settings/abstractsection.php): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/legacy/helper.php#191|2018-09-20T16:34:47+0100|

\
config.php :slight_smile:

<?php $CONFIG = array ( 'instanceid' => 'oc787oe4zre3', 'passwordsalt' => 'tFoNuW04goYizYxZtiJKzQXXoKMqEB', 'secret' => 'EOR36D6KSzxcA3UXLsUNwQC6HPnkRgdMIZyHesPcKwHsYCWi', 'trusted_domains' => array ( 0 => 'pelican', 1 => 'pelican.heaven.co.uk', 2 => 'pelican.heaven.local', ), 'datadirectory' => '/var/www/html/nextcloud/data', 'overwrite.cli.url' => 'http://pelican/nextcloud', 'dbtype' => 'mysql', 'version' => '12.0.5.3', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'nc_user', 'dbpassword' => '0QkdWmYYAltMn7m56e7R', 'installed' => true, 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => 'PLAIN', 'mail_smtphost' => 'mail.heaven.co.uk', 'mail_from_address' => 'admin', 'mail_domain' => 'heaven.co.uk', 'mail_smtpport' => '25', 'mail_smtpauth' => 1, 'mail_smtpname' => 'blah', 'mail_smtppassword' => '', 'user_backends' => array ( 0 => array ( 'class' => 'OCA\\ZimbraDrive\\Auth\\ZimbraUsersBackend', 'arguments' => array ( ), ), ), 'maintenance' => false, 'updater.secret' => '$2y$10$w0whzKHMRJI.KQZYMJKolOONob3UlHzlIB5pvSWlhxdgj.ziZF Aom', ); \\\ The output of your Apache/nginx/system log in `/var/log/____`: ``` PASTE HERE ```

A little more info:

ls -l on the nextcloud folder shows

\
drwxr-xr-x. 1 apache apache 638 Jan 24 2018 3rdparty
drwxr-xr-x. 1 apache apache 960 Sep 20 16:35 apps
-rw-r–r--. 1 apache apache 8868 Jan 24 2018 AUTHORS
drwxr-xr-x. 1 apache apache 72 Feb 15 2018 config
-rw-r–r--. 1 apache apache 4050 Jan 24 2018 console.php
drwxr-xr-x. 1 apache apache 324 Jan 24 2018 core
-rw-r–r--. 1 apache apache 5055 Jan 24 2018 cron.php
drwxrwx—. 1 apache apache 1160 Sep 20 16:36 data
-rw-r–r--. 1 apache apache 41077 Jan 24 2018 db_structure.xml
-rw-r–r--. 1 apache apache 179 Jan 24 2018 index.html
-rw-r–r--. 1 apache apache 2804 Jan 24 2018 index.php
drwxr-xr-x. 1 apache apache 58 Jan 24 2018 l10n
drwxr-xr-x. 1 apache apache 94 Jan 24 2018 lib
-rw-r–r--. 1 apache apache 283 Jan 24 2018 occ
drwxr-xr-x. 1 apache apache 70 Jan 24 2018 ocs
drwxr-xr-x. 1 apache apache 18 Jan 24 2018 ocs-provider
-rw-r–r--. 1 apache apache 3152 Jan 24 2018 public.php
-rw-r–r--. 1 apache apache 5323 Jan 24 2018 remote.php
drwxr-xr-x. 1 apache apache 34 Jan 24 2018 resources
-rw-r–r--. 1 apache apache 26 Jan 24 2018 robots.txt
drwxr-xr-x. 1 apache apache 282 Jan 24 2018 settings
-rw-r–r--. 1 apache apache 2110 Jan 24 2018 status.php
drwxr-xr-x. 1 apache apache 26 Jan 24 2018 themes
drwxr-xr-x. 1 apache apache 42 Jan 24 2018 updater
-rw-r–r--. 1 apache apache 505 Jan 24 2018 version.php
\
which looks to me like the updater folder has 755. Is that sufficient? I’d have though so with the owner being apache but I’m no expert (and it isn’t working!)

Does anyone else have any clues?

OK, my bad. The permissions were due to selinux. I can get round that wtih
setsebool -P httpd_unified on

but then the backup stage fails.