Topic: iRedAdmin - lost nginx config, reinstall of ONLY iredadmin possible?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Yes
- Linux/BSD distribution name and version: Ubuntu16.04LTS i386
- 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.
====
Hello, I installed iRedMail completely and everything was ok, so I switched all our mail to that server. But then we decided to install another application that re-wrote Nginx config for sites-available (& enabled). Of course, no backup was made We restored everything related to work with php section (we use 5.6 for old cms & 7.2 for everything else including Roundcube) through unix socket
Any my nginx config caused errors - 502, then Internal Server Error, etc. The problem seems to be in socket - I am unable to find normal config or manual on how to setup python app to work under nginx.
Restarting of iredadmin service caused failure. So now I need to reinstall and re-configure manually iRedAdmin console.
Please advise on any manual / procedure description on how to return it back to life.
Current iRedAdmin service status:
sudo service iredadmin status
● iredadmin.service - iRedAdmin daemon service
Loaded: loaded (/lib/systemd/system/iredadmin.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-02-12 18:28:42 MSK; 18h ago
Process: 31140 ExecStopPost=/bin/rm -rf /var/run/iredadmin (code=exited, status=0/SUCCESS)
Process: 31138 ExecStop=/usr/bin/uwsgi --stop /var/run/iredadmin/iredadmin.pid (code=exited, status=255)
Process: 31136 ExecStart=/usr/bin/uwsgi --ini /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/iredadmin/iredadmin.pid (code=exited, status=1/FAILURE)
Process: 31132 ExecStartPre=/bin/chmod 0755 /var/run/iredadmin (code=exited, status=0/SUCCESS)
Process: 31130 ExecStartPre=/bin/chown iredadmin:iredadmin /var/run/iredadmin (code=exited, status=0/SUCCESS)
Process: 31127 ExecStartPre=/bin/mkdir -p /var/run/iredadmin (code=exited, status=0/SUCCESS)
Main PID: 31136 (code=exited, status=1/FAILURE)
feb 12 18:28:42 mail.* uwsgi[31136]: detected binary path: /usr/bin/uwsgi-core
feb 12 18:28:42 mail.* uwsgi[31136]: setgid() to 2001
feb 12 18:28:42 mail.* uwsgi[31136]: setuid() to 2001
feb 12 18:28:42 mail.* uwsgi[31136]: chdir() to /opt/www/iredadmin
feb 12 18:28:42 mail.* uwsgi[31136]: chdir(): Permission denied [core/uwsgi.c line 2586]
feb 12 18:28:42 mail.* systemd[1]: iredadmin.service: Main process exited, code=exited, status=1/FAILURE
feb 12 18:28:42 mail.* uwsgi[31138]: signal_pidfile()/kill(): No such process [core/uwsgi.c line 1654]
feb 12 18:28:42 mail.* systemd[1]: iredadmin.service: Control process exited, code=exited status=255
feb 12 18:28:42 mail.* systemd[1]: iredadmin.service: Unit entered failed state.
feb 12 18:28:42 mail.* systemd[1]: iredadmin.service: Failed with result 'exit-code'.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.