1

Topic: Error when accessing iredadmin

Hello!

trying to access https://myserver/iredamdin I get these errors in apache log


mod_wsgi (pid=27582): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.

mod_wsgi (pid=27582): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.

Traceback (most recent call last):

File "/var/www/iredadmin/iredadmin.py", line 32, in ?
    from libs import iredbase, iredutils
File "/var/www/iredadmin/libs/iredbase.py", line 79, in ?
    sessionDB = web.database(
File "/usr/lib/python2.4/site-packages/web.py-0.34-py2.4.egg/web/utils.py", line 71, in __getattr__
  raise AttributeError, k
AttributeError: 'iredadmin'

Furthermore, running /var/www/iredadmin/libs/iredbase.py raises



Traceback (most recent call last):
  File "/var/www/iredadmin/libs/iredbase.py", line 60, in ?
    from controllers.ldap.urls import urls as backendUrls
ImportError: No module named controllers.ldap.urls






I have python-ldap from ired repo installed.

What is wrong?

2

Re: Error when accessing iredadmin

ImportError: No module named controllers.ldap.urls

File missed: controllers/ldap/urls.py

3

Re: Error when accessing iredadmin

ZhangHuangbin wrote:

ImportError: No module named controllers.ldap.urls

File missed: controllers/ldap/urls.py




this file belong to IRedAdmin, right ? .....so in base/iredbase.py I added


sys.path.append("/var/www/iredadmin")
from controllers.ldap import *



and now I get




  sessionDB = web.database(
  File "/usr/lib/python2.4/site-packages/web.py-0.34-py2.4.egg/web/utils.py", line 71, in __getattr__
    raise AttributeError, k
AttributeError: 'iredadmin'



TIA

4

Re: Error when accessing iredadmin

For iRedAdmin, what you need to modify is settigs.ini.

Seems there's something wrong with your iRedAdmin, please download it again. If you're using iRedAdmin-Pro, please mail me.

5

Re: Error when accessing iredadmin

It is ok know, up and running, after I reinstalled the whole machine following your instruction step by step.

Thank you!