1 (edited by hsnogarth1982 2012-04-18 19:55:27)

Topic: 500 error on Debian iRedAdmin page [FIXED]

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
==== it had been working but when stopped working. Ive searched the forums and tried a few things already. i checked the settings.ini has the correct settings ireadmail:iredmail permissons 0700

I have checked my logs and its always the same error that appears

[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx] mod_wsgi (pid=29798): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx] mod_wsgi (pid=29798): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx] Traceback (most recent call last):
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 10, in <module>
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx]     from libs import iredbase
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 34, in <module>
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx]     webmaster = cfg.general.get('webmaster', 'root')
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx]   File "/usr/lib/pymodules/python2.6/web/utils.py", line 71, in __getattr__
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx]     raise AttributeError, k
[Wed Apr 18 10:41:43 2012] [error] [client xxx.xxx.xxx.xx] AttributeError: 'general'

so i thought it might have been the web.py script so i reinstalled it again and log is still the same

[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx] mod_wsgi (pid=30868): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx] mod_wsgi (pid=30868): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx] Traceback (most recent call last):
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 10, in <module>
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx]     from libs import iredbase
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 34, in <module>
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx]     webmaster = cfg.general.get('webmaster', 'root')
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx]   File "/usr/local/lib/python2.6/dist-packages/web.py-0.36-py2.6.egg/web/utils.py", line 76, in __getattr__
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx]     raise AttributeError, k
[Wed Apr 18 10:56:15 2012] [error] [client xxx.xxx.xxx.xx] AttributeError: 'general' 

the only thing that i have mail changed on the server is moving the /var/www to /home/www which shouldnt be an issue as theres a symlink between them both.

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: iRedMail-0.7.4 with mysql setup
- Linux/BSD distribution name and version: Debian 6.0
- Any related log? Log is helpful for troubleshooting.

====

----

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

2

Re: 500 error on Debian iRedAdmin page [FIXED]

i think i have sorted it. changed the permissions on the settings.ini* again but made it 0777 for testing then i got a diffrent error. then i realized it was something to do with the iredadmin password so reset that and reset the server now all is working with the settings.ini* back to 0700.

Hope this helps others

3

Re: 500 error on Debian iRedAdmin page [FIXED]

hsnogarth1982 wrote:

now all is working with the settings.ini* back to 0700.

File 'settings.ini' should be 0400, owned by 'iredadmin:iredadmin'.