dockerized icon indicating copy to clipboard operation
dockerized copied to clipboard

Installation broken with latest changes

Open markoftw opened this issue 5 years ago • 14 comments

Installation / startup seems to be stuck with /docker/entrypoints/mlmmjadmin.sh, over an hour there now.

I have tested it on a fresh Debian installation as well, stuck there too.

Using the instructions from the docker hub.

image

markoftw avatar Apr 21 '21 14:04 markoftw

I cannot reproduce this issue locally, the image runs well. :)

iredmail avatar Apr 21 '21 14:04 iredmail

If I'm not mistaken that's not the last step that should in the logs? Tried multiple times, deleted images, rebooted, ..., the same part gets stuck, even bash'd into the container and port 80 and 443 were not in use. 🤷

image

Using Docker v20.10.6 on Ubuntu 20.04.2 LTS

markoftw avatar Apr 21 '21 15:04 markoftw

I ran into the same problem and it looks like it hangs on the mail command in tip_file.sh. The container boots up without issues now after adding MAIL_THE_TIP_FILE=NO to my local iredmail-docker.conf file.

hkasur avatar Apr 21 '21 18:04 hkasur

Seems you're right, boots up successfully after adding that parameter. Thanks for the tip!

markoftw avatar Apr 21 '21 19:04 markoftw

Interesting, it works fine locally without MAIL_THE_TIP_FILE=NO. I'm investigating this issue.

iredmail avatar Apr 22 '21 01:04 iredmail

Should be fixed with last commit: https://github.com/iredmail/dockerized/commit/05a77c4e2b7f0ea8141001c51b96e957d8347da9

Could you guys help test when the new image is available on Docker Hub? https://hub.docker.com/r/iredmail/mariadb

iredmail avatar Apr 22 '21 01:04 iredmail

I can confirm it works without MAIL_THE_TIP_FILE=NO, received a tip email after successful boot. It can be closed.

markoftw avatar Apr 22 '21 07:04 markoftw

Thanks for the help. :)

iredmail avatar Apr 22 '21 09:04 iredmail

@iredmail Does not work for me using current iredmail/mariadb:stable.

Container starts, logs stops with

[iRedMail] [Entrypoint] /docker/entrypoints/mlmmjadmin.sh

then I can't access any port.

When ssh'ing into the container and using "ps -elf", I see

F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
4 S root         1     0  0  80   0 -  1058 -      21:30 ?        00:00:00 /bin/bash /entrypoint.sh /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
4 S root       620     1  0  80   0 -  8006 -      21:31 ?        00:00:00 mail -s Details of this iRedMail container [email protected]
0 S root       621   620  0  80   0 -  9507 -      21:31 ?        00:00:00 /usr/sbin/sendmail -oi -f [email protected] -t
4 S root       622   621  0  80   0 -  9504 -      21:31 ?        00:00:00 /usr/sbin/postdrop -r
4 S root       623     0  0  80   0 -  1061 -      21:33 pts/0    00:00:00 bash
0 R root       639   623  0  80   0 -  1475 -      21:34 pts/0    00:00:00 ps -elf

Only after I kill the mail process (620) the process continues.

For me this is reproducible on Debian when deleting all files and starting over.

The container only starts successfully when using MAIL_THE_TIP_FILE=NO.

bluepuma77 avatar Apr 22 '21 21:04 bluepuma77

ok, let's try to run the mail -s ... in background and not hang there.

Please help test when the new image is available on Docker Hub: https://hub.docker.com/r/iredmail/mariadb

iredmail avatar Apr 23 '21 02:04 iredmail

@iredmail Works for me now, thanks!

bluepuma77 avatar Apr 23 '21 06:04 bluepuma77

@bluepuma77 Great. Thanks for the feedback. :)

iredmail avatar Apr 23 '21 06:04 iredmail

@iredmail Just an after-thought: maybe it did not work because I did not set --hostname to the full email domain.

bluepuma77 avatar Apr 23 '21 06:04 bluepuma77

@bluepuma77 Could be. but if it's resolvable, it should be fine.

iredmail avatar Apr 23 '21 06:04 iredmail