Docker container fails to create the vikunja user #1392

Closed
opened 2023-02-10 07:48:18 +00:00 by konrad · 2 comments
Owner

Description

After a few random restarts (caused by watchtower or something else going wrong) the api docker container would fail to create the new vikunja Unix user with an error message like "failed to create user or group, already exists".

This is hard to reproduce, and I can't think of a reason why it would do that.

Maybe it's enough to not create the user when it already exists?

Vikunja Frontend Version

irrelevant

Vikunja API Version

current main

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

### Description After a few random restarts (caused by watchtower or something else going wrong) the api docker container would fail to create the new vikunja Unix user with an error message like "failed to create user or group, already exists". This is hard to reproduce, and I can't think of a reason why it would do that. Maybe it's enough to not create the user when it already exists? ### Vikunja Frontend Version irrelevant ### Vikunja API Version current main ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
konrad added the
kind/bug
label 2023-02-10 07:48:18 +00:00
Author
Owner

@vlasov-y do you have an idea about this?

@vlasov-y do you have an idea about this?
Author
Owner

This seems to happen on try every time the database on try is reset. The cron which does that looks like this:

0 6 * * * /usr/bin/docker exec vikunja-try_db_1 sh -c 'mysql -uroot -pAighop0a vikunja < /demo/init.sql' && /usr/bin/docker restart vikunja-try_api_1

Still not sure why that would cause the container to fail restarting but it might be reproducible with restarting the container.

This seems to happen on try every time the database on try is reset. The cron which does that looks like this: ``` 0 6 * * * /usr/bin/docker exec vikunja-try_db_1 sh -c 'mysql -uroot -pAighop0a vikunja < /demo/init.sql' && /usr/bin/docker restart vikunja-try_api_1 ``` Still not sure why that would cause the container to fail restarting but it might be reproducible with restarting the container.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1392
No description provided.