1

Topic: Problem with iRedAdmin

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: FreeBSD 8.2-RELEASE-p6 amd64
- iRedMail version and backend (LDAP/MySQL): 0.7.4 - MySQL Backend
- Any related log? Log is helpful for troubleshooting.
====

After update some packages iredadmin did not start. When i checked the log file; i saw this error:

# tail -f httpd-error.log
[Fri Feb 03 15:16:24 2012] [notice] Apache/2.2.21 (FreeBSD) mod_ssl/2.2.21 OpenSSL/0.9.8q DAV/2 mod_wsgi/2.8 Python/2.6.7 configured -- resuming normal operations
[Fri Feb 03 14:58:00 2012] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/apache22/data/favicon.ico
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx] mod_wsgi (pid=1446): Target WSGI script '/usr/local/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx] mod_wsgi (pid=1446): Exception occurred processing WSGI script '/usr/local/www/iredadmin/iredadmin.py'.
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx] Traceback (most recent call last):
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx]   File "/usr/local/www/iredadmin/iredadmin.py", line 10, in <module>
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx]     from libs import iredbase
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 8, in <module>
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx]     from jinja2 import Environment, FileSystemLoader
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx] ImportError: No module named jinja2
[Fri Feb 03 14:58:07 2012] [error] [client xx.xx.xx.xx] File does not exist: /usr/local/www/apache22/data/favicon.ico

i think some code is not compatible with new updated packages. How can i fix this?

Here is some of my system major package versions:
apache-2.2.21
perl-threaded-5.14.2
python26-2.6.7_2
php5-5.3.8

Thanks for support.

Hasan Alp iNAN

Sorry about my English.

2

Re: Problem with iRedAdmin

hainan wrote:

[error] [client xx.xx.xx.xx] ImportError: No module named jinja2

It complains you don't have Python module jinja2 installed. It should be /usr/ports/devel/py-jinja2.

3

Re: Problem with iRedAdmin

Hi

it's already installed.

mail# pkg_info|grep Jinja
py26-Jinja2-2.6     A fast, and easy to use stand-alone template engine

4

Re: Problem with iRedAdmin

How can i change users password without iredadmin? (mysql backend) Is there any script for mail users password management?

Thanks for support.

5

Re: Problem with iRedAdmin

hainan wrote:

How can i change users password without iredadmin? (mysql backend) Is there any script for mail users password management?

You can change user password with phpMyAdmin, hashed in MD5.

6

Re: Problem with iRedAdmin

problem is still ongoing

[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx] mod_wsgi (pid=1443): Target WSGI script '/usr/local/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx] mod_wsgi (pid=1443): Exception occurred processing WSGI script '/usr/local/www/iredadmin/iredadmin.py'.
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx] Traceback (most recent call last):
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]   File "/usr/local/www/iredadmin/iredadmin.py", line 10, in <module>
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]     from libs import iredbase
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 73, in <module>
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]     pw=cfg.iredadmin.get('passwd'),
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]   File "/usr/local/lib/python2.6/site-packages/web/db.py", line 1142, in database
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]     return _databases[dbn](**params)
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]   File "/usr/local/lib/python2.6/site-packages/web/db.py", line 975, in __init__
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx]     import MySQLdb as db
[Mon Feb 27 11:25:33 2012] [error] [client xx.xx.xx.xx] ImportError: No module named MySQLdb

and an other new error

[Mon Feb 27 11:26:05 2012] [error] Exception KeyError: KeyError(34384921024,) in <module 'threading' from '/usr/local/lib/python2.6/threading.pyc'> ignored

7

Re: Problem with iRedAdmin

hainan wrote:

[error] [client xx.xx.xx.xx] ImportError: No module named MySQLdb

How did you solve previous issue (jinja2)?

8

Re: Problem with iRedAdmin

Hi

I fixed all python based errors. Solution is : Recompile recursively all python26 ports. (portupgrade -fr python26)

Thanks for support.

Hasan Alp iNAN

9

Re: Problem with iRedAdmin

Thanks for your sharing. smile