Same error here:
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Centos 7.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
iRedAdmin v3.1 (MySQL)
If the user is Global admin the log is show corectly but if it is not internel error is shown.
/var/log/messages:
Jan 30 13:19:19 mail uwsgi: Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/web/application.py", line 239, in process#012 return self.handle()#012 File "/usr/lib/python2.7/site-packages/web/application.py", line 230, in handle#012 return self._delegate(fn, self.fvars, args)#012 File "/usr/lib/python2.7/site-packages/web/application.py", line 420, in _delegate#012 return handle_class(cls)#012 File "/usr/lib/python2.7/site-packages/web/application.py", line 396, in handle_class#012 return tocall(*args)#012 File "/var/www/iRedAdmin-Pro-SQL-3.1/controllers/decorators.py", line 42, in proxyfunc#012 return func(self, *args, **kw)#012 File "/var/www/iRedAdmin-Pro-SQL-3.1/controllers/panel/log.py", line 41, in GET#012 cur_page=form_cur_page)#012 File "/var/www/iRedAdmin-Pro-SQL-3.1/controllers/decorators.py", line 42, in proxyfunc#012 return func(self, *args, **kw)#012 File "/var/www/iRedAdmin-Pro-SQL-3.1/libs/panel/log.py", line 56, in list_logs#012 where=web.db.sqlwhere(query_dict.items()),#012 File "/usr/lib/python2.7/site-packages/web/db.py", line 394, in sqlwhere#012 return SQLQuery.join([k + ' = ' + sqlparam(v) for k, v in dictionary.items()], grouping)#012AttributeError: 'list' object has no attribute 'items'
Jan 30 13:19:19 mail uwsgi: ut
Jan 30 13:19:19 mail uwsgi: 10.1.16.41 [pid: 8542|app: 1|req: 7/61] 10.101.7.9 () {56 vars in 938 bytes} [Wed Jan 30 13:19:19 2019] GET /iredadmin/system/log => generated 21 bytes in 16 msecs (HTTP/1.1 500) 2 headers in 165 bytes (2 switches on core 0)
If the user is global admin the admin log is shown correctly
/var/log/messages:
Jan 30 13:25:04 mail uwsgi: 10.1.16.41 [pid: 8544|app: 1|req: 14/75] 10.101.7.9 () {56 vars in 970 bytes} [Wed Jan 30 13:25:03 2019] GET /iredadmin/system/log => generated 53860 bytes in 1201 msecs (HTTP/1.1 200) 2 headers in 146 bytes (2 switches on core 0)