1 (edited by detomassino 2018-02-15 05:23:28)

Topic: can't access iredadmin page

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 OPENLDAP edition.
- Linux/BSD distribution name and version: FreeBSD 11.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,

After a recent upgrade of the system I have lost access to the /ireadmin page. The server returns internal error.
This is in the log:

mail.server.com [pid: 56275|app: 0|req: 4/4] 192.168.1.63 () {52 vars in 867 bytes} [Wed Feb 14 21:10:06 2018] GET /iredadmin => generated 21 bytes in 68 msecs (HTTP/1.1 500) 2 headers in 155 bytes (2 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 458, in _delegate
    mod = __import__(mod, None, None, [''])
  File "/usr/local/www/iRedAdmin-0.7/controllers/ldap/basic.py", line 11, in <module>
    from libs.ldaplib import auth, decorators, admin as adminlib, ldaputils
  File "/usr/local/www/iRedAdmin-0.7/libs/ldaplib/admin.py", line 7, in <module>
    from libs.ldaplib import core, attrs, ldaputils, iredldif, deltree, connUtils, decorators
  File "/usr/local/www/iRedAdmin-0.7/libs/ldaplib/deltree.py", line 5, in <module>
    class DeleteLeafs(ldap.async.AsyncSearchHandler):
  File "/usr/local/www/iRedAdmin-0.7/libs/ldaplib/deltree.py", line 11, in DeleteLeafs
    _entryResultTypes = ldap.async._entryResultTypes
AttributeError: 'module' object has no attribute '_entryResultTypes

What can be the problem?

Best regards,
Bruno

----

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

2

Re: can't access iredadmin page

This issue was reported by other users few times, but i cannot reproduce it on a fresh iRedMail installation. Seems it only occurs while upgrading packages.

is it possible to give me direct ssh access for debugging?

3

Re: can't access iredadmin page

I may not be able to do it? Would there be any other way to go about this?

4

Re: can't access iredadmin page

Downgrade package py-ldap should fix this issue.