Used Quota 0B after upgrade from OC9 to NC12

Hi All,

I upgraded from Owncloud 9.x to NC12 using the advertised steps. (OC9 => NC10 => NC11 => NC12).

Basically I have one very active user (yes myself) which uses some 100GB of storage. The strange thing is that this user’s used quotum is 0B (!) and stays 0B (zero bytes). See picture below, the one with the horse.

When I add a new user the quota calculation is all right (user : test). It seems that the used diskspace has to be redone but I don’t know how. In the end perhaps adding a new user and store everything there but that’s not the point of migrating.

Further this user has shared non-writable storage. Removing this seems not to be the answer. As far as I can see it’s all about this user.

Can somebody help?


Nextcloud version 12.0.0.9
Operating system and version Raspbian (Linux mo 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux)
Apache or nginx version nginx 1.6.2:
PHP version (5.6.30):
Is this the first time you’ve seen this error?: Since upgrading from OC9 to NC12

Can you reliably replicate it? (If so, please outline steps):
No, once. Perhaps doing it all over from OC to NC.

The issue you are facing:
User used quotum is not calculated, user maxquota is not correct

The output of your Nextcloud log in Admin > Logging:
/00000045",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“aSLLO70a4J7kCvhNhESM”,“level”:3,“time”:“2017-07-25T07:02:57+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000046",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“h2TdE2aGKwf76izi57IZ”,“level”:3,“time”:“2017-07-25T07:03:02+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000047",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“COjowSVHVinmazhdDndK”,“level”:3,“time”:“2017-07-25T07:03:05+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000048",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“6hgzP6fscrMl6ocE7JtV”,“level”:3,“time”:“2017-07-25T07:03:09+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000049",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“kRH2OYD5HHTVeDhYKEKD”,“level”:3,“time”:“2017-07-25T07:03:13+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000050",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“SquJyjHvtj5rE4OZAo7l”,“level”:3,“time”:“2017-07-25T07:03:16+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000051",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“g3bRin1zvTzfnGFfsW0j”,“level”:3,“time”:“2017-07-25T07:03:20+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000052",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“iY8unTnmsnGShMdDY4du”,“level”:3,“time”:“2017-07-25T07:03:23+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000053",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“fFL4LvvVrQCp09c0o3Ws”,“level”:3,“time”:“2017-07-25T07:03:27+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000054",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“1N4Ixw7HURtn3txOhjkd”,“level”:3,“time”:“2017-07-25T07:03:30+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000055",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“JJKfsC0DLFZVrePARcfM”,“level”:3,“time”:“2017-07-25T07:03:35+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000056",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“Z5Vha9WrxtKTIAK1aRNw”,“level”:3,“time”:“2017-07-25T07:03:39+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000057",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“Sb6JjZ1GkxhZQ404PeTI”,“level”:3,“time”:“2017-07-25T07:03:43+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000058",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“v1ZoD8VkxB9RKPJWgiYM”,“level”:3,“time”:“2017-07-25T07:03:47+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000059",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“rQxQpxBJ5tE6rhF5AQCY”,“level”:3,“time”:“2017-07-25T07:03:50+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000060",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“ItUoXM2KKbcYIN2IEEdr”,“level”:3,“time”:“2017-07-25T07:03:54+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000061",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“6hIvb15ynzXoUak3b0tM”,“level”:3,“time”:“2017-07-25T07:03:58+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000062",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“JunzTLtkJuQGCJZFaqxo”,“level”:3,“time”:“2017-07-25T07:04:01+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000063",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“6k0kSLnxu6rRKSTNRa1V”,“level”:3,“time”:“2017-07-25T07:04:05+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000064",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“tGPG2lKIvBenblSLGaML”,“level”:3,“time”:“2017-07-25T07:04:09+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000065",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“iXdNvL7Xe6tMlSxA1iPy”,“level”:3,“time”:“2017-07-25T07:04:12+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000066",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“yPSHcsnYX5fTViDDYz2n”,“level”:3,“time”:“2017-07-25T07:04:15+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000067",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“mR1cmTzEz9v0vHsGf97R”,“level”:3,“time”:“2017-07-25T07:04:19+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000068",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“Fq5irI680HkMUid8FzLE”,“level”:3,“time”:“2017-07-25T07:04:23+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000069",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“9OwYc5RtmPFM5gpVKtx4”,“level”:3,“time”:“2017-07-25T07:04:26+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000070",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“q7c0ukojk4Y23Qsalfs3”,“level”:3,“time”:“2017-07-25T07:04:30+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000071",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“YxrWb8TeMzQ1DrFz4MjZ”,“level”:3,“time”:“2017-07-25T07:04:34+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000072",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“eGOLQDlW7GflDnSiY0EX”,“level”:3,“time”:“2017-07-25T07:04:37+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000073",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“vGeGuY9Hm8VhtOIH7Wod”,“level”:3,“time”:“2017-07-25T07:04:41+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000074",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“NduMgDMTQoO2WcFbqgjp”,“level”:3,“time”:“2017-07-25T07:04:44+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000075",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“sfTyOHwytgsue4Hhdsl3”,“level”:3,“time”:“2017-07-25T07:04:47+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000076",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“Bw7284h6HmYytaN0ORxs”,“level”:3,“time”:“2017-07-25T07:04:51+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“test”,“app”:“PHP”,“method”:“PUT”,“url”:"/remote.php/dav/uploads/test/2083469100/00000077",“message”:“Undefined offset: 3 at /var/www/owncloud/apps/activity/lib/FilesHooks.php#620”,“userAgent”:“Mozilla/5.0 (Linux) mirall/2.3.2”,“version”:“12.0.0.29”}
{“reqId”:“4OocIWQWrtDLtXhgMONP”,“level”:0,“time”:“2017-07-25T07:04:53+00:00”,“remoteAddr”:“213.233.219.200”,“user”:“pieter”,“app”:“no app in context”,“method”:“GET”,“url”:"/index.php/settings/personal",“message”:“Accessing the API class is deprecated! Use the appropriate services instead!”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0”,“version”:“12.0.0.29”}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

"system": {
    "instanceid": "cccccccc",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": {
        "0": "localhost",
        "2": "oc.ccccccc.nl"
    },
    "datadirectory": "\/mnt\/owncloud\/owncloud",
    "overwrite.cli.url": "oc.cccccc.nl",
    "dbtype": "mysql",
    "version": "12.0.0.29",
    "logtimezone": "UTC",
    "installed": true,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "loglevel": 0,
    "defaultapp": "bookmarks",
    "knowledgebaseenabled": "true",
    "custom_csp_policy": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' data: blob:; frame-src *; img-src *; font-src 'self' data: blob:; media-src *",
    "maintenance": false,
    "dbname": "ocdatabase",
    "dbhost": "127.0.0.1",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "theme": "",
    "data-fingerprint": "ab51ae68f88b0d5df560447d24ce885f",
    "mail_from_address": "oc",
    "mail_smtpmode": "smtp",
    "mail_domain": "linuxpete.nl",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtphost": "mail.linuxpete.nl",
    "mail_smtpauth": 1,
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "ssl",
    "enabledPreviewProviders": [
        "OC\\Preview\\Image",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\Epub",
        "OC\\Preview\\PDF",
        "OC\\Preview\\OpenDocument",
        "OC\\Preview\\StarOffice",
        "OC\\Preview\\MSOfficeDoc",
        "OC\\Preview\\MSOffice2003",
        "OC\\Preview\\MSOffice2007",
        "OC\\Preview\\FB2"
    ]
},

The output of your Apache/nginx/system log in /var/log/____:


Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

i have the exact same issue… would really appreciate any help