1

Topic: 500 Internal Server Error

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

cant login into iredadmin after i updatet with yum


[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] Traceback (most recent call last):
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]   File "/var/www/iredadmin/iredadmin.py", line 32, in ?
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] from libs import iredbase, iredutils
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]   File "/var/www/iredadmin/libs/iredbase.py", line 55, in ?
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] backend = cfg.general.get('backend', 'ldap')
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]   File "/usr/lib/python2.4/site-packages/web/utils.py", line 76, in __getattr__
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] raise AttributeError, k
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] AttributeError
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] :
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] 'general'
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180]
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] Premature end of script headers: iredadmin.py

----

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

2

Re: 500 Internal Server Error

moebius76 wrote:

[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] raise AttributeError, k
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] AttributeError
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] :
[Mon Feb 02 16:41:04 2015] [error] [client 85.115.33.180] 'general'

Do you have iRedAdmin config file /var/www/iredadmin/settings.py?
Old iRedAdmin config file is 'setting.ini', but new version is '.py'. You can convert .ini file to .py with script 'tools/convert_ini_to_py.sh'.

3

Re: 500 Internal Server Error

hi,
ok first i was searching for the script 'tools/convert_ini_to_py.sh'.
downloaded iRedAdmin-0.3.3 convertet the ini to py
set the rights but im sure i still have to run some updates.

[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] Traceback (most recent call last):
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]   File "/var/www/iredadmin/iredadmin.py", line 9, in ?
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] from libs import iredbase
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]   File "/var/www/iredadmin/libs/iredbase.py", line 18, in ?
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] import iredutils
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]   File "/var/www/iredadmin/libs/iredutils.py", line 13, in ?
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] import settings
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] ImportError
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] :
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] No module named settings
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180]
[Tue Feb 03 08:44:38 2015] [error] [client 85.115.33.180] Premature end of script headers: iredadmin.py

4

Re: 500 Internal Server Error

Do you have iRedAdmin config file /var/www/iredadmin/settings.py after converting?

5

Re: 500 Internal Server Error

yes  /var/www/iredadmin/settings.py  is there but bevore is was running iRedAdmin-0.1.3
now i unpackt iRedAdmin-0.3.3 put the settings.ini there and convert it to settings.py

6

Re: 500 Internal Server Error

The latest iRedAdmin open source edition is 0.4.1, you can download it here:
http://www.iredmail.org/yum/misc/

Then follow our tutorial to upgrade iRedAdmin:
http://www.iredmail.org/docs/migrate.or … admin.html

7

Re: 500 Internal Server Error

ok with the latest iRedAdmin open source edition is 0.4.1
after i run the upgrade_iredadmin.sh

i get that in ssl_error_log

[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] Traceback (most recent call last):
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]   File "/var/www/iredadmin/iredadmin.py", line 9, in ?
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] from libs import iredbase
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]   File "/var/www/iredadmin/libs/iredbase.py", line 18, in ?
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] import iredutils
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]   File "/var/www/iredadmin/libs/iredutils.py", line 14, in ?
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] import settings
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] ImportError
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] :
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] No module named settings
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180]
[Tue Feb 03 12:57:44 2015] [error] [client 208.87.233.180] Premature end of script headers: iredadmin.py

8

Re: 500 Internal Server Error

Could you please try this:

1) Make sure directory /var/www/iredadmin is a symbol link of /var/www/iRedAdmin-0.4.1.
2) Make sure you have file /var/www/iRedAdmin-0.4.1/settings.py. If not, please copy 'settings.py.ldap.sample' to 'settings.py', then update parameters in 'settings.py'.
3) Restart Apache service. Now try to access it with web browser.