Topic: iredadmin 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: CentOS 75.1804
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx 1.15.6
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
From /var/log/messages
uwsgi: Traceback (most recent call last):
uwsgi: File "./iredadmin.py", line 9, in <module>
uwsgi: from libs import iredbase
uwsgi: File "/var/www/iRedAdmin-0.9.1/libs/iredbase.py", line 18, in <module>
uwsgi: from libs import iredutils
uwsgi: File "/var/www/iRedAdmin-0.9.1/libs/iredutils.py", line 14, in <module>
uwsgi: import settings
uwsgi: ImportError: No module named settings
uwsgi: unable to load app 0 (mountpoint='mydomain.tld|/iredadmin') (callable not found or import error)
uwsgi: --- no python application found, check your startup logs for errors ---
uwsgi: caos.media [pid: 565|app: -1|req: -1/1] ###.###.##.## () {54 vars in 856 bytes} [Sun Nov 18 14:37:57 2018] GET /iredadmin => generated 21 bytes in 249 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
uwsgi: announcing my loyalty to the Emperor...
uwsgi: Sun Nov 18 14:37:57 2018 - [emperor] vassal iredadmin.ini is now loyal
From /etc/uwsgi.d/iredadmin.ini
[uwsgi]
plugins = python
vhost = true
socket = /var/run/uwsgi/iredadmin.socket
pidfile = /var/run/uwsgi/iredadmin.pid
chown-socket = nginx:nginx
chmod-socket = 660
uid = iredadmin
gid = iredadmin
enable-threads = true
From /etc/nginx/templates/iredadmin.tmpl
# Settings for iRedAdmin.
# static files under /iredadmin/static
location ~ ^/iredadmin/static/(.*) {
alias /var/www/iredadmin/static/$1;
}
# Handle newsletter-style subscription/unsubscription supported in iRedAdmin-Pro.
location ~ ^/newsletter/ {
include /etc/nginx/templates/hsts.tmpl;
include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;
uwsgi_param REQUEST_URI /iredadmin/$request_uri;
}
# Python scripts
location ~ ^/iredadmin(.*) {
rewrite ^/iredadmin(/.*)$ $1 break;
include /etc/nginx/templates/hsts.tmpl;
include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;
# Access control
#allow 127.0.0.1;
#allow 192.168.1.10;
#allow 192.168.1.0/24;
#deny all;
}
# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin {
rewrite ^ /iredadmin/;
}
File list from /var/www/iredadmin
AUTHORS
ChangeLog
controllers
docs
i18n
iredadmin.py
libs
LICENSE
README
settings.py
settings.pyc
settings.py.ldap.sample
settings.py.mysql.sample
settings.py.pgsql.sample
SQL
static
templates
tools
File list from /var/www/iredadmin/libs
default_settings.py
default_settings.pyc
form_utils.py
__init__.py
__init__.pyc
iredbase.py
ireddate.py
iredutils.py
iredutils.pyc
languages.py
ldaplib
md5crypt.py
md5crypt.pyc
mysql
panel
pgsql
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.