1

Topic: iredadmin not running under Docker

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.1 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

i have problem on iredadmin, im using Docker Image Ubuntu 18.04.3 LTS, when i hit https://localhost/iredadmin i got error 502 Bad Gateway

this my /var/log/nginx/error.log

2020/03/04 10:41:38 [error] 30884#30884: *94 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "localhost"
2020/03/04 10:48:06 [error] 30884#30884: *106 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "localhost"
2020/03/04 10:48:07 [error] 30884#30884: *106 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "localhost"

i have been restart uwsgi

root@mx1:/# service uwsgi restart
* Restarting app server(s) uwsgi                                                                                              [ OK ]
root@mx1:/#

but i dont see in my process

root@mx1:/# ps -ef | grep uws
root      1668     6  0 10:54 pts/0    00:00:00 grep --color=auto uws
root@mx1:/#

can u help me for that error? thanks smile

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by ametdoohan 2020-03-04 18:59:02)

Re: iredadmin not running under Docker

my installation config

root@mx1:~/iRedMail-1.1# cat config

export STORAGE_BASE_DIR='/var/vmail'
export WEB_SERVER='NGINX'
export BACKEND_ORIG='OPENLDAP'
export BACKEND='OPENLDAP'
export VMAIL_DB_BIND_PASSWD='my-secret-pwd'
export VMAIL_DB_ADMIN_PASSWD='my-secret-pwd'
export MLMMJADMIN_API_AUTH_TOKEN='my-secret-pwd'
export NETDATA_DB_PASSWD='my-secret-pwd'
export LDAP_SUFFIX='dc=domain,dc=com'
export LDAP_BINDPW='my-secret-pwd'
export LDAP_ADMIN_PW='my-secret-pwd'
export LDAP_ROOTPW='my-secret-pwd'
export MYSQL_ROOT_PASSWD='my-secret-pwd'
export FIRST_DOMAIN='domain.com'
export DOMAIN_ADMIN_PASSWD_PLAIN='password'
export USE_IREDADMIN='YES'
export USE_ROUNDCUBE='YES'
export USE_SOGO='NO'
export USE_NETDATA='YES'
export USE_FAIL2BAN='YES'
export AMAVISD_DB_PASSWD='my-secret-pwd'
export IREDADMIN_DB_PASSWD='my-secret-pwd'
export RCM_DB_PASSWD='my-secret-pwd'
export SOGO_DB_PASSWD='my-secret-pwd'
export SOGO_SIEVE_MASTER_PASSWD='my-secret-pwd'
export IREDAPD_DB_PASSWD='my-secret-pwd'
export USE_SYSTEMD='NO'
#EOF

=========================================================

root@mx1:~/iRedMail-1.1#  IREDMAIL_DEBUG='NO' \
CHECK_NEW_IREDMAIL='NO' \
AUTO_USE_EXISTING_CONFIG_FILE=y \
AUTO_INSTALL_WITHOUT_CONFIRM=y \
AUTO_CLEANUP_REMOVE_SENDMAIL=y \
AUTO_CLEANUP_REMOVE_MOD_PYTHON=y  \
AUTO_CLEANUP_REPLACE_FIREWALL_RULES=n \
AUTO_CLEANUP_RESTART_IPTABLES=n \
AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
bash iRedMail.sh

3

Re: iredadmin not running under Docker

- Does restarting "iredadmin" service fix the issue?
- We don't support running iRedMail this way, you're on your own.

4

Re: iredadmin not running under Docker

Hi Zhang,

thanks for your answer. i'll plan install it on baremetal..

5

Re: iredadmin not running under Docker

ametdoohan wrote:

i'll plan install it on baremetal..

Run it under a hypervisor such as HyperV (if you use Windows systems) or ESXi or Xen for example.
Gives you a lot more flexibility in your deployment, resource allocations, etc.

Nothing wrong with baremetal though if that's what you want to do smile