Internal server error after upgrade using docker-compose pull

I recently upgraded my nextcloud from 18.0.4 to latest docker image with docker-compose pull.
It resulted in an Internal Server Error screen on logon.
The first problem that I saw was that all file ownerships had been changed to root:root in the data dir, which is fixed, but the internal server error message remains as seen below.
On top of that there is one user who havent signed on yet that occ files:scan say don’t have write permissions to her home folder, even though it’s the same permissions and ownership as all the other users…
At this moment the Internal Server Error is css formated, but at times through my try to fix journy, it has been raw format…

Some things I have tried:

tried solutions

docker exec --user www-data cloud-container php occ files:scan --all -vvv
docker exec --user www-data cloud-container php occ files:cleanup
docker exec --user www-data cloud-container php occ maintenance:mode --off
docker exec --user www-data cloud-container php occ db:convert-filecache-bigint
docker exec --user www-data cloud-container php occ db:add-missing-indices
docker exec --user www-data cloud-container php occ files:scan-app-data
docker exec --user www-data cloud-container php occ maintenance:repair

Remove file locks
docker exec --user www-data cloud-container php occ maintenance:mode --on
docker exec -it mariadb mysql -p -e ‘DELETE FROM oc_file_locks WHERE 1’ nextcloud
docker exec --user www-data cloud-container php occ maintenance:mode --off

Change permissions for data folder…
docker exec --user www-data cloud-container chown -R www-data:www-data /var/www/html

