1

Topic: internal server error iredadmin

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-28-generic x86_64)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
====
/var/log/apache2/error.log
...
[Thu Oct 26 16:43:44.356300 2017] [wsgi:error] [pid 58700] [client 10.201.13.249:62162] Timeout when reading response headers from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579446 2017] [wsgi:error] [pid 42016] [client 10.201.13.249:62838] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579501 2017] [wsgi:error] [pid 65986] [client 10.201.13.249:62834] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579675 2017] [wsgi:error] [pid 67154] [client 10.201.13.249:62823] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579444 2017] [wsgi:error] [pid 45398] [client 10.201.13.249:62837] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
...

After checking the contents of an email in quarantaine, the web-ui hangs with an Internal Server Error
when one wants to start a second action.

One can check the content of quarantained mail, but afterwards the web-ui hangs.
One can release or delete emails from quarantaine, provided we did not first check the content of a message.

"Internal Server Error


The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at postmaster@YYY.ZZZ to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at XXX.YYY.ZZZ  Port 443"

----

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 iredadmin

This is a known bug, it occurs on few customers' servers but i cannot reproduce it on my local VMs. i debugged on customer's server with their permission, but didn't figure it out yet. sad

3

Re: internal server error iredadmin

Hello,

If you could fix/debug this issue, I would really appreciate it.

Or I can provide you with the VM-images (qemu-raw) if you prefer.

I think your pub-ip is already installed on the server.

TIA.
Jord

4

Re: internal server error iredadmin

hi Jord,

Please contact me: zhb _at_ iredmail.org

5

Re: internal server error iredadmin

This is (hopefully) fixed by adding one Apache setting in /etc/apache2/conf-enabled/iredadmin.conf:

WSGIApplicationGroup %{GLOBAL}

If same issue occurs, i will update this thread.

6

Re: internal server error iredadmin

hi,

suddenly the iredadminpro interface is not working any more.
Error:
Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py

i did add WSGIApplicationGroup %{GLOBAL} and restarted apache but the error persists.

any suggestions?

7

Re: internal server error iredadmin

What do you mean "suddenly"? did you change any settings? or update any packages?

8

Re: internal server error iredadmin

i mean, that no settings were changed.

From the automatic updates log, i see that the following packages were updated:
curl, libcurl, mardiadb-(common,client-core)

9

Re: internal server error iredadmin

Is there  a way to provide more detailed debug messages?
So far i am stuck in my attempts to resolve this issue and the interface ireadmin-pro is not working...

10

Re: internal server error iredadmin

Any possible to give me direct ssh access for further debugging? contact me: zhb _at_ iredmail _dot_ org

11

Re: internal server error iredadmin

so working with Apache did not pay off, even with Zhang's direct support.

I had to switch to nginx, using the instructions from here: https://forum.iredmail.org/post59679.html#p59679

The whole procedure took about 1 hour, which is considerable less than the time i invested in trying to solve my issue...