Topic: internal server error
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, Thank you for this great email server!
I have an issue after changing from Apache to nginx, when trying to access URL/ireadmin I get this error in my uwsgi redadmin.log
Nov 20 00:36:50 2018 - chdir(): No such file or directory [plugins/python/pyloader.c line 109]
ImportError: No module named iredadmin
Tue Nov 20 00:36:50 2018 - unable to load app 0 (mountpoint='REDACTEDHOSTNAME|/iredadmin') (callable not found or import error)
Tue Nov 20 00:36:50 2018 - --- no python application found, check your startup logs for errors ---
REDACTEDHOSTNAME [pid: 843|app: -1|req: -1/17] REDACTEDIP () {54 vars in 847 bytes} [Tue Nov 20 00:36:50 2018] GET /iredadmin/ => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
looking the iredadmin directory:
/opt/www/iredadmin/plugins# ls -lah
total 12K
dr-xr-xr-x 3 iredadmin iredadmin 4.0K Apr 4 2018 .
dr-xr-xr-x 11 iredadmin iredadmin 4.0K Nov 19 23:01 ..
dr-xr-xr-x 3 iredadmin iredadmin 4.0K Apr 4 2018 cluster_unban_ip
-r-xr-xr-x 1 iredadmin iredadmin 0 Apr 4 2018 __init__.py
UWSGI is runnning:
ps aux|grep uwsgi
mlmmj 598 0.0 0.4 56284 16756 ? S 00:09 0:00 uwsgi -d --ini /opt/mlmmjadmin/rc_scripts/uwsgi/debian.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid --log-syslog
mlmmj 734 0.0 0.2 56284 11916 ? S 00:09 0:00 uwsgi
mlmmj 735 0.0 0.2 56284 11916 ? S 00:09 0:00 uwsgi
mlmmj 736 0.0 0.2 56284 11916 ? S 00:09 0:00 uwsgi
mlmmj 737 0.0 0.2 56284 11916 ? S 00:09 0:00 uwsgi
mlmmj 738 0.0 0.2 56284 11916 ? S 00:09 0:00 uwsgi
iredadm+ 831 0.0 0.2 39804 8512 ? S 00:09 0:00 /usr/bin/uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/iredadmin.ini --daemonize /var/log/uwsgi/app/iredadmin.log
iredadm+ 842 0.0 0.2 49200 10100 ? S 00:09 0:00 /usr/bin/uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/iredadmin.ini --daemonize /var/log/uwsgi/app/iredadmin.log
iredadm+ 843 0.0 0.2 49200 10100 ? S 00:09 0:00 /usr/bin/uwsgi --ini /usr/share/uwsgi/conf/default.ini --ini /etc/uwsgi/apps-enabled/iredadmin.ini --daemonize /var/log/uwsgi/app/iredadmin.log
root 2374 0.0 0.0 12736 2244 pts/0 S+ 00:40 0:00 grep uwsgi
any help is much appreciated.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.