-
Notifications
You must be signed in to change notification settings - Fork 9
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
Empty user #53
Comments
Bonjour Laurent, |
Merci ! 👍🏻 |
Hi Laurent, So, when you execute:
and following
Everything works as expected and I would rule out that the implementation in general does not work. Since you are using docker-compose I also tried to do a test with docker-compose. But I could not use your provided files directly due to a completely different environment (no Traefik, ..). After some modifications I got it running and had the effect that the database was created but no tables at all were contained the database. Currently it is not yet clear why this happens since the data is created with the single command:
When you connect to the shell of the container you can execute the command and the database is successfully created. Also a successful login is possible. Currently I would assume here a timing problem that the database is not ready while the webtrees container yet tries to write to the database. You could try to add the following to your docker-compose.yml:
I will try to analyze it further and check if there could be some enhancement in the webtrees image itself. |
With 8935913 a delay was added when initially setting up the database. This gives the database the time to startup before the SQL script is executed. Please try the latest version for setting up webtrees with the database using docker-compose. Previously described modification is no longer necessary. My local tests proved that the database was created successful. Hope you could confirm that too. |
Hi, Thanks for your hard work. I just tried, but I'm afraid it still does not work for me. You could find the log logs
Maybe I forgot a step ? |
You didn't do anything wrong. From the logs it seems that the added static delay of 30 seconds is not sufficient for your database to fully start up. I will have to modify the routine to check periodically if the database is already up an running. I will inform you when the implementation is changed. |
With commit e822637 now a dynamic delay is added before writing to the database. In a loop the readiness of the database is checked and only if it is available the data is written. |
Hi, Thanks for your support. logs
Please don't be offended, but I think I'm going to use this docker image instead which seems to work out of the box… |
In the log file it is possible to find the entry: But anyhow please feel free to used whatever webtrees docker image you want. |
Hello, I try to setup webtrees using docker-compose.
Everything works fine database is created, and populated, but no user is created and I can't figure out why.
Could you help me, please ?
.env
docker-compose.yml
The text was updated successfully, but these errors were encountered: