1

Topic: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

==== Required information ====
- iRedMail version: 1.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: CentOS 6.5 64bit
- Related log if you're reporting an issue:
====
I upgrade following the below command is work before
tar xjf iRedAdmin-Pro-LDAP-1.9.0.tar.bz2 -C /var/www/
cd /var/www/
rm -i /var/www/iredadmin
ln -s iRedAdmin-Pro-LDAP-1.9.0 iredadmin
cp -p iRedAdmin-0.2.1/settings.ini iRedAdmin-Pro-LDAP-1.9.0

chown -R iredadmin:iredadmin iRedAdmin-Pro-LDAP-1.9.0
chmod -R 0555 iRedAdmin-Pro-LDAP-1.9.0
chmod -R 0400 iRedAdmin-Pro-LDAP-1.9.0/settings.ini
/etc/init.d/httpd restart

now 0.8.7 is using settings.py not settings.ini
tar xjf iRedAdmin-Pro-LDAP-1.9.0.tar.bz2 -C /var/www/
cd /var/www/
rm -i /var/www/iredadmin
ln -s iRedAdmin-Pro-LDAP-1.9.0 iredadmin
cp -p iRedAdmin-0.3.3/settings.py iRedAdmin-Pro-LDAP-1.9.0

chown -R iredadmin:iredadmin iRedAdmin-Pro-LDAP-1.9.0
chmod -R 0555 iRedAdmin-Pro-LDAP-1.9.0
chmod -R 0400 iRedAdmin-Pro-LDAP-1.9.0/settings.py
/etc/init.d/httpd restart

then go to iredadmin page show :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable complete the request.

Please help.

----

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

2

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

victorlaw wrote:

then go to iredadmin page show :
Internal Server Error

Any related log in Apache log file (/var/log/httpd/ssl_error_log)? I guess your config file (settings.py) misses some parameters or have empty/incorrect values.

3

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

Thanks!
Before upgrade to 1.9.0, I tested iRedamin 0.8.7 is work. I post the ssl_error_log as below. Is it 1.9.0 can only support settings.ini? or I need convert .py to .ini?

[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35] mod_wsgi (pid=13322): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35] mod_wsgi (pid=13322): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35] Traceback (most recent call last):
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]   File "/var/www/iredadmin/iredadmin.py", line 9, in <module>
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]     from libs import iredbase
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]   File "/var/www/iredadmin/libs/iredbase.py", line 35, in <module>
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]     webmaster = cfg.general.get('webmaster', 'root')
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]   File "/usr/lib/python2.6/site-packages/web/utils.py", line 76, in __getattr__
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]     raise AttributeError, k
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35] AttributeError: 'general'

4

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

victorlaw wrote:

[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35]     raise AttributeError, k
[Thu Nov 20 21:11:05 2014] [error] [client 192.168.1.35] AttributeError: 'general'

Your iRedAdmin-Pro is still trying to use 'settings.ini' as config file.

Did you have correct symbol link of /var/www/iredadmin?
Did you restart Apache service?

5

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

I tried following command
rm -i /var/www/iredadmin
ln -s iRedAdmin-Pro-LDAP-1.9.0 iredadmin
cp -p iRedAdmin-0.3.3/settings.py iRedAdmin-Pro-LDAP-1.9.0

chown -R iredadmin:iredadmin iRedAdmin-Pro-LDAP-1.9.0
chmod -R 0555 iRedAdmin-Pro-LDAP-1.9.0
chmod -R 0400 iRedAdmin-Pro-LDAP-1.9.0/settings.py
/etc/init.d/httpd restart

Is it correct?

6

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

Dear victorlaw,

You can follow our NEW tutorial to migrate to iRedAdmin-Pro:
http://www.iredmail.org/docs/migrate.or … admin.html

It's much easier. Just one command required.

7 (edited by victorlaw 2014-11-22 16:34:03)

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

There is no upgrade_iredadmin.sh in tools
only have :
__init__.py
cleanup_amavisd_db.py
dump_disclaimer.py
ira_tool_lib.py
README

8

Re: iredmail 0.8.7 upgrade to 1.9.0 setting.ini problem

If you're running iRedMail-0.8.7, you need iRedAdmin-Pro-LDAP-2.1.2. I will send you download link immediately, please follow our tutorial to upgrade iRedAdmin open source edition to iRedAdmin-Pro-LDAP-2.1.2:
http://www.iredmail.org/docs/migrate.or … admin.html

If you didn't receive the email, please contact me directly: http://www.iredmail.org/contact.html