1

Topic: Admin Panel Login

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
On a centos system since I recently upgraded to IredAdmin-Pro-LDAP-2.1.1 I get a 500 server error

I get the following error message.
[Fri Mar 28 18:06:01 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Mar 28 18:06:01 2014] [warn] RSA server certificate CommonName (CN) `www.dugganegroup.com' does NOT match server name!?
[Fri Mar 28 18:06:01 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Mar 28 18:06:01 2014] [warn] RSA server certificate CommonName (CN) `www.dugganegroup.com' does NOT match server name!?
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185] mod_wsgi (pid=23402): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185] mod_wsgi (pid=23402): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185] Traceback (most recent call last):
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/iredadmin.py", line 8, in <module>
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]     from libs import iredbase
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/libs/iredbase.py", line 16, in <module>
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]     import iredutils
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/libs/iredutils.py", line 15, in <module>
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]     import settings
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/settings.py", line 3
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]      webmaster = pat.duggan@dugganegroup.com
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]                            ^
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]  SyntaxError: invalid syntax

I also reconfigured my httpd file to split out my different ip addresses with separate conf.d files but I am still using the same ip for the mail server.
Thanks

----

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

2

Re: Admin Panel Login

pdugganjr wrote:

[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]      webmaster = xxx@xxx.com
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]                            ^
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]  SyntaxError: invalid syntax

Missing quotes around the value, it should be:

webmaster = 'xxx'

Either single quotes or double quotes are ok.

May i know how you converted old iRedAdmin-Pro config file 'settings.ini' to the new one (settings.py)? Do you know you can convert it with script shipped in iRedAdmin-Pro: tools/convert_ini_to_py.sh?

3

Re: Admin Panel Login

ZhangHuangbin wrote:
pdugganjr wrote:

[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]      webmaster = xxx@xxx.com
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]                            ^
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]  SyntaxError: invalid syntax

Missing quotes around the value, it should be:

webmaster = 'xxx'

Either single quotes or double quotes are ok.

May i know how you converted old iRedAdmin-Pro config file 'settings.ini' to the new one (settings.py)? Do you know you can convert it with script shipped in iRedAdmin-Pro: tools/convert_ini_to_py.sh?

I added the quotes. I had already coverted the settings.ini to settings.py
I am still getting the following errors
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185] mod_wsgi (pid=25111): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185] mod_wsgi (pid=25111): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185] Traceback (most recent call last):
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/iredadmin.py", line 8, in <module>
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]     from libs import iredbase
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/libs/iredbase.py", line 16, in <module>
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]     import iredutils
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/libs/iredutils.py", line 15, in <module>
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]     import settings
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/settings.py", line 24
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]      storage_base_directory = /var/vmail/vmail1
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]                               ^
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]  SyntaxError: invalid syntax

4

Re: Admin Panel Login

pdugganjr wrote:
ZhangHuangbin wrote:
pdugganjr wrote:

[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]      webmaster = xxx@xxx.com
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]                            ^
[Fri Mar 28 18:06:51 2014] [error] [client 174.51.139.185]  SyntaxError: invalid syntax

Missing quotes around the value, it should be:

webmaster = 'xxx'

Either single quotes or double quotes are ok.

May i know how you converted old iRedAdmin-Pro config file 'settings.ini' to the new one (settings.py)? Do you know you can convert it with script shipped in iRedAdmin-Pro: tools/convert_ini_to_py.sh?

I added the quotes. I had already coverted the settings.ini to settings.py
I am still getting the following errors
I have attached my settings.py file
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185] mod_wsgi (pid=25111): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185] mod_wsgi (pid=25111): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185] Traceback (most recent call last):
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/iredadmin.py", line 8, in <module>
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]     from libs import iredbase
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/libs/iredbase.py", line 16, in <module>
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]     import iredutils
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/libs/iredutils.py", line 15, in <module>
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]     import settings
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]   File "/var/www/iredadmin/settings.py", line 24
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]      storage_base_directory = /var/vmail/vmail1
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]                               ^
[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]  SyntaxError: invalid syntax

5

Re: Admin Panel Login

pdugganjr wrote:

[Tue Apr 01 16:20:26 2014] [error] [client 174.51.139.185]      storage_base_directory = /var/vmail/vmail1

Well, another value should be surrounded by quotes.