session log
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:55+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"no app in context","method":"GET","url":"/apps/files/","message":"JSCombiner: unable to cache: merged-template-prepend.js","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:55+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"no app in context","method":"GET","url":"/apps/files/","message":"JSCombiner: unable to cache: merged-index.js","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:56+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"no app in context","method":"GET","url":"/apps/files/","message":"JSCombiner: unable to cache: activity-sidebar.js","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:56+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotPermittedException","Message":"","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/SimpleFS/SimpleFile.php","line":91,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->","args":[]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Capabilities.php","line":133,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->","args":[]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Capabilities.php","line":104,"function":"getCollaboraCapabilities","class":"OCA\\Richdocuments\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\Richdocuments\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":181,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":190,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":185,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["user","files"]},{"file":"/var/www/html/lib/public/AppFramework/Http/TemplateResponse.php","line":166,"function":"fetchPage","class":"OC_Template","type":"->","args":[{"usedSpacePercent":0,"owner":"USERID","ownerDisplayName":"Erik Littorin","isPublic":false,"allowShareWithLink":"yes","defaultFileSorting":"mtime","defaultFileSortingDirection":"desc","showgridview":"1","isIE":false,"showHiddenFiles":0,"fileNotFound":0,"appNavigation":{"__class__":"OCP\\Template"},"appContents":{"files":{"id":"files","content":"<div id=\"controls\">\n\t\t<div class=\"actions creatable hidden\">\n\t\t\t<div id=\"uploadprogresswrapper\">\n\t\t\t</div>\n\t\t</div>\n\t\t<div id=\"file_action_panel\"></div>\n\t\t<div class=\"notCreatable notPublic hidden\">\n\t\t\tDu har inte till\u00e5telse att ladda upp eller skapa filer h\u00e4r\t\t</div>\n\t\t<input type=\"hidden\" name=\"permissions\" value=\"\" id=\"permissions\">\n\t<input type=\"hidden\" id=\"free_space\" value=\"\">\n\t\t<input type=\"hidden\" class=\"max_human_file_size\"\n\t\t   value=\"(max )\">\n</div>\n<div id=\"filelist-header\"></div>\n\n<div id=\"emptycontent\" class=\"hidden\">\n\t<div class=\"icon-folder\"></div>\n\t<h2>Inga filer kunde hittas</h2>\n\t<p class=\"uploadmessage hidden\">Ladda upp inneh\u00e5ll eller synkronisera med dina enheter!</p>\n</div>\n\n<div class=\"nofilterresults emptycontent hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inget inneh\u00e5ll hittades i denna mapp</h2>\n\t<p></p>\n</div>\n<table id=\"filestable\" class=\"list-container view-grid\" data-allow-public-upload=\"yes\" data-preview-x=\"250\" data-preview-y=\"250\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id=\"headerSelection\" class=\"hidden column-selection\">\n\t\t\t\t<input type=\"checkbox\" id=\"select_all_files\" class=\"select-all checkbox\"/>\n\t\t\t\t<label for=\"select_all_files\">\n\t\t\t\t\t<span class=\"hidden-visually\">V\u00e4lj allt</span>\n\t\t\t\t</label>\n\t\t\t</th>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\">\n                        <span>Namn</span>\n                        <span class=\"sort-indicator\"></span>\n\n                    </a>\n                    <span id=\"selectedActionsList\" class=\"selectedActions\">\n                        <a href=\"\" class=\"actions-selected\">\n                            <span class=\"icon icon-more\"></span>\n                            <span>\u00c5tg\u00e4rder</span>\n                        </a>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerSize\" class=\"hidden column-size\">\n\t\t\t\t<a class=\"size sort columntitle\" data-sort=\"size\"><span>Storlek</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>\u00c4ndrad</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n<div id=\"filelist-footer\"></div>\n<input type=\"hidden\" name=\"dir\" id=\"dir\" value=\"\" />\n<div class=\"hiddenuploadfield\">\n\t<input type=\"file\" id=\"file_upload_start\" class=\"hiddenuploadfield\" name=\"files[]\" />\n</div>\n<div id=\"editor\"></div><!-- FIXME Do not use this div in your app! It is deprecated and will be removed in the future! -->\n<div id=\"uploadsize-message\" title=\"F\u00f6r stor uppladdning\">\n\t<p>\n\tFilerna du f\u00f6rs\u00f6ker ladda upp \u00f6verstiger den maximala storleken f\u00f6r fil\u00f6verf\u00f6ringar p\u00e5 servern.\t</p>\n</div>\n"},"recent":{"id":"recent","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inget inneh\u00e5ll hittades i denna mapp</h2>\n\t<p></p>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t<tr>\n\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t<div id=\"headerName-container\">\n\t\t\t\t<a class=\"name sort columntitle\"\n\t\t\t\t   data-sort=\"name\"><span>Namn</span></a>\n\t\t\t</div>\n\t\t</th>\n\t\t<th id=\"headerSize\" class=\"hidden column-size\">\n\t\t\t<a class=\"size sort columntitle\"\n\t\t\t   data-sort=\"size\"><span>Storlek</span></a>\n\t\t</th>\n\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t<a id=\"modified\" class=\"columntitle\"\n\t\t\t   data-sort=\"mtime\"><span>\u00c4ndrad</span><span\n\t\t\t\t\tclass=\"sort-indicator\"></span></a>\n\t\t\t<span class=\"selectedActions\">\n\t\t\t\t<a href=\"\" class=\"delete-selected\">\n\t\t\t\t\t<span class=\"icon icon-delete\"></span>\n\t\t\t\t\t<span>Radera</span>\n\t\t\t\t</a>\n\t\t\t</span>\n\t\t</th>\n\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"favorites":{"id":"favorites","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\">\n\t<div class=\"icon-starred\"></div>\n\t<h2>Inga favoriter \u00e4nnu</h2>\n\t<p>Filer och mappar markerade som favoriter kommer att visas h\u00e4r</p>\n</div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inget inneh\u00e5ll hittades i denna mapp</h2>\n\t<p></p>\n</div>\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerSize\" class=\"hidden column-size\">\n\t\t\t\t<a class=\"size sort columntitle\" data-sort=\"size\"><span>Storlek</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>\u00c4ndrad</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t<span class=\"selectedActions\">\n\t\t\t\t    <a href=\"\" class=\"delete-selected\">\n\t\t\t\t\t<img class=\"svg\" alt=\"\"\n\t\t\t\t\t     src=\"/core/img/actions/delete.svg\" />\n\t\t\t\t\tRadera\t\t\t\t    </a>\n\t\t\t\t</span>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"sharingout":{"id":"sharingout","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Delningstid</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th class=\"hidden column-expiration\">\n\t\t\t\t<a class=\"columntitle\"><span>Utg\u00e5ngsdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"sharingin":{"id":"sharingin","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Delningstid</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th class=\"hidden column-expiration\">\n\t\t\t\t<a class=\"columntitle\"><span>Utg\u00e5ngsdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"sharinglinks":{"id":"sharinglinks","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Delningstid</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th class=\"hidden column-expiration\">\n\t\t\t\t<a class=\"columntitle\"><span>Utg\u00e5ngsdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"deletedshares":{"id":"deletedshares","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Delningstid</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th class=\"hidden column-expiration\">\n\t\t\t\t<a class=\"columntitle\"><span>Utg\u00e5ngsdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"pendingshares":{"id":"pendingshares","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Delningstid</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th class=\"hidden column-expiration\">\n\t\t\t\t<a class=\"columntitle\"><span>Utg\u00e5ngsdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"shareoverview":{"id":"shareoverview","content":"<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\"></div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Delningstid</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th class=\"hidden column-expiration\">\n\t\t\t\t<a class=\"columntitle\"><span>Utg\u00e5ngsdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"systemtagsfilter":{"id":"systemtagsfilter","content":"<div id=\"controls\">\n</div>\n\n<div id=\"emptycontent\" class=\"hidden\">\n\t<div class=\"icon-folder\"></div>\n\t<h2>Inga filer h\u00e4r inne</h2>\n\t<p class=\"uploadmessage hidden\"></p>\n</div>\n\n<div class=\"nofilterresults emptycontent hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Ingenting hittades i denna mapp</h2>\n\t<p></p>\n</div>\n\n<table id=\"filestable\" data-preview-x=\"250\" data-preview-y=\"250\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerSize\" class=\"hidden column-size\">\n\t\t\t\t<a class=\"size sort columntitle\" data-sort=\"size\"><span>Storlek</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Modifierad</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n<input type=\"hidden\" name=\"dir\" id=\"dir\" value=\"\" />\n\n"},"extstoragemounts":{"id":"extstoragemounts","content":"<div id=\"controls\">\n\t<div id=\"file_action_panel\"></div>\n</div>\n<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\">\n\t<div class=\"icon-external\"></div>\n\t<h2>Ingen extern lagring konfigurerad eller s\u00e5 har du inte beh\u00f6righet att konfigurera dem</h2>\n</div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerBackend\" class=\"hidden column-backend\">\n\t\t\t\t<a class=\"backend sort columntitle\" data-sort=\"backend\"><span>Lagringstyp</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t\t<th id=\"headerScope\" class=\"hidden column-scope column-last\">\n\t\t\t\t<a class=\"scope sort columntitle\" data-sort=\"scope\"><span>Sammanhang</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"},"trashbin":{"id":"trashbin","content":"<div id=\"controls\">\n\t<div id=\"file_action_panel\"></div>\n</div>\n<div id='notification'></div>\n\n<div id=\"emptycontent\" class=\"hidden\">\n\t<div class=\"icon-delete\"></div>\n\t<h2>Inga borttagna filer</h2>\n\t<p>Du kommer kunna \u00e5terskapa borttagna filer h\u00e4rifr\u00e5n</p>\n</div>\n\n<input type=\"hidden\" name=\"dir\" value=\"\" id=\"dir\">\n\n<div class=\"nofilterresults hidden\">\n\t<div class=\"icon-search\"></div>\n\t<h2>Inga filer hittades i denna mapp</h2>\n\t<p></p>\n</div>\n\n<table id=\"filestable\" class=\"list-container view-grid\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th id=\"headerSelection\" class=\"hidden column-selection\">\n\t\t\t\t<input type=\"checkbox\" id=\"select_all_trash\" class=\"select-all checkbox\"/>\n\t\t\t\t<label for=\"select_all_trash\">\n\t\t\t\t\t<span class=\"hidden-visually\">V\u00e4lj allt</span>\n\t\t\t\t</label>\n\t\t\t</th>\n\t\t\t<th id='headerName' class=\"hidden column-name\">\n\t\t\t\t<div id=\"headerName-container\">\n\t\t\t\t\t<a class=\"name sort columntitle\" data-sort=\"name\"><span>Namn</span><span class=\"sort-indicator\"></span></a>\n\t\t\t\t\t<span id=\"selectedActionsList\" class='selectedActions'>\n\t\t\t\t\t\t<a href=\"\" class=\"actions-selected\">\n\t\t\t\t\t\t\t<span class=\"icon icon-more\"></span>\n\t\t\t\t\t\t\t<span>\u00c5tg\u00e4rder</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th id=\"headerDate\" class=\"hidden column-mtime\">\n\t\t\t\t<a id=\"modified\" class=\"columntitle\" data-sort=\"mtime\"><span>Raderad</span><span class=\"sort-indicator\"></span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=\"fileList\">\n\t</tbody>\n\t<tfoot>\n\t</tfoot>\n</table>\n"}},"hiddenFields":[]}]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":124,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"/var/www/html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"/var/www/html/lib/base.php","line":1012,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/html/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Files/Node/File.php","Line":59,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:56+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"no app in context","method":"GET","url":"/apps/files/","message":"JSCombiner: unable to cache: merged-template-prepend.js","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:56+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"no app in context","method":"GET","url":"/apps/files/","message":"JSCombiner: unable to cache: merged-index.js","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"bil7Gs4BbBS41qmqOwzj","level":3,"time":"2020-09-25T17:31:56+00:00","remoteAddr":"X.X.X.X","user":"USERID","app":"no app in context","method":"GET","url":"/apps/files/","message":"JSCombiner: unable to cache: activity-sidebar.js","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}```
snippets from docker logs

127.0.0.1 - - [25/Sep/2020:09:13:21 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.38 (Debian) PHP/7.4.10 (internal dummy connection)" [Fri Sep 25 18:56:10.182365 2020] [access_compat:error] [pid 39] [client IP:51252] AH01797: client denied by server configuration: /var/www/html/config [Fri Sep 25 19:44:40.781712 2020] [php7:error] [pid 29] [client IP:52162] script '/var/www/html/apps/files/cron.php' not found or unable to stat

My system:
Nextcloud version docker-compose pull in 2020-09-25, so 19.0.3.1
Apache/2.4.38, PHP/7.4.10
Alpine Linux 3.11.6 running on freenas host using behyve
Nginx running on other server as remote proxy with ssl offloading.

Config.php

'htaccess.RewriteBase' => '/', 'memcache.local' => '\\OC\\Memcache\\APCu', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/html/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/html/custom_apps', 'url' => '/custom_apps', 'writable' => true, ), ), 'instanceid' => 'STRING', 'passwordsalt' => 'STRING', 'secret' => 'STRING', 'trusted_domains' => array ( 0 => 'URL', 1 => 'URL', 2 => 'localhost', ), 'datadirectory' => '/var/www/html/data', 'dbtype' => 'mysql', 'version' => '19.0.3.1', 'overwrite.cli.url' => 'http://URL', 'dbname' => 'nextcloud', 'dbhost' => 'db', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'STRING', 'dbpassword' => 'STRING', 'installed' => true, 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory', 'overwriteprotocol' => 'https', 'maintenance' => false, 'updater.secret' => 'STRING', 'loglevel' => 2,

status.php
{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"19.0.3.1","versionstring":"19.0.3","edition":"","productname":"Nextcloud","extendedSupport":false}
docker-compose.yml
version: '3.1'

services:
  db:
    image: mariadb
    networks:
          - nextcloud_network
    restart: unless-stopped
    environment:
      - MYSQL_ROOT_PASSWORD=STRING
      - MYSQL_PASSWORD=STRING
      - MYSQL_USER=STRING
      - MYSQL_DATABASE=STRING
    volumes:
      - db:/var/lib/mysql
      - /etc/localtime:/etc/localtime:ro
    container_name: nextcloud-mariadb

  app:
    image: nextcloud:latest
    depends_on:
      - db
    ports:
      - "8082:80"
    networks:
          - nextcloud_network
    links:
      - db
    volumes:
      - nextcloud:/var/www/html
      - /mnt/nextcloud/data:/var/www/html/data
      - /etc/localtime:/etc/localtime:ro
    restart: always
    container_name: nextcloud-container

  collabora:
    image: collabora/code
    container_name: collabora
    ports:
      - 9980:9980
    networks:
      - nextcloud_network
    cap_add:
      - MKNOD
    environment:
      - domain=STRING
      - TZ=Europe/Stockholm
      - username=STRING
      - password=STRING
      - VIRTUAL_PROTO=https
      - VIRTUAL_PORT=443
      - VIRTUAL_HOST=STRING
      - LETSENCRYPT_HOST=STRING
      - LETSENCRYPT_EMAIL=STRING
    restart: always

volumes:
  nextcloud:
  db:

networks:
  nextcloud_network:

Greateful for tips on where to go next since I’m lost…

Update:
When I go to the url in private mode, I get a login screen. But after login the Internal Error page comes again with the same error as before.
I have tried to disable apps, including user_ldap but to no vail… This problem is beginning to frustrate me.

Update 2:
I tried to make a new nextcloud image to see if it was something with the upgrade that failed. It seems that this new session also wants the ownership of the files to be root:www-data. Is there something going on with this update that requires updateing ownerships of the whole data dir??

Please post the output of your http(s)://[your_nextcloud_domain_or_ip]/status.php

status.php: {"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"19.0.3.1","versionstring":"19.0.3","edition":"","productname":"Nextcloud","extendedSupport":false}

So I guess i upgraded a whole version then.

Update: Since changing all ownerships to root:www-data I have ran occ scan-app-data, same error. Removed js folder from appdata and rerun scan-app-data, same error. Truncate oc-filecache table in the database, same error. Ran maintenance:repair, maintenance:update:db, maintenance:update:js, maintenance:update:htaccess, same error.
Is there nobody out there with some clue on whats going on?

After running a new instance of nextcloud again and again…
The container has www-data and group in apache2 envvars and they are listed as uid and gid 33 as before. But when the nextcloud installation is running it creates the appdir and admin dir with root:www-data ownership and they are created empty… Dirs have permission 660, so should not be a problem as long as the group is correct…

dock:/var/docker/nextcloud2# docker exec --user www-data nextcloud2 ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.4 280964 36672 ? Ss 13:48 0:00 apache2 -DFOREGROUND
www-data 60 0.0 0.3 283420 28196 ? S 13:48 0:00 apache2 -DFOREGROUND
www-data 61 1.2 0.7 317336 61772 ? S 13:48 0:10 apache2 -DFOREGROUND
www-data 62 0.0 0.1 280996 9100 ? S 13:48 0:00 apache2 -DFOREGROUND
www-data 63 0.0 0.1 280996 9100 ? S 13:48 0:00 apache2 -DFOREGROUND
www-data 64 0.0 0.1 280996 9100 ? S 13:48 0:00 apache2 -DFOREGROUND
www-data 65 0.0 0.1 280996 9100 ? S 13:48 0:00 apache2 -DFOREGROUND
www-data 96 0.0 0.0 7636 2808 ? Rs 14:02 0:00 ps aux

Can it be that the root apache process is the one that creates the first folder and the other ones dont get access to create in these or something like that?

Solved!
It had nothing to do with docker or nextcloud.
For some reason, the NFS share that the data folder is mounted on created all files with the wrong ownership.
When that was fixed, I rerun occ files:scan-app-data and I was in!
I have no idéa why since I have not changed anytning on either the server or the client side for the share since the first install of nextcloud… But now it’s fixed and I can start fixing all the problems that I caused during the 3 week long trouble shooting…

1 Like

What did you do exactly?