1 (edited by n4ikita 2014-05-20 19:04:47)

Topic: Internal server error at dashboard 0.8.7

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====

Hi!

I apologize for my English.

I installed iRedMail at CentOS, but on login i have INTERNAL SERVER ERROR at pages: https://1rb.biz/iredadmin/dashboard/checknew and https://1rb.biz/iredadmin/dashboard
At other pages, for example https://1rb.biz/iredadmin/system/log is okay.

Best regards,
Nikita Chevychelov

----

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 at dashboard 0.8.7

Any related log in Apache log file (/var/log/httpd/ssl_error_log on CentOS)?

3

Re: Internal server error at dashboard 0.8.7

ZhangHuangbin wrote:

Any related log in Apache log file (/var/log/httpd/ssl_error_log on CentOS)?

[Mon May 19 17:10:19 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon May 19 17:10:19 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon May 19 17:12:42 2014] [error] [client 91.203.82.147] File does not exist: /var/www/html/favicon.ico
[Mon May 19 17:12:42 2014] [error] [client 91.203.82.147] File does not exist: /var/www/html/favicon.ico
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147] Traceback (most recent call last):
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]   File "/usr/lib/python2.6/site-packages/web/application.py", line 239, in process
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]     return self.handle()
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]   File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]     return self._delegate(fn, self.fvars, args)
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]   File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]     return handle_class(cls)
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]   File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]     return tocall(*args)
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]   File "/var/www/iredadmin/controllers/decorators.py", line 11, in proxyfunc
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]     return func(self, *args, **kw)
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]   File "/var/www/iredadmin/controllers/mysql/basic.py", line 132, in GET
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]     loadavg=os.getloadavg(),
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147] OSError: Load averages are unobtainable
[Mon May 19 17:13:10 2014] [error] [client 91.203.82.147]

4

Re: Internal server error at dashboard 0.8.7

n4ikita wrote:

     loadavg=os.getloadavg(),
OSError: Load averages are unobtainable

This is interesting. Python module 'os' should always work. Does it work if you execute below commands in terminal manually?

$ python
>>> import os
>>> os.getloadavg()

5 (edited by n4ikita 2014-05-21 00:25:03)

Re: Internal server error at dashboard 0.8.7

ZhangHuangbin wrote:
n4ikita wrote:

     loadavg=os.getloadavg(),
OSError: Load averages are unobtainable

This is interesting. Python module 'os' should always work. Does it work if you execute below commands in terminal manually?

$ python
>>> import os
>>> os.getloadavg()

[root@mx ~]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getloadavg()
(0.0, 0.0, 0.0)
>>>

But nothing happened.
Still error.

6

Re: Internal server error at dashboard 0.8.7

No idea yet, didn't get same issue before.

it works on command line, and according to Python document, it will raise OSError if it doesn't work. We have error handle in iRedAdmin, but it still not work. Is it possible to let me login to your server for further debug?

7 (edited by n4ikita 2014-05-21 16:00:13)

Re: Internal server error at dashboard 0.8.7

ZhangHuangbin wrote:

Is it possible to let me login to your server for further debug?


It's an honor for me.
Please tell me your e-mail, so I sent you login details.

8

Re: Internal server error at dashboard 0.8.7

n4ikita wrote:

Please tell me your e-mail, so I sent you login details.

Mail me: zhb _at_ iredmail dot org

9

Re: Internal server error at dashboard 0.8.7

ZhangHuangbin wrote:

Mail me: zhb _at_ iredmail dot org

I wrote you.

10

Re: Internal server error at dashboard 0.8.7

Issue solved temporarily, web pages in iRedAdmin is now working.

The problem is, non-root user cannot execute python code to get system load average, i don't know why your server has this limit/restriction. Do you have any setting for this purpose?