-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
User will be lost if tinode-mysql container will be redeployed #157
Comments
There were no changes to the way database is refreshed with the docker container. It works exactly like it worked before. Here is how the
Make sure the If you want it to be done differently, please send a pull request. Thanks. |
So |
Yes. It is in the documentation. |
I've changed how data is reset when the new container is run: |
Tried to clean up users / db with latest image, but tinode server won't start after (re-)deploy with following error:
Any idea why the database isn't created during deploy / install any more? |
Could you please describe the exact steps? |
First I just deletet tinode+mysql container and mysql container volume mounted to /var/lib/mysql. During redeploy the tinode-server container stops with the posted error message. Then I tried to clean up all the dependent volumes (mysql, botdata) with the containers ans deployed it again. Same error So I tried second step (delete containers and volumes) with the Each time I get the same error message and can't get the tinode server online again. |
Looking into it now. |
Fixed in 1abcb1d#diff-39609fead6600716424c5e74a2fd001cR111 Will release docker later today. |
v0.15.7-rc3 released. |
Thanks @or-else
|
docker logs with reset db
|
I just checked on a fresh mysql:5.7 image and it worked just fine. What exactly is not working? |
After "all done" tinode server container stops without more information. |
What are the steps, like "start container x", "stop container y..."? |
Running clear mysql Database. Tried with reset DB too. Logs are okay, but container stops. |
I followed instructions on https://github.com/tinode/chat/tree/master/docker for running a
What are your docker commands? |
I played some more - stopping, starting, deleting, running again. It works fine. Please show the sequence of docker commands that reproduces the problem. |
Delete old containers
Delete volumes (not fcm volume!)
Start mysql container
Start tinode container
Started with
And so the container stops instead of running tinode server.
Ok, last line is new. Haven't seen a init validator problem before...?! |
This part is fine:
That means the database is successfully generated. This is probably why it stops:
In other words, it has nothing to do with database initialization. I' looking into the new error. |
OK, I see why it fails. Fix is coming. |
Thanks! |
v0.15.7-rc4 released |
Fixed with rc4. Thanks! But new / old bugs there g Search user by username / tag / email doen't work anymore? |
Search works for me. I'm going to close this issue. If you see another problem, please open a new issue. Thanks! |
I redeploy the tinode app container and lose all my users. Auth error 401. Existing user (database isn't deleted and container still exists and is used) can be re-registered.
I think it refresh the database during update / (re-)deploy?
Is there a way to keep the existing data / user during tinode update / redeploy?
The text was updated successfully, but these errors were encountered: