1

Topic: Error when access to profile page

==== Required information ====
- iRedMail version: Pro 1.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Linux/BSD distribution name and version: UBUNTU 12.04
- Related log if you're reporting an issue:
====

Bye to all, i've this error:

GET https://192.168.x.x/iredadmin/profile/d … domain.tld

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/web/application.py", line 242, in process
    return self.handle()
  File "/usr/lib/pymodules/python2.7/web/application.py", line 233, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/lib/pymodules/python2.7/web/application.py", line 415, in _delegate
    return handle_class(cls)
  File "/usr/lib/pymodules/python2.7/web/application.py", line 390, in handle_class
    return tocall(*args)
  File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 11, in proxyfunc
    return func(self, *args, **kw)
  File "/usr/share/apache2/iredadmin/controllers/pgsql/domain.py", line 141, in GET
    result_throttle = throttleLib.getThrottling(sender='@' + self.domain, recipient='@' + self.domain)
  File "/usr/share/apache2/iredadmin/libs/policyd/throttle.py", line 160, in getThrottling
    limit=1,
  File "/usr/lib/pymodules/python2.7/web/db.py", line 649, in select
    return self.query(qout, processed=True)
  File "/usr/lib/pymodules/python2.7/web/db.py", line 610, in query
    db_cursor = self._db_cursor()
  File "/usr/lib/pymodules/python2.7/web/db.py", line 541, in _db_cursor
    return self.ctx.db.cursor()
  File "/usr/lib/pymodules/python2.7/web/db.py", line 482, in _getctx
    self._load_context(self._ctx)
  File "/usr/lib/pymodules/python2.7/web/db.py", line 493, in _load_context
    ctx.db = self._connect(self.keywords)
  File "/usr/lib/pymodules/python2.7/web/db.py", line 521, in _connect
    return self.db_module.connect(**keywords)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
TypeError: connect() argument 3 must be string, not None

when i try to access to user/domain profile.Why i read MySQL if my backend is PGSQL?
I've changed the ip address of server, is this correlate?
Have i the last ireadmin pro version for Postgres?


Sorry for my English and thanks in advance

2

Re: Error when access to profile page

- The latest stable release of iRedAdmin-Pro-PGSQL (PostgreSQL edition) is 1.1.1.
- I guess you have "enabled = True" under iRedAdmin-Pro config file "settings.ini", under section "[policyd]". Please set it to False, then restart Apache and try again.

[policyd]
enabled = False