Hi,
We needed to update our Owncloud server (ubuntu 14.04 / owncloud 9.1.6) but upgrading to 16.04 broke owncloud. So did a fresh install on a new server with ubuntu 18.04 / owncloud 10.0.8.
I was for sure very optimistic and restore all data/config/db as it on the new server.
At first it seems to be ok, but for some users, some issues appear. Unable to sync from Windows client, Folder in read only instead of writable (including home folder)
I strange issue is that i didn’t see all users in the user list, only those already connected. Seems to be ok after the “file:scan --all”
First I notice lot of “undefined index : share_name” errors. After some search I applied “sudo -u www-data php occ migrations:execute core 20170320173955”
Now the file scan is better, but most users get a “Home storage for user xxxxxxxxxxxx not writable”
Seems that all user without shared folder are ok, user with whared folder are NOK
sudo -u www-data php occ migrations:status cor e
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Migrations
>> Migrations Directory: /var/www/owncloud/cor e/Migrations
>> Previous Version: 20180123131835
>> Current Version: 20180319102121
>> Next Version: Already at latest mig ration step
>> Latest Version: 20180319102121
>> Executed Migrations: 19
>> Executed Unavailable Migrations: 19
>> Available Migrations: 19
>> New Migrations: 19
Hope i won’t have to go back to 9.1 and to the owncloud update step by step…
Steps to reproduce
- backup owncloud on a 9.1.6 server
2.install fresh server (unbuntu 18.04 / owncloud 10.0.8)
3.restore data on the new server
Expected behaviour
Home folder writable
Actual behaviour
Home folder not writable
Server configuration
Operating system:
Ubuntu 18.04
Web server:
Apache2
Database:
Mysql
PHP version:
7.2
ownCloud version: (see ownCloud admin page)
10.0.8.5
Updated from an older ownCloud or fresh install:
fresh 10.0.8 install
Where did you install ownCloud from:
Download Zip from owncloud.org
Signing status (ownCloud 9.0 and above):
No errors have been found.
The content of config/config.php:
"basic": {
"license key": "***REMOVED SENSITIVE VALUE***",
"date": "Thu, 31 May 2018 08:21:34 +0000",
"ownCloud version": "10.0.8.5",
"ownCloud version string": "10.0.8",
"ownCloud edition": "Community",
"server OS": "Linux",
"server OS version": "Linux cloud 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64",
"server SAPI": "apache2handler",
"webserver version": "Apache\/2.4.29 (Ubuntu)",
"hostname": "cloud.tec-wl.be",
"user count": 105,
"user directories": 105,
"logged-in user": "xxxxxxxxxxxxxxxx@tec-wl.be"
},
"config": {
"updatechecker": false,
"instanceid": "ocs8ty6pau8k",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.tec-wl.be"
],
"datadirectory": "\/var\/www\/owncloud\/data",
"overwrite.cli.url": "http:\/\/172.16.1.32\/owncloud",
"dbtype": "mysql",
"version": "10.0.8.5",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "Europe\/Brussels",
"logdateformat": "d M Y H:i:s",
"installed": true,
"loglevel": 2,
"maintenance": false,
"log_rotate_size": "104857600",
"log.condition": {
"users": [
"thdl"
],
"logfile": "\/var\/www\/owncloud\/data\/thdl.log"
}
},
"integritychecker": {
"passing": true,
"enabled": true,
"result": []
},
"core": {
"backgroundjobs_mode": "cron",
"installedat": "1453133703.8455",
"lastcron": "1527502503",
"lastupdateResult": "[]",
"lastupdatedat": "1527754887",
"public_documents": "documents\/public.php",
"public_files": "files_sharing\/public.php",
"public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
"remote_caldav": "dav\/appinfo\/v1\/caldav.php",
"remote_calendar": "dav\/appinfo\/v1\/caldav.php",
"remote_carddav": "dav\/appinfo\/v1\/carddav.php",
"remote_contacts": "dav\/appinfo\/v1\/carddav.php",
"remote_dav": "dav\/appinfo\/v2\/remote.php",
"remote_files": "dav\/appinfo\/v1\/webdav.php",
"remote_webdav": "dav\/appinfo\/v1\/webdav.php",
"repairlegacystoragesdone": "yes",
"shareapi_allow_mail_notification": "yes",
"shareapi_allow_public_upload": "no",
"shareapi_allow_resharing": "no",
"umgmt_show_storage_location": "false",
"vendor": "owncloud"
List of activated apps:
Enabled:
- activity: 2.3.6
- comments: 0.3.0
- configreport: 0.1.1
- dav: 0.3.2
- federatedfilesharing: 0.3.1
- federation: 0.1.0
- files: 1.5.1
- files_external: 0.7.1
- files_pdfviewer: 0.8.2
- files_sharing: 0.10.1
- files_texteditor: 2.2.1
- files_trashbin: 0.9.1
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 16.0.2
- market: 0.2.4
- notifications: 0.3.3
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- updatenotification: 0.2.1
Disabled: - encryption
- external
- theme-example
- user_external
Are you using external storage, if yes which one: local/smb/sftp/…
NO
Are you using encryption: yes/no
NO
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
NO
Client configuration
Browser:
IE 11 / Chrome
Operating system:
Windows 10
Logs
Web server error log
owncloud@cloud:/var/www/owncloud$ sudo tail /var/log/apache2/error.log
[Thu May 31 09:19:17.817946 2018] [mpm_prefork:notice] [pid 4816] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Thu May 31 09:19:17.817973 2018] [core:notice] [pid 4816] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 31 09:23:25.691537 2018] [mpm_prefork:notice] [pid 4816] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.1.32. Set the 'ServerName' directive globally to suppress this message
[Thu May 31 09:23:26.612183 2018] [mpm_prefork:notice] [pid 4816] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Thu May 31 09:23:26.612206 2018] [core:notice] [pid 4816] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 31 09:26:23.555526 2018] [mpm_prefork:notice] [pid 4816] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.16.1.32. Set the 'ServerName' directive globally to suppress this message
[Thu May 31 09:26:23.623840 2018] [mpm_prefork:notice] [pid 4816] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Thu May 31 09:26:23.623858 2018] [core:notice] [pid 4816] AH00094: Command line: '/usr/sbin/apache2'
ownCloud log (data/owncloud.log)
owncloud@cloud:/var/www/owncloud$ sudo tail /var/www/owncloud/data/owncloud.log
{"reqId":"e75f879c-068f-48b1-91d3-9fdecace2369","level":3,"time":"31 May 2018 10:32:22","remoteAddr":"10.16.0.34","user":"--","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/xxxxxxxxxxxxxxxxx@tec-wl.be\/","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"61bf5c46-fd04-4a25-ac4b-b291484dd720","level":3,"time":"31 May 2018 10:32:23","remoteAddr":"10.16.0.29","user":"--","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/xxxxxxxxxxxxx@tec-wl.be\/","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"Bp4JuP5PYp681LgKaiLp","level":3,"time":"31 May 2018 10:32:24","remoteAddr":"10.32.0.95","user":"--","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/xxxxxxxxxx@tec-wl.be\/","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"3d202910-1ec0-4a10-9e8d-548cc800ad94","level":3,"time":"31 May 2018 10:32:24","remoteAddr":"10.16.0.29","user":"--","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"0b970fd4-ea4a-406d-9b98-20309a9dd04b","level":3,"time":"31 May 2018 10:32:28","remoteAddr":"10.16.0.27","user":"--","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/xxxxxxxxxxxx@tec-wl.be\/","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"yis5JzvPJ8N07hJVMbbA","level":3,"time":"31 May 2018 10:32:28","remoteAddr":"10.16.0.23","user":"--","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"yis5JzvPJ8N07hJVMbbA","level":3,"time":"31 May 2018 10:32:29","remoteAddr":"10.16.0.23","user":"xxxxxxxxxxxxx@tec-wl.be","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"Undefined index: icon at \/var\/www\/owncloud\/apps\/notifications\/lib\/Handler.php#288"}
{"reqId":"yis5JzvPJ8N07hJVMbbA","level":3,"time":"31 May 2018 10:32:29","remoteAddr":"10.16.0.23","user":"xxxxxxxxxxxxx@tec-wl.be","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"Undefined index: icon at \/var\/www\/owncloud\/apps\/notifications\/lib\/Handler.php#288"}
{"reqId":"9YCTxxFUvtzPqC7PQjli","level":3,"time":"31 May 2018 10:32:39","remoteAddr":"10.32.0.18","user":"--","app":"PHP","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
{"reqId":"3ZJgbL9p3lmePH3qeaVW","level":3,"time":"31 May 2018 10:32:40","remoteAddr":"10.32.0.120","user":"--","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/xxxxxxxxxxxxxxx@tec-wl.be\/","message":"ini_set(): A session is active. You cannot change the session module's ini settings at this time at \/var\/www\/owncloud\/lib\/base.php#596"}
Browser log
n/a