Open jiyang1018 opened 1 year ago
Please run an earlier docker container (e.g. 1.49.1) and upgrade your nextcloud from there. I'm working on a way to prevent this situation.
Please run an earlier docker container (e.g. 1.49.1) and upgrade your nextcloud from there. I'm working on a way to prevent this situation.
I do not know how to run an earlier container. I got most dockers installed and configured by following tutorials. My dockers are on auto update with a plugin for Unraid.
I have have found a way. I put :1.49.1, and it failed. Then I put :v1.49.1 and it's pulling.
I managed to go back to v1.49.1, and encountered
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.
Here is log:
Provisioning
Provisioning Redis password
Updating NextCloud config with Redis password
Provisioning MariaDB password
Updating NextCloud config with MariaDB password
Running nc-limits
Using 12544880640 for PHP max memory
bash: /usr/local/etc/ncp-templates/php/90-ncp.ini.sh: No such file or directory
/usr/local/etc/library.sh: line 220: ${3:}: bad substitution
Starting notify_push daemon
Configuring Domain
An unhandled exception has been thrown:
RedisException: WRONGPASS invalid username-password pair in /data/nextcloud/lib/private/RedisFactory.php:130
Stack trace:
#0 /data/nextcloud/lib/private/RedisFactory.php(130): Redis->auth()
#1 /data/nextcloud/lib/private/RedisFactory.php(164): OC\RedisFactory->create()
#2 /data/nextcloud/lib/private/Memcache/Redis.php(46): OC\RedisFactory->getInstance()
#3 /data/nextcloud/lib/private/Memcache/Factory.php(120): OC\Memcache\Redis->__construct()
#4 /data/nextcloud/lib/private/Server.php(1080): OC\Memcache\Factory->createLocking()
#5 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#6 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#7 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): Pimple\Container->offsetGet()
#8 /data/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#9 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(56): OC\ServerContainer->query()
#10 /data/nextcloud/lib/private/Server.php(2040): OC\AppFramework\Utility\SimpleContainer->get()
#11 /data/nextcloud/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#12 /data/nextcloud/lib/private/Server.php(439): OC\Files\View->__construct()
#13 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#14 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#15 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): Pimple\Container->offsetGet()
#16 /data/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#17 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(56): OC\ServerContainer->query()
#18 /data/nextcloud/lib/private/Server.php(1403): OC\AppFramework\Utility\SimpleContainer->get()
#19 /data/nextcloud/lib/base.php(594): OC\Server->boot()
#20 /data/nextcloud/lib/base.php(1087): OC::init()
#21 /data/nextcloud/console.php(48): require_once('/data/nextcloud...')
#22 /data/nextcloud/occ(11): require_once('/data/nextcloud...')
#23 {main}An unhandled exception has been thrown:
RedisException: WRONGPASS invalid username-password pair in /data/nextcloud/lib/private/RedisFactory.php:130
Stack trace:
#0 /data/nextcloud/lib/private/RedisFactory.php(130): Redis->auth()
#1 /data/nextcloud/lib/private/RedisFactory.php(164): OC\RedisFactory->create()
#2 /data/nextcloud/lib/private/Memcache/Redis.php(46): OC\RedisFactory->getInstance()
#3 /data/nextcloud/lib/private/Memcache/Factory.php(120): OC\Memcache\Redis->__construct()
#4 /data/nextcloud/lib/private/Server.php(1080): OC\Memcache\Factory->createLocking()
#5 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#6 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#7 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): Pimple\Container->offsetGet()
#8 /data/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#9 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(56): OC\ServerContainer->query()
#10 /data/nextcloud/lib/private/Server.php(2040): OC\AppFramework\Utility\SimpleContainer->get()
#11 /data/nextcloud/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#12 /data/nextcloud/lib/private/Server.php(439): OC\Files\View->__construct()
#13 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#14 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#15 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): Pimple\Container->offsetGet()
#16 /data/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#17 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(56): OC\ServerContainer->query()
#18 /data/nextcloud/lib/private/Server.php(1403): OC\AppFramework\Utility\SimpleContainer->get()
#19 /data/nextcloud/lib/base.php(594): OC\Server->boot()
#20 /data/nextcloud/lib/base.php(1087): OC::init()
#21 /data/nextcloud/console.php(48): require_once('/data/nextcloud...')
#22 /data/nextcloud/occ(11): require_once('/data/nextcloud...')
#23 {main}An unhandled exception has been thrown:
RedisException: WRONGPASS invalid username-password pair in /data/nextcloud/lib/private/RedisFactory.php:130
Stack trace:
#0 /data/nextcloud/lib/private/RedisFactory.php(130): Redis->auth()
#1 /data/nextcloud/lib/private/RedisFactory.php(164): OC\RedisFactory->create()
#2 /data/nextcloud/lib/private/Memcache/Redis.php(46): OC\RedisFactory->getInstance()
#3 /data/nextcloud/lib/private/Memcache/Factory.php(120): OC\Memcache\Redis->__construct()
#4 /data/nextcloud/lib/private/Server.php(1080): OC\Memcache\Factory->createLocking()
#5 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#6 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#7 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): Pimple\Container->offsetGet()
#8 /data/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#9 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(56): OC\ServerContainer->query()
#10 /data/nextcloud/lib/private/Server.php(2040): OC\AppFramework\Utility\SimpleContainer->get()
#11 /data/nextcloud/lib/private/Files/View.php(118): OC\Server->getLockingProvider()
#12 /data/nextcloud/lib/private/Server.php(439): OC\Files\View->__construct()
#13 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(160): OC\Server->OC\{closure}()
#14 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#15 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(127): Pimple\Container->offsetGet()
#16 /data/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query()
#17 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(56): OC\ServerContainer->query()
#18 /data/nextcloud/lib/private/Server.php(1403): OC\AppFramework\Utility\SimpleContainer->get()
#19 /data/nextcloud/lib/base.php(594): OC\Server->boot()
#20 /data/nextcloud/lib/base.php(1087): OC::init()
#21 /data/nextcloud/console.php(48): require_once('/data/nextcloud...')
#22 /data/nextcloud/occ(11): require_once('/data/nextcloud...')
#23 {main}
I updated from 1.49.1 to latest, and it is doing the same PHP 8.0 error.
Compare #1628
Please reopen this. I tried an earlier version, and it is still not working.
I have the exact same issue. This issue is still unresolved, so please reopen it.
same for me
Okay looks like your container was corrupted in some way by the update. Please try the following:
docker exec -it <container-name> ncp-config
Sorry for your issues, we definitely need a way to check upgradability on container startup to avoid this kind of situation. While there are only a few cases where this can happen (basically PHP upgrades and OS upgrades), we need to find a way to handle them better for the docker version of NCP.
@ZendaiOwl the /usr/local/etc/library.sh: line 220: ${3:}: bad substitution
error looks familiar. I found it in this issue, that you were working on - do you remember what exactly caused it and when it was fixed?
EDIT: Nvm, I found the commit in which that issue was fixed - it wasn't a critical error though (won't have caused the issues above): b675d61e61e11f14581eb82faeb5407cf61e0137
The same happened to me. I moved from a plain ncp installation to docker:v1.48.2, restored my backup successfully and wanted to update to the latest image version (v1.50.5) . I also got the PHP compatibility message, so I removed the 1.50.5 container and went back to the (previously working) 1.48.2 which showed now the server error (Unavailable). I restarted the container and now I get an ERR_CONNECTION REFUSED. The log shows dB connection issues and in config.php the values for dbpassword and redis password are overwritten with 'default'.
@jiyang1018 what was your nc version?
Same here, how is this still an issue months later?
Updated NC, got the PHP error. Rolled back to a previous version and now the server is unavailable.
@jiyang1018 what was your nc version? I have tried: 1.50.2 1.49.1
I can open panel, mine is set to port 4444, and see this. There isn't much in it.
When I get to the web UI, mine is set to port 444, I get this message: This version of Nextcloud is not compatible with > PHP 8.0. You are currently running 8.1.10.
Log:
Mine is running on Unraid 6.10.2 currently. Please let me know what info to provide. Thanks in advance.