1 (edited by diana.lohmus 2019-09-12 21:12:46)

Topic: 'Internal server error accessing ' Admin Log*

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- 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-release-7-5.1804.4.el7.centos.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
________________________________________________________________________

Log files:
[root@mail ~]# tail /var/log/messages
Sep 12 16:02:01 mail systemd: Starting Session 3141 of user root.
Sep 12 16:02:01 mail systemd: Created slice User Slice of sogo.
Sep 12 16:02:01 mail systemd: Starting User Slice of sogo.
Sep 12 16:02:01 mail systemd: Started Session 3142 of user sogo.
Sep 12 16:02:01 mail systemd: Starting Session 3142 of user sogo.
Sep 12 16:02:01 mail systemd: Removed slice User Slice of sogo.
Sep 12 16:02:01 mail systemd: Stopping User Slice of sogo.
Sep 12 16:02:08 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.9/controllers/decorators.py", line 44, in proxyfunc#012    return func(self, *args, **kw)#012  File "/var/www/iRedAdmin-Pro-SQL-3.9/controllers/panel/log.py", line 40, in GET#012    cur_page=form_cur_page)#012  File "/var/www/iRedAdmin-Pro-SQL-3.9/libs/panel/log.py", line 47, 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'
Sep 12 16:02:08 mail uwsgi:
Sep 12 16:02:08 mail uwsgi: mail.mydomain.ee [pid: 4928|app: 1|req: 108/244] MyIP () {60 vars in 1210 bytes} [Thu Sep 12 16:02:08 2019] GET /iredadmin/system/log?domain=all&admin=admin%40mydomain.ee&event=all => generated 21 bytes in 6 msecs (HTTP/1.1 500) 2 headers in 165 bytes (2 switches on core 0)

Default Admin Log is visible, but when I want to filter the log by domain, administrator or activity I get "internel server error".  That error occurred after iRedAdmin Pro upgrade to version 3.9

----

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

2

Re: 'Internal server error accessing ' Admin Log*

Sorry about this trouble.
I sent you a patched version moment ago, please upgrade by following our tutorial:
https://docs.iredmail.org/migrate.or.up … admin.html

Let me know if it doesn't work for you.

3

Re: 'Internal server error accessing ' Admin Log*

ZhangHuangbin wrote:

Sorry about this trouble.
I sent you a patched version moment ago, please upgrade by following our tutorial:
https://docs.iredmail.org/migrate.or.up … admin.html

Let me know if it doesn't work for you.



I installed patched version, but it doesn't work. I get same error.

4 (edited by sbignell 2019-09-13 09:50:57)

Re: 'Internal server error accessing ' Admin Log*

Hi

Just to let you know I am seeing the same error but I upgraded to iRedadmin Pro 4.0 a few days ago. Also, I am using the LDAP version.

5

Re: 'Internal server error accessing ' Admin Log*

Any Updates on this issue?

6

Re: 'Internal server error accessing ' Admin Log*

I figured it out on a customer's server, it's caused by old package "python-webpy" on CentOS. Please try steps below to fix it:

yum remove python-webpy
yum clean all
yum install python-setuptools
easy_install web.py==0.39
service iredadmin restart

7

Re: 'Internal server error accessing ' Admin Log*

ZhangHuangbin wrote:

I figured it out on a customer's server, it's caused by old package "python-webpy" on CentOS. Please try steps below to fix it:

yum remove python-webpy
yum clean all
yum install python-setuptools
easy_install web.py==0.39
service iredadmin restart

Hi. I've done the above on our test server and the issue still persists.

8

Re: 'Internal server error accessing ' Admin Log*

ok, try commands below:

easy_install web.py==0.40.dev1
service iredadmin restart

9

Re: 'Internal server error accessing ' Admin Log*

Hi

Yes installing this version web.py-0.40_dev1 fixed the issue for me.

On Live server I ran

yum remove python-webpy
yum clean all
yum install python-setuptools
easy_install web.py==0.40.dev1
service iredadmin restart

Thank You!

10

Re: 'Internal server error accessing ' Admin Log*

Installing this version web.py-0.40_dev1 fixed the issue for me too.

On Live server I ran

yum remove python-webpy
yum clean all
yum install python-setuptools
easy_install web.py==0.40.dev1
service iredadmin restart

Thank You!

11

Re: 'Internal server error accessing ' Admin Log*

Dear all,

You can upgrade web.py to the latest stable release `0.40` (instead of `0.40.dev1`) now, it was released days ago (by me).