1 (edited by ninofzh 2020-07-07 09:40:47)

Topic: [SOLVED]iredadmin 1.0 Internal Server Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Debian 10 Buster
- 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.
====
after installing iredmail 1.2.1 iredadmin1.0 gives the following error Internal Server Error

cat /var/log/nginx/access.log

192.168.80.10 - - [04/Jul/2020:20:51:16 +0000] "GET /iredadmin HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
192.168.80.10 - - [04/Jul/2020:20:51:29 +0000] "GET /iredadmin HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
192.168.80.10 - - [04/Jul/2020:20:51:31 +0000] "GET /iredadmin HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
192.168.80.10 - - [04/Jul/2020:20:51:33 +0000] "GET /iredadmin HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
192.168.80.10 - - [04/Jul/2020:20:58:15 +0000] "GET /iredadmin HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
192.168.80.10 - - [04/Jul/2020:20:58:17 +0000] "GET /iredadmin HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"

cat /var/log/syslog

Jul  5 12:08:14 correo13 uwsgi: Traceback (most recent call last):
Jul  5 12:08:14 correo13 uwsgi:   File "/opt/www/iRedAdmin-1.0/iredadmin.py", line 9, in <module>
Jul  5 12:08:14 correo13 uwsgi:     
Jul  5 12:08:14 correo13 uwsgi: from libs import iredbase
Jul  5 12:08:14 correo13 uwsgi:   File "/opt/www/iRedAdmin-1.0/libs/iredbase.py", line 7, in <module>
Jul  5 12:08:14 correo13 uwsgi:     
Jul  5 12:08:14 correo13 uwsgi: import web
Jul  5 12:08:14 correo13 uwsgi: ImportError
Jul  5 12:08:14 correo13 uwsgi: :
Jul  5 12:08:14 correo13 uwsgi: No module named web
Jul  5 12:08:14 correo13 uwsgi:
Jul  5 12:08:14 correo13 uwsgi: unable to load app 0 (mountpoint='192.168.80.6|/iredadmin') (callable not found or import error)
Jul  5 12:08:14 correo13 uwsgi: --- no python application found, check your startup logs for errors ---
Jul  5 12:08:14 correo13 uwsgi: 192.168.80.6 [pid: 728|app: -1|req: -1/15] 192.168.80.10 () {60 vars in 984 bytes} [Sun Jul  5 12:08:14 2020] GET /iredadmin => generated 21 bytes in 6 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)

No file on /var/log/uwsgi/app
No error on /var log/nginx/error.log

----

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

2

Re: [SOLVED]iredadmin 1.0 Internal Server Error

Please run commands below to fix it:

pip2 install web.py>=0.51
service iredadmin restart

3

Re: [SOLVED]iredadmin 1.0 Internal Server Error

Apply what you recommend and solve the problem, thank you very much for your quick and accurate response

4 (edited by dsp3 2020-07-09 02:28:27)

Re: [SOLVED]iredadmin 1.0 Internal Server Error

I have this error:

"/var/www/html/us" failed (2: No such file or directory), client: 127.0.0.1, server: _, request: "GET /us HTTP/1.1", host: "127.0.0.1"

FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /admin/api.php?version HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "127.0.0.1"

uwsgi: Traceback (most recent call last):#012  File "/usr/lib/python2.7/site-packages/web.py-0.51-py2.7.egg/web/application.py", line 290, in process#012 return self.handle()#012  File "/usr/lib/python2.7/site-packages/web.py-0.51-py2.7.egg/web/application.py", line 281, in handle#012 return self._delegate(fn, self.fvars, args)#012  File "/usr/lib/python2.7/site-packages/web.py-0.51-py2.7.egg/web/application.py", line 527, in _delegate#012 mod = __import__(mod, None, None, [""])#012  File "/var/www/iRedAdmin-Pro-SQL-3.9/controllers/sql/basic.py", line 15, in <module>#012 from libs.sqllib import utils as sql_lib_utils#012 File "/var/www/iRedAdmin-Pro-SQL-3.9/libs/sqllib/utils.py", line 10, in <module>#012 from libs.sqllib import user as sql_lib_user#012  File "/var/www/iRedAdmin-Pro-SQL-3.9/libs/sqllib/user.py", line 19, in <module>#012 from libs import mlmmj#012  File "/var/www/iRedAdmin-Pro-SQL-3.9/libs/mlmmj/__init__.py", line 7, in <module>#012 import requests#012 File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>#012 from . import utils#012 File "/usr/lib/python2.7/site-packages/requests/utils.py", line 25, in <module>#012 from . import certs#012ImportError: cannot import name certs

from . import certs#012ImportError: cannot import name certs

Seems this is the problem.
Centos 7 system with Iredadmin pro

5

Re: [SOLVED]iredadmin 1.0 Internal Server Error

dsp3 wrote:

Error: cannot import name certs

The dependent Python module "requests" relies on another module named "certs".

On CentOS 7, you can install "requests" module with command below, it should install all required packages at the same time.

yum install python-requests