Topic: Error 500 in iredadmin after fresh install
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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,
After fresh install, iredadmin return error 500.
déc. 23 10:06:14 mail.mycaelis.eu systemd[1]: Started iRedAdmin daemon service.
déc. 23 10:06:14 mail.mycaelis.eu uwsgi[45157]: [uWSGI] getting INI configuration from /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: *** Starting uWSGI 2.0.18-debian (64bit) on [Thu Dec 23 10:06:14 2021] ***
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: compiled with version: 10.0.1 20200405 (experimental) [master revision 0be9efad938:fcb98e4978a:705510a708d3642c9c962beb663c476167e4e8a4] on 11 April 2020 11:15:55
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: os: Linux-5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: nodename: mail.mycaelis.eu
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: machine: x86_64
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: clock source: unix
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: pcre jit disabled
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: detected number of CPU cores: 1
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: current working directory: /
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: writing pidfile to /var/run/iredadmin/iredadmin.pid
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: detected binary path: /usr/bin/uwsgi-core
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: setgid() to 2001
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: setuid() to 2001
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: chdir() to /opt/www/iredadmin
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: your processes number limit is 15278
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: your memory page size is 4096 bytes
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: detected max file descriptor number: 1024
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: VirtualHosting mode enabled.
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: lock engine: pthread robust mutexes
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: thunder lock: disabled (you can enable it with --thunder-lock)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: uwsgi socket 0 bound to TCP address 127.0.0.1:7791 fd 8
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: Python version: 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: Python main interpreter initialized at 0x560323e99000
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: python threads support enabled
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: your server socket listen backlog is limited to 100 connections
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: your mercy for graceful operations on workers is 60 seconds
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: mapped 437520 bytes (427 KB) for 5 cores
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: *** Operational MODE: preforking ***
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: Traceback (most recent call last):
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: File "iredadmin.py", line 8, in <module>
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: from libs import iredbase
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: File "/opt/www/iRedAdmin-1.5/libs/iredbase.py", line 26, in <module>
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: web.config.debug = settings.DEBUG
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: AttributeError: module 'web' has no attribute 'config'
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: unable to load app 0 (mountpoint='') (callable not found or import error)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: *** no app loaded. going in full dynamic mode ***
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: *** uWSGI is running in multiple interpreter mode ***
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: spawned uWSGI master process (pid: 45157)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: spawned uWSGI worker 1 (pid: 45162, cores: 1)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: spawned uWSGI worker 2 (pid: 45163, cores: 1)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: spawned uWSGI worker 3 (pid: 45164, cores: 1)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: spawned uWSGI worker 4 (pid: 45165, cores: 1)
déc. 23 10:06:15 mail.mycaelis.eu iredadmin[45157]: spawned uWSGI worker 5 (pid: 45166, cores: 1)
My python3 install seems OK. If I launch
python3 /opt/www/iRedAdmin-1.5/iredadmin.py
http://0.0.0.0:8080/
Thank you for your help
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.