1 (edited by Waschl 2017-07-20 01:21:34)

Topic: Apache2 problem when expanding quarantined message

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian Stretch
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache2 (2.4.25)
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

The Apache error log:

[Wed Jul 19 18:55:43.689093 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375] /usr/lib/python2.7/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
[Wed Jul 19 18:55:43.689129 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]
[Wed Jul 19 18:55:43.689134 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375] The code that caused this warning is on line 279 of the file /usr/lib/python2.7/dist-packages/web/application.py. To get rid of this warning, change code that looks like this:
[Wed Jul 19 18:55:43.689155 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]
[Wed Jul 19 18:55:43.689159 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]  BeautifulSoup([your markup])
[Wed Jul 19 18:55:43.689161 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]
[Wed Jul 19 18:55:43.689164 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375] to this:
[Wed Jul 19 18:55:43.689167 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]
[Wed Jul 19 18:55:43.689169 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]  BeautifulSoup([your markup], "lxml")
[Wed Jul 19 18:55:43.689172 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]
[Wed Jul 19 18:55:43.689174 2017] [wsgi:error] [pid 25935] [remote 178.25.210.xxx:9375]   markup_type=markup_type))

Actually i am using http2.

This happens whenn i click on the expand button of a quarantined mail. Apache2 is the unresponsible and i have to restart it.

When i disable http2 i can expand one quarantined mail and then the same is happening...

Any idea?

Greetings

----

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

2

Re: Apache2 problem when expanding quarantined message

It's safe to ignore this warning message.
I will fix it in next release. Thanks for the report.

3

Re: Apache2 problem when expanding quarantined message

The problem is not the warning. I cant inspect the quarantined mails...

4

Re: Apache2 problem when expanding quarantined message

Sorry about the misunderstanding.

If you click the button to expand quarantined email, Apache service dies, right?

5

Re: Apache2 problem when expanding quarantined message

Thats correct.

6

Re: Apache2 problem when expanding quarantined message

Another user reported this issue before, but i cannot remember clearly, it's like a bug in mod_wsgi or other software (sorry i cannot remember, it was too long).

I have no solution to fix it right now. Sorry.

7

Re: Apache2 problem when expanding quarantined message

This are the wsgi logs when apache2 crashes:

[Mon Jul 24 09:59:48.031425 2017] [wsgi:error] [pid 27775] [remote 89.28.142.xxx:1803] 0.0 (1): SELECT * FROM sessions WHERE session_id='730e645baa25cd7da9ceda683a57a4f87099305f'
[Mon Jul 24 09:59:48.032092 2017] [wsgi:error] [pid 27775] [remote 89.28.142.xxx:1803] 0.0 (2): SELECT * FROM sessions WHERE session_id='730e645baa25cd7da9ceda683a57a4f87099305f'
[Mon Jul 24 09:59:48.032697 2017] [wsgi:error] [pid 27775] [remote 89.28.142.xxx:1803] 0.0 (3): UPDATE sessions SET atime = '2017-07-24T09:59:48.031614' WHERE session_id='730e645baa25cd7da9ceda683a57a4f87099305f'
[Mon Jul 24 09:59:48.038048 2017] [wsgi:error] [pid 27775] [remote 89.28.142.xxx:1803] 0.0 (1): SELECT mail_text FROM quarantine WHERE mail_id = 'gFKD_-8Fbauk' ORDER BY chunk_ind ASC

8

Re: Apache2 problem when expanding quarantined message

Pasted log is useless for troubleshooting. sad
I have no clue at all right now, cannot figure out which part crashes the application.