1 (edited by vodka 2019-07-22 23:07:25)

Topic: Internal Server Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MYSQL edition
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes 3.5
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

After upgrade from iRedAdmin-Pro-SQL 3.5 to iRedAdmin-Pro-SQL 3.7, i got Internal Server Error when access iredadmin login page.

I found error in syslog :

uwsgi[510]: [uWSGI] getting INI configuration from /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini
uwsgi[2260]: realpath() of /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini failed: No such file or directory [core/utils.c line 3619]

----

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

2

Re: Internal Server Error

vodka wrote:

uwsgi[2260]: realpath() of /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini failed: No such file or directory [core/utils.c line 3619]

Do you have this file on system? /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini

3

Re: Internal Server Error

ZhangHuangbin wrote:
vodka wrote:

uwsgi[2260]: realpath() of /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini failed: No such file or directory [core/utils.c line 3619]

Do you have this file on system? /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini

Hello Zhang Huangbin, yes i have file /opt/www/iredadmin/rc_scripts/uwsgi/debian.ini

4

Re: Internal Server Error

Nginx error.log :

[error] 2163#2163: *2697 open() "/opt/www/iredadmin/static/default/css/reset.css" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: _, request: "GET /iredadmin/static/default/css/reset.css HTTP/1.1", host: "email.mydomain.com", referrer: "https://email.mydomain.com/iredadmin"
[error] 2163#2163: *2699 open() "/opt/www/iredadmin/static/default/css/screen.css" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: _, request: "GET /iredadmin/static/default/css/screen.css HTTP/1.1", host: "email.mydomain.com", referrer: "https://email.mydomain.com/iredadmin"
[error] 2163#2163: *2699 open() "/opt/www/iredadmin/static/favicon.ico" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: _, request: "GET /iredadmin/static/favicon.ico HTTP/1.1", host: "email.mydomain.com"
[error] 2163#2163: *2699 open() "/opt/www/iredadmin/static/default/css/reset.css" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: _, request: "GET /iredadmin/static/default/css/reset.css HTTP/1.1", host: "email.mydomain.com", referrer: "https://email.mydomain.com/iredadmin"
[error] 2163#2163: *2697 open() "/opt/www/iredadmin/static/default/css/screen.css" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: _, request: "GET /iredadmin/static/default/css/screen.css HTTP/1.1", host: "email.mydomain.com", referrer: "https://email.mydomain.com/iredadmin"
[error] 2163#2163: *2702 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "email.mydomain.com"

5

Re: Internal Server Error

Try command below, then check /var/log/syslog immediately, any error about "iredadmin" service or "uwsgi" program?

service iredadmin restart