Topic: Admin log - filter - Internal server error - AttributeError: 'list'
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): SQL
- 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.
====
My staff pointed out that if they are looking at the admin log, and then attempt to apply a filter (presumably, for events concerning a specfic domain instead of the whole log), iredadmin comes back immediately with "internal server error".
Digging thru logs, in syslog I find this:
Sep 4 15:40:17 mail-cluster-1 uwsgi: Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/web/application.py", line 239, in process#012 return self.handle()#012 File "/usr/lib/python2.7/dist-packages/web/application.py", line 230, in handle#012 return self._delegate(fn, self.fvars, args)#012 File "/usr/lib/python2.7/dist-packages/web/application.py", line 420, in _delegate#012 return handle_class(cls)#012 File "/usr/lib/python2.7/dist-packages/web/application.py", line 396, in handle_class#012 return tocall(*args)#012 File "/opt/www/iRedAdmin-Pro-SQL-3.8/controllers/decorators.py", line 44, in proxyfunc#012 return func(self, *args, **kw)#012 File "/opt/www/iRedAdmin-Pro-SQL-3.8/controllers/panel/log.py", line 40, in GET#012 cur_page=form_cur_page)#012 File "/opt/www/iRedAdmin-Pro-SQL-3.8/libs/panel/log.py", line 47, in list_logs#012 where=web.db.sqlwhere(query_dict.items()),#012 File "/usr/lib/python2.7/dist-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'
Wondering if there is a simple fix for this?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.