linuxserver / docker-nextcloud

GNU General Public License v3.0
724 stars 127 forks source link

Error since latest update (15/02/21) #182

Closed curator888 closed 3 years ago

curator888 commented 3 years ago

Im getting this error since I updated NextCloud (15/02/21):

I have also destroyed it and spun it up fresh and I get the same error.

linuxserver.io


Expected Behavior

Expected that server would still work after update

Current Behavior

Currently getting the following error in NextCloud "Internal Server Error

The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log." It now gives a 500 error."

Steps to Reproduce

1.Update from previous version 14/02/21 2.image updated 3.Navigate to NextCloud web server and get the error

Environment

OS: Ubuntu 20.04 VM running Docker 20.10.3 CPU architecture: x86_64 OS/docker info Proxmox with Ubuntu 20.04 VM running Docker 20.10.3 Hardware Dell R710, VM. How docker service was installed: via official DockerHub repo

Command used to create docker container (run/create/compose/screenshot)

Created via SelfHosted_pro Stack

Docker logs

docker@docker:~$ docker logs nextcloud [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-envfile: executing... [cont-init.d] 01-envfile: exited 0. [cont-init.d] 10-adduser: executing...


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \ 
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support LSIO projects visit: https://www.linuxserver.io/donate/

GID/UID

User uid: 1000 User gid: 100

[cont-init.d] 10-adduser: exited 0. [cont-init.d] 20-config: executing... [cont-init.d] 20-config: exited 0. [cont-init.d] 30-keygen: executing... using keys found in /config/keys [cont-init.d] 30-keygen: exited 0. [cont-init.d] 40-config: executing... [cont-init.d] 40-config: exited 0. [cont-init.d] 50-install: executing... [cont-init.d] 50-install: exited 0. [cont-init.d] 60-memcache: executing... [cont-init.d] 60-memcache: exited 0. [cont-init.d] 70-aliases: executing... [cont-init.d] 70-aliases: exited 0. [cont-init.d] 99-custom-files: executing... [custom-init] no custom files found exiting... [cont-init.d] 99-custom-files: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-envfile: executing... [cont-init.d] 01-envfile: exited 0. [cont-init.d] 10-adduser: executing... usermod: no changes


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \ 
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support LSIO projects visit: https://www.linuxserver.io/donate/

GID/UID

User uid: 1000 User gid: 100

[cont-init.d] 10-adduser: exited 0. [cont-init.d] 20-config: executing... [cont-init.d] 20-config: exited 0. [cont-init.d] 30-keygen: executing... using keys found in /config/keys [cont-init.d] 30-keygen: exited 0. [cont-init.d] 40-config: executing... [cont-init.d] 40-config: exited 0. [cont-init.d] 50-install: executing... [cont-init.d] 50-install: exited 0. [cont-init.d] 60-memcache: executing... [cont-init.d] 60-memcache: exited 0. [cont-init.d] 70-aliases: executing... [cont-init.d] 70-aliases: exited 0. [cont-init.d] 99-custom-files: executing... [custom-init] no custom files found exiting... [cont-init.d] 99-custom-files: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done.

github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

j0nnymoe commented 3 years ago

Please provide the information requested in the issue template so we can help you accordingly.

curator888 commented 3 years ago

Please provide the information requested in the issue template so we can help you accordingly.

Thanks its now been updated as per template

j0nnymoe commented 3 years ago

Does Created via SelfHosted_pro Stack mean via Yacht? or something else?

curator888 commented 3 years ago

Does Created via SelfHosted_pro Stack mean via Yacht? or something else?

It was done using portioner using the selfhosted_pro App Template, this app has been working fine since I installed it a week ago, then when it updated with your last update it killed it.

curator888 commented 3 years ago

Please provide the information requested in the issue template so we can help you accordingly.

Is the info still insufficient?

aptalca commented 3 years ago

Restart the container, see if it fixes it

SelfhostedPro commented 3 years ago

Just to add some context. This is the docker-compose that's in use: https://github.com/SelfhostedPro/selfhosted_templates/blob/portainer-2.0/Template/Stack/nextcloud.yml

curator888 commented 3 years ago

Restart the container, see if it fixes it

Restarted same issue.

Deleted it all and started over same issue.

ohthehugemanatee commented 3 years ago

have a look in your nextcloud log. It's in your nextcloud home directory, under nextcloud.log. That should give an indication of the problem.

curator888 commented 3 years ago

have a look in your nextcloud log. It's in your nextcloud home directory, under nextcloud.log. That should give an indication of the problem.

{"reqId":"BS3XO9VuQd9W7ezkyteG","level":3,"time":"2021-03-03T21:55:00+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Doctrine\DBAL\Exception\TableNotFoundException","Message":"An exception occurred while executing 'SELECT * FROM \"oc_appconfig\"':\n\nSQLSTATE[HY000]: General error: 1 no such table: oc_appconfig","Code":0,"Trace":[{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":169,"function":"convertException","class":"Doctrine\DBAL\Driver\AbstractSQLiteDriver","type":"->"},{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":149,"function":"wrapException","class":"Doctrine\DBAL\DBALException","type":"::"},{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":914,"function":"driverExceptionDuringQuery","class":"Doctrine\DBAL\DBALException","type":"::"},{"file":"/config/www/nextcloud/lib/private/DB/Connection.php","line":202,"function":"executeQuery","class":"Doctrine\DBAL\Connection","type":"->"},{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":206,"function":"executeQuery","class":"OC\DB\Connection","type":"->"},{"file":"/config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":217,"function":"execute","class":"Doctrine\DBAL\Query\QueryBuilder","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":345,"function":"execute","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":110,"function":"loadConfigValues","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":301,"function":"getApps","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_App.php","line":949,"function":"getValues","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":668,"function":"getAppVersions","class":"OC_App","type":"::"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1677,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1017,"function":"getMemCacheFactory","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1977,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":395,"function":"construct","class":"OC\Files\View","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1324,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/base.php","line":595,"function":"boot","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/config/www/nextcloud/cron.php","line":42,"args":["/config/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php","Line":43,"Previous":{"Exception":"Doctrine\DBAL\Driver\PDOException","Message":"SQLSTATE[HY000]: General error: 1 no such table: oc_appconfig","Code":"HY000","Trace":[{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":911,"function":"query","class":"Doctrine\DBAL\Driver\PDOConnection","type":"->"},{"file":"/config/www/nextcloud/lib/private/DB/Connection.php","line":202,"function":"executeQuery","class":"Doctrine\DBAL\Connection","type":"->"},{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":206,"function":"executeQuery","class":"OC\DB\Connection","type":"->"},{"file":"/config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":217,"function":"execute","class":"Doctrine\DBAL\Query\QueryBuilder","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":345,"function":"execute","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":110,"function":"loadConfigValues","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":301,"function":"getApps","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_App.php","line":949,"function":"getValues","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":668,"function":"getAppVersions","class":"OC_App","type":"::"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1677,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1017,"function":"getMemCacheFactory","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1977,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":395,"function":"construct","class":"OC\Files\View","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1324,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/base.php","line":595,"function":"boot","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/config/www/nextcloud/cron.php","line":42,"args":["/config/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php","Line":83,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[HY000]: General error: 1 no such table: oc_appconfig","Code":"HY000","Trace":[{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php","line":78,"function":"query","class":"PDO","type":"->"},{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":911,"function":"query","class":"Doctrine\DBAL\Driver\PDOConnection","type":"->"},{"file":"/config/www/nextcloud/lib/private/DB/Connection.php","line":202,"function":"executeQuery","class":"Doctrine\DBAL\Connection","type":"->"},{"file":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":206,"function":"executeQuery","class":"OC\DB\Connection","type":"->"},{"file":"/config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":217,"function":"execute","class":"Doctrine\DBAL\Query\QueryBuilder","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":345,"function":"execute","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":110,"function":"loadConfigValues","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppConfig.php","line":301,"function":"getApps","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_App.php","line":949,"function":"getValues","class":"OC\AppConfig","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":668,"function":"getAppVersions","class":"OC_App","type":"::"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1677,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1017,"function":"getMemCacheFactory","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1977,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/View.php","line":118,"function":"getLockingProvider","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":395,"function":"__construct","class":"OC\Files\View","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/config/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":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Server.php","line":1324,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/lib/base.php","line":595,"function":"boot","class":"OC\Server","type":"->"},{"file":"/config/www/nextcloud/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/config/www/nextcloud/cron.php","line":42,"args":["/config/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php","Line":78}},"CustomMessage":"--"},"userAgent":"--","version":"20.0.7.1"}

curator888 commented 3 years ago

Hi All,

I resolved it by deleting the Next Cloud Folder from /portainer/Files/AppData/Config.

Im going to leave this here for others incase they have the same issue.