Initialization issue of An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory

Forever initialization as others mentioned, I pull out the log and cannot find others report a similar issue.

I tried to create a folder using my SD card’s storage and -v to pass into docker container. It went through and I can start setting external access, etc. However, when I use my external drive (storaged some data already not sure if that matters), it stucks on the activation webui.

I checked the external drive, some folders were added: bin/ etc/ ncp/ but nothing more. I’m using raspberry pi 4 4G
ubuntu server 20.04
latest image: ownyourbits/nextcloudpi (-armhf not working either)

log:

[ nc-admin ] (Fri Dec 11 17:45:17 UTC 2020)
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /data-ro/nextcloud/lib/private/DB/Connection.php:72
Stack trace:
#0 /data-ro/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1449): OC\DB\Connection->connect()
#1 /data-ro/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(892): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /data-ro/nextcloud/lib/private/DB/Connection.php(202): Doctrine\DBAL\Connection->executeQuery(‘SELECT * FROM ...', Array, Array, NULL) #3 /data-ro/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php(206): OC\DB\Connection->executeQuery('SELECT * FROM …’, Array, Array)
#4 /data-ro/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(217): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /data-ro/nextcloud/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /data-ro/nextcloud/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
#7 /data-ro/nextcloud/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
#8 /data-ro/nextcloud/lib/private/legacy/OC_App.php(949): OC\AppConfig->getValues(false, ‘installed_versi…’)
#9 /data-ro/nextcloud/lib/private/Server.php(668): OC_App::getAppVersions()
#10 /data-ro/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC{closure}(Object(OC\Server))
#11 /data-ro/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(Pimple\Container))
#12 /data-ro/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet(‘OC\Memcache\Fac…’)
#13 /data-ro/nextcloud/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Memcache\Fac…’, true)
#14 /data-ro/nextcloud/lib/private/Server.php(1677): OC\ServerContainer->query(‘OC\Memcache\Fac…’)
#15 /data-ro/nextcloud/lib/private/Server.php(1017): OC\Server->getMemCacheFactory()
#16 /data-ro/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC{closure}(Object(OC\Server))
#17 /data-ro/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(Pimple\Container))
#18 /data-ro/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet(‘OCP\Lock\ILocki…’)
#19 /data-ro/nextcloud/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query(‘OCP\Lock\ILocki…’, true)
#20 /data-ro/nextcloud/lib/private/Server.php(1977): OC\ServerContainer->query(‘OCP\Lock\ILocki…’)
#21 /data-ro/nextcloud/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#22 /data-ro/nextcloud/lib/private/Server.php(395): OC\Files\View->__construct()
#23 /data-ro/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(155): OC\Server->OC{closure}(Object(OC\Server))
#24 /data-ro/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(Pimple\Container))
#25 /data-ro/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(122): Pimple\Container->offsetGet(‘OC\Files\Node\H…’)
#26 /data-ro/nextcloud/lib/private/ServerContainer.php(156): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Files\Node\H…’, true)
#27 /data-ro/nextcloud/lib/private/Server.php(1324): OC\ServerContainer->query(‘OC\Files\Node\H…’)
#28 /data-ro/nextcloud/lib/base.php(595): OC\Server->boot()
#29 /data-ro/nextcloud/lib/base.php(1091): OC::init()
#30 /data-ro/nextcloud/console.php(49): require_once(’/data-ro/nextcl…’)
#31 /data-ro/nextcloud/occ(11): require_once(’/data-ro/nextcl…’)
#32 {main}

If you do not provide (link or) name and date of image, “latest” doesnt mean much, as they get updated regularly, maybe your latest is no longer the latest

https://ownyourbits.com/downloads/NextCloudPi_RPi_11-27-20/NextCloudPi_RPi_11-27-20.tar.bz2

Thats the latest (64_bits) image for RPI, to date, and it has been reported to work afaik.

If you used docker, you should know that updating image is just one command away. So, yes, that’s the version I am using, the latest.

And yes, I know it has been reported to work, that’s why I also mentioned if I mount the storage from SD card to container it will work but not the external drive. Also the log has also been provided, since no related error message can be found in this forum.

Is your external drive, self powered or powered over usb only? If so, try via a powered hub. Writing too it can stall your OS if it is under powered.