-
-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker: update to 1.50 and restart of the image removes all users but ncp from the db #1577
Comments
Comment was too long: {"reqId":"YzKEl40M96rgjHR8DlHppgAASQA","level":3,"time":"2022-09-27T05:05:27+00:00","remoteAddr":"93.132.152.129","user":"--","app":"index","method":"POST","url":"/index.php/apps/notify_push/pre_auth","message":"No such file or directory","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0","version":"24.0.5.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/data/nextcloud/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->"},{"file":"/data/nextcloud/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\RedisFactory","type":"->"},{"file":"/data/nextcloud/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\RedisFactory","type":"->"},{"file":"/data/nextcloud/lib/private/Memcache/Factory.php","line":118,"function":"__construct","class":"OC\Memcache\Redis","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":1106,"function":"createLocking","class":"OC\Memcache\Factory","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":162,"function":"OC\{closure}","class":"OC\Server","type":"->","args":["*** sensitive parameters replaced "]},{"file":"/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\AppFramework\Utility\{closure}","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[" sensitive parameters replaced "]},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":129,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/data/nextcloud/lib/private/ServerContainer.php","line":136,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":57,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":2082,"function":"get","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/private/Files/View.php","line":122,"function":"getLockingProvider","class":"OC\Server","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":454,"function":"__construct","class":"OC\Files\View","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":162,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\AppFramework\Utility\{closure}","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[" sensitive parameters replaced "]},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":129,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/data/nextcloud/lib/private/ServerContainer.php","line":136,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":57,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":1445,"function":"get","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/base.php","line":602,"function":"boot","class":"OC\Server","type":"->"},{"file":"/data/nextcloud/lib/base.php","line":1111,"function":"init","class":"OC","type":"::"},{"file":"/data/nextcloud/index.php","line":34,"args":["/data/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/data/nextcloud/lib/private/RedisFactory.php","Line":137,"CustomMessage":"--"}} |
Some problem with me. Additional problem see new issue. |
See also #1568 To fix this, please restart the container and restore the latest backup (a backup should have been created during the latest nc update, which you can find in |
I do not have that directory. Only the daily backup configured in the web panel. |
Hi, can you please tell how to do the restore? Or is the there an how-to? Until now i just find guides that use the ncp configuration site. But i cant use this, because i cant login after the update. |
In the docker console of your container However, in my container that path does not exist. |
Sorry for closing by mistake. |
I finally found the cause for this. Unfortunately, the old database is gone. You will need to restore a backup after following these steps: sed -i 's|/data-ro|/data|' /etc/mysql/mariadb.conf.d/90-ncp.cnf
chown -R mysql: /data/database
service mariadb restart Now restore a backup from the web panel. |
Adding this bit of information here as well, since it is related I found another issue on v1.50.1 using the The :latest tag is only built using the amd64 platform tag, use the version itself when pulling from the docker hub to get the correct architecture Should not be too much trouble to correct however |
@ZendaiOwl That was actually the v1.49.1 image, not the v1.50.1 one, but yeah - it's corrected now |
Oh? The tag ID of the image did say it was 1.50.1 at the time, anyway, great that it's corrected 🙏 Thank you |
Should finally be fixed in the pending v1.50.2 release (build is running) |
PROBLEMS
After updating to 1.50 and restarting the docker image all users are gone from nextcloud. Not their data. But ncc user:list only lists ncp.
I will try to find out more details, but just in case somebody comes across the same issue, please add to this report.
Maybe related, when I go to my nextcloud server I see:
System information
NextCloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: