1

Topic: 502 can't access /iredadmin

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.2.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Download installer
- Linux/BSD distribution name and version: Deb 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- 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.
====

This is a new install and I'm a noob to iRedMail
I can't access /iredadmin page I get a 502 I've looked at other posts with the same issue tried fixing but didn't work.

----

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

2 (edited by Jxck 2020-05-15 22:45:41)

Re: 502 can't access /iredadmin

Jxck wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.2.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Download installer
- Linux/BSD distribution name and version: Deb 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- 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.
====

This is a new install and I'm a noob to iRedMail
I can't access /iredadmin page I get a 502 I've looked at other posts with the same issue tried fixing but didn't work.


Solved uwsgi and uwsgi-plugin-python weren't installed and iredadmin.ini did not exist in uwsgi config

Installed apt-get install  uwsgi uwsgi-plugin-python

Created the uwsgi application config ini file located at: /etc/uwsgi/apps-available/iredadmin.ini

[uwsgi]
plugins=python
vhost=true
socket=/var/run/uwsgi/app/iredadmin/iredadmin.socket
Created the softlink to enable the application:

Enabled app by creating link
ln -s /etc/uwsgi/apps-available/iredadmin.ini /etc/uwsgi/apps-enabled/iredadmin.ini

Also restarted the services or reboot

3

Re: 502 can't access /iredadmin

- iRedAdmin doesn't run by uwsgi daemon service, so no config files under /etc/uwsgi/ is required.
- iRedAdmin is ran by uwsgi program (not the daemon servicce), its config file is /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini.