1

Topic: Troubles after upgrading on OpenBSD

Hi folks,
i get errors from apache after the upgrading package from 1.6.0 to 1.8.1.
I made all steps from the tutorial.
What is wrong?

Best regards
Zdzich

==== Required information ====
- iRedMail version: iRedAdmin-Pro  1.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: OpenBSD 5.2
- Related log if you're reporting an issue: Traceback (most recent call last):
  File "/var/www/iredadmin/iredadmin.py", line 8, in <module>
    from libs import iredbase
  File "/var/www/iredadmin/libs/iredbase.py", line 16, in <module>
    import iredutils
  File "/var/www/iredadmin/libs/iredutils.py", line 15, in <module>
    import settings
ImportError: No module named settings
[Sat Feb  8 15:33:01 2014] [error] [client 89.66.236.124] Premature end of script headers: /var/www/iredadmin/iredadmin.py
Traceback (most recent call last):
  File "/var/www/iredadmin/iredadmin.py", line 8, in <module>
    from libs import iredbase
  File "/var/www/iredadmin/libs/iredbase.py", line 16, in <module>
    import iredutils
  File "/var/www/iredadmin/libs/iredutils.py", line 15, in <module>
    import settings
ImportError: No module named settings
[Sat Feb  8 16:01:53 2014] [error] [client 89.66.236.124] Premature end of script headers: /var/www/iredadmin/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: Troubles after upgrading on OpenBSD

marchewa9 wrote:

ImportError: No module named settings

It's mentioned in iRedAdmin-Pro upgrade tutorial for iRedAdmin-Pro-MySQL-1.8.0. You have to convert old config file to new format.

1) Copy old config file 'settings.ini' from iRedAdmin-Pro-MySQL-1.6.0 to iRedAdmin-Pro-MySQL-1.8.1.

# cd /var/www/
# cp iRedAdmin-Pro-MySQL-1.6.0/settings.ini iRedAdmin-Pro-MySQL-1.8.1/

2) Convert config file, set correct file permission and owner:

# cd /var/www/iRedAdmin-Pro-MySQL-1.8.1/
# bash tools/convert_ini_to_py.sh settings.ini

# rm settings.ini
# chown iredadmin:iredadmin settings.py
# chmod 0400 settings.py

3) Restart Apache service.

3

Re: Troubles after upgrading on OpenBSD

Thanks,
i made so during the upgrading, but all works as well when  owner of file setting.ini is user www, not iredadmin.

Best regards
Zdzich

4

Re: Troubles after upgrading on OpenBSD

Mistake, setting.py, not setting.ini