-
Notifications
You must be signed in to change notification settings - Fork 70
On container reboot mysql failing to login #23
Comments
How did you run this container? Does it read correct config file (the |
I run the container as per below instructions it does read .conf file because when it runs for very first time im able to login into Iredadmin and roundcube. After rebooting it stops working and shows the above mentioned error in logs. I do remove '--rm' because i dont want container to be wiped out on shutdown. docker run |
Please paste full console output of the |
[iRedMail] [Entrypoint] /docker/entrypoints/mariadb.sh , |
I tried with Ubuntu 20.04 and Docker 19.03.8-0ubuntu1.20.04, cannot reproduce this issue with or without Since all data are stored under |
So, as i mentioned in very start it works first time. Just remove --rm and then run container, then reboot it. After rebooting try to access iredadmin or roundcube. You will be able to see the error. Using --rm means that on reboot container will wipe itself and need to execute again manually. |
I don't understand the procedure.
|
Also, i have seen that when starting container for first time its stucks on "157 INFO success: fail2ban entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)". It is supposed to do this and never finish installation completely. |
I can not reproduce this issue. Could you please show me a step-by-step tutorial to reproduce this issue with detailed shell commands? starting from scratch |
I`ve compiled video of my steps for better understanding. Follow the link below. Never had fail2ban failed to initialize but this time it did for some reason. Might be due to recently pushed updates. |
Anyway to share this video without OneDrive? I don't have an account... (expired). |
should
Should be able to access it without account login. just make sure to completely log out of previous account then try the link it should work. |
Let me know if there is any issue accessing this video. |
|
Ok. here we go with other link hope this one will work. I`m not sure why other video stuck on notepad. Regarding commands i already shared them in the beginning but that didn't worked. https://drive.google.com/file/d/1xOKWmVMdBRmhHbOb72tP0bkSLVz36z84/view?usp=sharing |
It's clear now. After restarted with Portainer, the container doesn't use Will check and fix it shortly. Stay tuned. Thanks for the feedback. :) |
No prob. Hope this fix will help alot of people who faced this issue and either they didn't reported or they didn't bothered to. |
Could you check file |
Yes they are ROUNDCUBE_DB_PASSWORD=0RZVl9ZsMrCaebnXnwdoY5lXdiR3Cw IREDADMIN_DB_PASSWORD=P3TxjJ8LCh9PHhCBkX82oNbWJuNbXV |
|
Nops its different /root/.my.cnf-roundcube [client] /root/.my.cnf-iredadmin [client] |
Thanks for helping. I'm testing this issue locally, stay tuned. |
- mlmmjadmin api token - iredapd srs secret string - roundcube des key - Fixed: not correctly start mlmmjadmin service. - Fixed: not always update passwords in config files while starting container. - Simpler command to update Roundcube and Python application config files. - Update python module: SQLAlchemy==1.3.19. fixes #23
hi @GemzzK Issue has been fixed in latest commit, please wait for few minutes until Docker Hub built a new image and try again. Thank you very much for helping. 👍 |
Sure. Let me try and inform you. 👍 |
New image is ready on Docker Hub. Please make sure you're running the latest version. :) Don't forget to give this repo a star. |
Tried and it did worked perfectly even after reboot. Thanks for your hardwork. |
@GemzzK Thanks for the feedback. :) |
Hi @iredmail , |
Hi @bi7jta Could you please give me a step-by-step instruction to reproduce the issue? |
Hi @iredmail
I also got an another Possible BUG ,about "FIRST_MAIL_DOMAIN_ADMIN_PASSWORD is only set/reset on first run, not each run. THANK YOU! |
After rebooting the container i`m getting the below error. Checked all scripts and unable to find any settings which have these passwords saved. Also, if its randomly generated then not passed properly before authentication is occurring.
ERROR: SQLSTATE[HY000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES),
ERROR: Failed to connect to database,
The text was updated successfully, but these errors were encountered: