Hello. I am very noob with NCP and I am facing a problem with my NCP. After a few hours working perfectly, the server stops working. I cannot access it either from the Internet or using Putty from windows. Curiously, when I turn the Pi off and on, everything works fine again for some hours, only to get the same problem again afterward.
When the server brokes and I connect the Pi to a TV to see what it is doing, I find that it is in a loop (or I guess it is a loop because it didn’t finish after 6 hours…) computing the following commands:
Also, I think this is the log after the loop:
`
{“reqId”:“YGbhIO22vD4cn2LD7TOjBwAAAEI”,“level”:3,“time”:“2021-04-02T09:17:20+00:00”,“remoteAddr”:“192.168.1.61”,“user”:“–”,“app”:“remote”,“method”:“GET”,“url”:“/status.php”,“message”:{“Exception”:“Doctrine\DBAL\DBALException”,“Message”:“Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php”,“line”:1449,“function”:“connect”,“class”:“OC\DB\Connection”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php”,“line”:892,“function”:“getWrappedConnection”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“line”:202,“function”:“executeQuery”,“class”:“Doctrine\DBAL\Connection”,“type”:“->”,“args”:[“SELECT * FROM
oc_appconfig
”,,,null]},{“file”:“/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php”,“line”:206,“function”:“executeQuery”,“class”:“OC\DB\Connection”,“type”:“->”,“args”:[“SELECT * FROMoc_appconfig
”,,]},{“file”:“/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php”,“line”:217,“function”:“execute”,“class”:“Doctrine\DBAL\Query\QueryBuilder”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/lib/private/AppConfig.php”,“line”:345,“function”:“execute”,“class”:“OC\DB\QueryBuilder\QueryBuilder”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/lib/private/AppConfig.php”,“line”:110,“function”:“loadConfigValues”,“class”:“OC\AppConfig”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/lib/private/AppConfig.php”,“line”:301,“function”:“getApps”,“class”:“OC\AppConfig”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:949,“function”:“getValues”,“class”:“OC\AppConfig”,“type”:“->”,“args”:[false,“installed_version”]},{“file”:“/var/www/nextcloud/lib/private/Server.php”,“line”:668,“function”:“getAppVersions”,“class”:“OC_App”,“type”:“::”,“args”:},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:“->”,“args”:[“*** sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:“->”,“args”:[“OC\Memcache\Factory”]},{“file”:“/var/www/nextcloud/lib/private/ServerContainer.php”,“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[“OC\Memcache\Factory”,true]},{“file”:“/var/www/nextcloud/lib/private/Server.php”,“line”:1677,“function”:“query”,“class”:“OC\ServerContainer”,“type”:“->”,“args”:[“OC\Memcache\Factory”]},{“file”:“/var/www/nextcloud/lib/private/Server.php”,“line”:1017,“function”:“getMemCacheFactory”,“class”:“OC\Server”,“type”:“->”,“args”:[]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:“->”,“args”:[“OCP\Lock\ILockingProvider”]},{“file”:“/var/www/nextcloud/lib/private/ServerContainer.php”,“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[“OCP\Lock\ILockingProvider”,true]},{“file”:“/var/www/nextcloud/lib/private/Server.php”,“line”:1977,“function”:“query”,“class”:“OC\ServerContainer”,“type”:“->”,“args”:[“OCP\Lock\ILockingProvider”]},{“file”:“/var/www/nextcloud/lib/private/Files/View.php”,“line”:118,“function”:“getLockingProvider”,“class”:“OC\Server”,“type”:“->”,“args”:[]},{“file”:“/var/www/nextcloud/lib/private/Server.php”,“line”:395,“function”:“__construct”,“class”:“OC\Files\View”,“type”:“->”,“args”:[]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:155,“function”:“OC\{closure}”,“class”:“OC\Server”,“type”:“->”,“args”:[" sensitive parameters replaced “]},{“file”:”/var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OC\AppFramework\Utility\{closure}”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[" sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“line”:122,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:“->”,“args”:[“OC\Files\Node\HookConnector”]},{“file”:“/var/www/nextcloud/lib/private/ServerContainer.php”,“line”:156,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:“->”,“args”:[“OC\Files\Node\HookConnector”,true]},{“file”:“/var/www/nextcloud/lib/private/Server.php”,“line”:1324,“function”:“query”,“class”:“OC\ServerContainer”,“type”:“->”,“args”:[“OC\Files\Node\HookConnector”]},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:595,“function”:“boot”,“class”:“OC\Server”,“type”:“->”,“args”:},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1091,“function”:“init”,“class”:“OC”,“type”:“::”,“args”:},{“file”:“/var/www/nextcloud/status.php”,“line”:37,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/DB/Connection.php”,“Line”:72,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows) mirall/3.1.3stable-Win64 (build 20210218) (Nextcloud)”,“version”:“20.0.8.1”,“id”:“6066e50c1f796”}
`
I read that this kind of loop might be related to power supply issues, is that right? any idea about its cause?
Thanks!