Hi there,
I hope someone can help me on this issue. As I still have the problem, that the data dir is reported not to be writable I did some additional research in the meantime and figured out there could be an issue with the php function ‘is_writable’. Obviously in some cases the function returns not writable even if this is not true. If I run the following script:
<?php
$dir = '/var/oc_data';
if (is_writable($dir)) {
echo $dir, ' is writable';
} else {
echo $dir, ' is NOT writable';
}
?>
it returns ‘NOT writable’.
Unfortunately I don’t understand which php scripts are used during update process which may use this function.
Any thoughts on that?
Thank you in advance for your help.
Steps to reproduce
- Prepare update as described under https://doc.owncloud.org/server/8.2/admin_manual/maintenance/manual_upgrade.html
- Start sudo -u www-data php occ upgrade
Expected behaviour
Update to new version should be done
Actual behaviour
Update hangs with:
Data directory (/var/oc_data) not writable by ownCloud
Permissions can usually be fixed by giving the webserver write access to the root directory.
Even switching of the maintenance mode is not possible and end up in the same error message.
file/directory permissions and ownership for /var/www/owncloud and the data directory as well have been set up as recommended in the owncloud documentation (strong permissions).
Server configuration
Operating system:
Linux pcsl04 4.14.82-v7+ #1165 SMP Wed Nov 21 16:42:28 GMT 2018 armv7l
Raspbian Linux on Raspberry Pi
Web server:
nginx/1.6.2
Database:
mySQL 5.5.62-0+deb8u1 - (Raspbian)
PHP version:
5.6.38-0+deb8u1
ownCloud version: (see ownCloud admin page)
8.2.9
Updated from an older ownCloud or fresh install:
updated from older versions
Where did you install ownCloud from:
Manuel installation vom owncloud website
Signing status (ownCloud 9.0 and above):
The content of config/config.php:
$CONFIG = array (
'instanceid' => '<DELETED>',
'passwordsalt' => '<DELETED>',
'secret' => '<DELETED>',
'trusted_domains' =>
array (
0 => 'pcsl04.fritz.box',
1 => 'XXXXXX.selfhost.eu',
2 => 'owncloud.XXXXXX.de',
),
'filesystem_check_changes' => 1,
'datadirectory' => '/var/oc_data',
'tempdirectory' => '/var/oc_data/tmp',
'overwrite.cli.url' => 'https://pcsl04.fritz.box',
'dbtype' => 'mysql',
'version' => '8.2.9.4',
'dbname' => 'owncloud',
'dbhost' => '192.168.XXX.XXX',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud',
'dbpassword' => '<DELETED>',
'logtimezone' => 'Europe/Berlin',
'installed' => true,
'theme' => '',
'loglevel' => 0,
'maintenance' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpmode' => 'smtp',
'mail_from_address' => '<DELETED>',
'mail_domain' => 'gmx.de',
'mail_smtpsecure' => 'tls',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'mail.gmx.net',
'mail_smtpport' => '587',
'mail_smtpname' => '<DELETED>',
'mail_smtppassword' => '<DELETED>',
);
List of activated apps:
All apps have been disabled before starting the upgrade process
Are you using external storage, if yes which one: local/smb/sftp/…
NFS remote storage is used for the PIs root directory and for the data directory as well. The data directory is a separate NFS mount
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
Client configuration
Browser:
Google chrome
Operating system:
Windows 10
Logs
ownCloud log (data/owncloud.log)
{"reqId":"NN2w15BcrHQ6LC44sCFG","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:05:02+01:00","method":"--","url":"--"}
{"reqId":"8MfAW\/PXau1UyW0gvB7\/","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","level":1,"time":"2018-11-28T15:10:02+01:00","method":"--","url":"--"}
{"reqId":"8MfAW\/PXau1UyW0gvB7\/","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:10:02+01:00","method":"--","url":"--"}
{"reqId":"GOKmPkfM4AeK1VAImIQO","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","level":1,"time":"2018-11-28T15:15:02+01:00","method":"--","url":"--"}
{"reqId":"GOKmPkfM4AeK1VAImIQO","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:15:03+01:00","method":"--","url":"--"}
{"reqId":"nBpwtasYZlwRwmMlukup","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","level":1,"time":"2018-11-28T15:20:02+01:00","method":"--","url":"--"}
{"reqId":"nBpwtasYZlwRwmMlukup","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:20:02+01:00","method":"--","url":"--"}
{"reqId":"qpVqnD8RWogejnWAsBjt","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","level":1,"time":"2018-11-28T15:24:44+01:00","method":"--","url":"--"}
{"reqId":"qpVqnD8RWogejnWAsBjt","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:24:44+01:00","method":"--","url":"--"}
{"reqId":"yb928TflS1EEXHyfPzHp","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","level":1,"time":"2018-11-28T15:25:02+01:00","method":"--","url":"--"}
{"reqId":"yb928TflS1EEXHyfPzHp","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:25:02+01:00","method":"--","url":"--"}
{"reqId":"Ij2n2UbayZBnLFMiATaA","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for local cache","level":1,"time":"2018-11-28T15:30:02+01:00","method":"--","url":"--"}
{"reqId":"Ij2n2UbayZBnLFMiATaA","remoteAddr":"","app":"cli","message":"Memcache \\OC\\Memcache\\APCu not available for distributed cache","level":1,"time":"2018-11-28T15:30:02+01:00","method":"--","url":"--"}