Fresh docker container, does not work after first restart

fresh docker container (latest image) does not work after first restart. tried x86 (on pc) and armhf (on OlinuXino Lime2) multiple times with the same result.

here’s what i did:

docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-x86

docker logs -f nextcloudpi (wait until Init done)

connect with browser, activate (everything works fine after that)

docker stop nextcloudpi

docker start nextcloudpi

can connect to port 4443 but displays “Nextcloud check error”
get http error 500 on homepage

ncp-report:

NextCloudPi diagnostics

NextCloudPi version  v0.62.1
NextCloudPi image    NextCloudPi_docker_10-02-18
distribution         Debian GNU/Linux 9 \n \l
USB devices          sdc 
datadir              /data/app/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      78G/213G
rootfs usage         78G/213G
swapfile             /dev/dm-1
dbdir                /data/database
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               2:30

Nextcloud configuration

An unhandled exception has been thrown:
OCP\AppFramework\QueryException: Could not resolve defaultTokenProvider! Class defaultTokenProvider does not exist in /data/app/lib/private/AppFramework/Utility/SimpleContainer.php:110
Stack trace:
#0 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(125): OC\AppFramework\Utility\SimpleContainer->resolve('defaultTokenPro...')
#1 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('defaultTokenPro...')
#2 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(81): OC\ServerContainer->query('defaultTokenPro...')
#3 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(104): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#4 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(125): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#5 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#6 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\ServerContainer->query('OC\\Authenticati...')
#7 /data/app/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#8 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(123): Pimple\Container->offsetGet('OC\\Authenticati...')
#9 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#10 /data/app/lib/private/Server.php(364): OC\ServerContainer->query('OC\\Authenticati...')
#11 /data/app/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#12 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(123): Pimple\Container->offsetGet('OCP\\IUserSessio...')
#13 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\IUserSessio...')
#14 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\ServerContainer->query('OCP\\IUserSessio...')
#15 /data/app/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#16 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(123): Pimple\Container->offsetGet('UserSession')
#17 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('UserSession')
#18 /data/app/lib/private/Server.php(1408): OC\ServerContainer->query('UserSession')
#19 /data/app/lib/private/Server.php(683): OC\Server->getUserSession()
#20 /data/app/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#21 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(123): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#22 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\App\\AppManag...')
#23 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\ServerContainer->query('OC\\App\\AppManag...')
#24 /data/app/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#25 /data/app/lib/private/AppFramework/Utility/SimpleContainer.php(123): Pimple\Container->offsetGet('AppManager')
#26 /data/app/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#27 /data/app/lib/private/Server.php(1703): OC\ServerContainer->query('AppManager')
#28 /data/app/lib/private/legacy/app.php(342): OC\Server->getAppManager()
#29 /data/app/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#30 /data/app/lib/base.php(654): OC_App::loadApps(Array)
#31 /data/app/lib/base.php(1068): OC::init()
#32 /data/app/console.php(46): require_once('/data/app/lib/b...')
#33 /data/app/occ(11): require_once('/data/app/conso...')
#34 {main}
HTTPd logs

[Tue Oct 16 19:45:03.530359 2018] [proxy:error] [pid 291:tid 139799733507840] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.sock (*) failed
[Tue Oct 16 19:45:03.530368 2018] [proxy_fcgi:error] [pid 291:tid 139799733507840] [client 172.17.0.1:32884] AH01079: failed to make connection to backend: httpd-UDS
[Tue Oct 16 19:45:05.295176 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.305983 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.306128 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.316588 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.368695 2018] [proxy_fcgi:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01071: Got error 'PHP message: PHP Warning:  ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/ncp-web/index.php on line 41\nPHP message: PHP Warning:  ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/ncp-web/index.php on line 43\nPHP message: PHP Warning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\nPHP message: PHP Warning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\nPHP message: NACHO auto\n - auto\nPHP message: NACHO en\n - auto\nPHP message: NACHO de\n - auto\nPHP message: NACHO es\n - auto\nPHP message: NACHO zh\n - auto\n'
[Tue Oct 16 19:45:05.369615 2018] [authz_host:error] [pid 290:tid 139799750293248] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /ncp.js failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.376747 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /minified.js failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.377202 2018] [authz_host:error] [pid 290:tid 139799733507840] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /img/ncp-logo.svg failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.377227 2018] [authz_host:error] [pid 290:tid 139799758685952] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.377804 2018] [authz_host:error] [pid 290:tid 139799750293248] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /ncp.css failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.386595 2018] [authz_host:error] [pid 290:tid 139799750293248] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.392767 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /core/img/actions/triangle-s.svg failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.396945 2018] [authz_host:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.408975 2018] [authz_host:error] [pid 290:tid 139799758685952] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:05.652197 2018] [proxy_fcgi:error] [pid 290:tid 139799741900544] [client 172.17.0.1:32892] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Permission denied in /var/www/ncp-web/ncp-output.php on line 81\n'
[Tue Oct 16 19:45:10.598259 2018] [proxy_fcgi:error] [pid 290:tid 139799750293248] [client 172.17.0.1:32892] AH01071: Got error 'PHP message: PHP Warning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Oct 16 19:45:10.611045 2018] [authz_host:error] [pid 290:tid 139799750293248] [client 172.17.0.1:32892] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Oct 16 19:45:11.191340 2018] [proxy_fcgi:error] [pid 290:tid 139799750293248] [client 172.17.0.1:32892] AH01071: Got error 'PHP message: PHP Warning:  fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'

Database logs

2018-10-16 19:44:56 139869776729024 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-10-16 19:44:56 139869776729024 [Note] InnoDB: Completed initialization of buffer pool
2018-10-16 19:44:56 139869776729024 [Note] InnoDB: Highest supported file format is Barracuda.
2018-10-16 19:44:56 139869776729024 [Note] InnoDB: 128 rollback segment(s) are active.
2018-10-16 19:44:56 139869776729024 [Note] InnoDB: Waiting for purge to start
2018-10-16 19:44:56 139869776729024 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.36-82.1 started; log sequence number 3590177
2018-10-16 19:44:56 139869776729024 [Note] Plugin 'FEEDBACK' is disabled.
2018-10-16 19:44:56 139869145790208 [Note] InnoDB: Dumping buffer pool(s) not yet started
2018-10-16 19:44:56 139869776729024 [Note] Server socket created on IP: '127.0.0.1'.
2018-10-16 19:44:56 139869776729024 [Note] mysqld: ready for connections.
Version: '10.1.26-MariaDB-0+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Debian 9.1
2018-10-16 19:44:59 139869775795968 [Note] mysqld: Normal shutdown

2018-10-16 19:44:59 139869775795968 [Note] Event Scheduler: Purging the queue. 0 events
2018-10-16 19:44:59 139869200307968 [Note] InnoDB: FTS optimize thread exiting.
2018-10-16 19:44:59 139869775795968 [Note] InnoDB: Starting shutdown...
2018-10-16 19:45:00 139869775795968 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
2018-10-16 19:45:01 139869775795968 [Note] InnoDB: Shutdown completed; log sequence number 3590187
2018-10-16 19:45:01 139869775795968 [Note] mysqld: Shutdown complete


Nextcloud logs