Internal Server Error after migration to Docker

After upgrade from Debian 8 to 9 my server didn’t come back up after the reboot. So I have to migrate the nextcloud installation to another server. I decided to move to Docker.

This is what I have done:

  • Setup up the current NC on Docker with a separate MariaDB container - all is working
  • Shut down both containers
  • Started the DB container an restored the db dump
  • Restored the data directory
  • Changed the version in config.php from 15.0.7.0 to 15.0.5.3 (the version of the failed server)
  • Started both containers
  • Ran nextcloud upgrade from 15.0.5 to 15.0.7 in the browser

After that, I can login with the accounts from the old server but I get an Internal Server Error afterwards. The log shows the error “AutoloadNotAllowedException”:

{
“reqId”: “WDgvVwl1DxVZyWV6B8ht”,
“level”: 3,
“time”: “2019-04-22T18:43:56+00:00”,
“remoteAddr”: “172.24.0.1”,
“user”: “andreas”,
“app”: “index”,
“method”: “GET”,
“url”: “/apps/files/”,
“message”: {
“Exception”: “OCP\AutoloadNotAllowedException”,
“Message”: “Autoload path not allowed: /var/www/html/apps/theming/lib/util.php”,
“Code”: 0,
“Trace”: [{
“file”: “/var/www/html/lib/autoloader.php”,
“line”: 162,
“function”: “isValidPath”,
“class”: “OC\Autoloader”,
“type”: “->”,
“args”: ["/var/www/html/apps/theming/lib/util.php"]
}, {
“function”: “load”,
“class”: “OC\Autoloader”,
“type”: “->”,
“args”: [“OCA\Theming\Util”]
}, {
“function”: “spl_autoload_call”,
“args”: [“OCA\Theming\Util”]
}, {
“file”: “/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php”,
“line”: 96,
“function”: “__construct”,
“class”: “ReflectionClass”,
“type”: “->”,
“args”: [“OCA\Theming\Util”]
}, {
“file”: “/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php”,
“line”: 119,
“function”: “resolve”,
“class”: “OC\AppFramework\Utility\SimpleContainer”,
“type”: “->”,
“args”: [“OCA\Theming\Util”]
}, {
“file”: “/var/www/html/lib/private/ServerContainer.php”,
“line”: 132,
“function”: “query”,
“class”: “OC\AppFramework\Utility\SimpleContainer”,
“type”: “->”,
“args”: [“OCA\Theming\Util”]
}, {
“file”: “/var/www/html/lib/private/TemplateLayout.php”,
“line”: 112,
“function”: “query”,
“class”: “OC\ServerContainer”,
“type”: “->”,
“args”: [“OCA\Theming\Util”]
}, {
“file”: “/var/www/html/lib/private/legacy/template.php”,
“line”: 211,
“function”: “__construct”,
“class”: “OC\TemplateLayout”,
“type”: “->”,
“args”: [“user”, “files”]
}, {
“file”: “/var/www/html/lib/public/AppFramework/Http/TemplateResponse.php”,
“line”: 157,
“function”: “fetchPage”,
“class”: “OC_Template”,
“type”: “->”,
“args”: [{
“usedSpacePercent”: 15,
“owner”: “andreas”,
“ownerDisplayName”: “andreas”,
“isPublic”: false,
“allowShareWithLink”: “yes”,
“defaultFileSorting”: “name”,
“defaultFileSortingDirection”: “asc”,
“showgridview”: false,
“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\t<div id=“uploadprogressbar”>\n\t\t\t\t\t<em class=“label outer” style=“display:none”><span class=“desktop”>Lade hoch\u2026</span><span class=“mobile”>\u2026</span></em>\n\t\t\t\t</div>\n\t\t\t\t<button class=“stop icon-close” style=“display:none”>\n\t\t\t\t\t<span class=“hidden-visually”>Hochladen abbrechen</span>\n\t\t\t\t</button>\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 hast keine Berechtigung, hier Dateien hochzuladen oder zu erstellen\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\n<div id=“emptycontent” class=“hidden”>\n\t<div class=“icon-folder”></div>\n\t

Keine Dateien vorhanden</h2>\n\t<p class=“uploadmessage hidden”>Inhalte hochladen oder mit Deinen Ger\u00e4ten synchronisieren!</p>\n</div>\n\n<div class=“nofilterresults emptycontent hidden”>\n\t<div class=“icon-search”></div>\n\t

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n\t

</p>\n</div>\n<table id=“filestable” class=“list-container " data-allow-public-upload=“yes” data-preview-x=“250” data-preview-y=“250”>\n\t\n\t\t\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”>Alle ausw\u00e4hlen</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 Name</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 Aktionen</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”>Gr\u00f6\u00dfe</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”>Ge\u00e4ndert</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\n\t</tfoot>\n</table>\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>\n<div id=“uploadsize-message” title=“Der Upload ist zu gro\u00df”>\n\t

\n\tDie Datei \u00fcberschreitet die Maximalgr\u00f6\u00dfe f\u00fcr Uploads auf diesem Server.\t</p>\n</div>\n"
},
“recent”: {
“id”: “recent”,
“content”: “

</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n\t

</p>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\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”>Name</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”>Gr\u00f6\u00dfe</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”>Ge\u00e4ndert</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\tL\u00f6schen</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\n\t</tfoot>\n</table>\n"
},
“favorites”: {
“id”: “favorites”,
“content”: “

</div>\n\n<div id=“emptycontent” class=“hidden”>\n\t<div class=“icon-starred”></div>\n\t

Noch keine Favoriten vorhanden</h2>\n\t

Dateien und Ordner, die als Favoriten markiert werden, erscheinen hier</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n\t

</p>\n</div>\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Name</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”>Gr\u00f6\u00dfe</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”>Ge\u00e4ndert</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\tL\u00f6schen\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\n\t</tfoot>\n</table>\n"
},
“sharingout”: {
“id”: “sharingout”,
“content”: “

</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Name</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”>Freigabezeitpunkt</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”>Ablaufdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=“fileList”>\n\t</tbody>\n\t\n\t</tfoot>\n</table>\n”
},
“sharingin”: {
“id”: “sharingin”,
“content”: “
</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Name</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”>Freigabezeitpunkt</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”>Ablaufdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=“fileList”>\n\t</tbody>\n\t\n\t</tfoot>\n</table>\n”
},
“sharinglinks”: {
“id”: “sharinglinks”,
“content”: “
</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Name</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”>Freigabezeitpunkt</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”>Ablaufdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=“fileList”>\n\t</tbody>\n\t\n\t</tfoot>\n</table>\n”
},
“deletedshares”: {
“id”: “deletedshares”,
“content”: “
</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Name</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”>Freigabezeitpunkt</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”>Ablaufdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=“fileList”>\n\t</tbody>\n\t\n\t</tfoot>\n</table>\n”
},
“shareoverview”: {
“id”: “shareoverview”,
“content”: “
</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Name</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”>Freigabezeitpunkt</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”>Ablaufdatum</span></a>\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody id=“fileList”>\n\t</tbody>\n\t\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>\n\n<div id=“emptycontent” class=“hidden”>\n\t<div class=“icon-delete”></div>\n\t

Keine gel\u00f6schten Dateien</h2>\n\t

Hier k\u00f6nnen gel\u00f6schte Dateien wiederhergestellt werden</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

Keine Eintr\u00e4ge in diesem Ordner gefunden</h2>\n\t

</p>\n</div>\n\n<table id=“filestable” class=“list-container “>\n\t\n\t\t\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”>Alle ausw\u00e4hlen</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”>Name</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\tAktionen</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”>gel\u00f6scht</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\n\t</tfoot>\n</table>\n"
}
},
“hiddenFields”: []
}]
}, {
“file”: “/var/www/html/lib/private/AppFramework/Http/Dispatcher.php”,
“line”: 119,
“function”: “render”,
“class”: “OCP\AppFramework\Http\TemplateResponse”,
“type”: “->”,
“args”: []
}, {
“file”: “/var/www/html/lib/private/AppFramework/App.php”,
“line”: 118,
“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”: [“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”: 987,
“function”: “match”,
“class”: “OC\Route\Router”,
“type”: “->”,
“args”: ["/apps/files/"]
}, {
“file”: “/var/www/html/index.php”,
“line”: 42,
“function”: “handleRequest”,
“class”: “OC”,
“type”: “::”,
“args”: []
}],
“File”: “/var/www/html/lib/autoloader.php”,
“Line”: 137,
“CustomMessage”: “–”
},
“userAgent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0”,
“version”: “15.0.7.0”
}

Can anyone help?

Thanks in advance
Andreas