1

Topic: iredadmin internal server error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubunaut 20.10
- 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.
====

Hi,

if i try to login https://xxxx.org/iredadmin/ with postmaster@xxxx.org i receive an error 500.
message "internal server error"
In past, it worked fine.


vi /var/log/syslog

Dec  8 16:05:26 a iredadmin: [123.123.123.123] GET /iredadmin/ 200 5182 "-"
Dec  8 16:05:53 a iredadmin: [123.123.123.123] POST /iredadmin/login 303 262 "[url]https://xxx.org/iredadmin/[/url]"
Dec  8 16:05:53 a iredadmin: [123.123.123.123] GET /iredadmin/dashboard?checknew 500 84 "[url]https://xxx.org/iredadmin/[/url]"
Dec  8 16:05:58 a iredadmin: Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    return self.decode(s.data)#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 246, in decode#012    pickled = decodebytes(session_data)#012  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes#012    _input_type_check(s)#012  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check#012    raise TypeError(msg) from err#012TypeError: expected bytes-like object, not str#012#012Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    return self.decode(s.data)#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 246, in decode#012    pickled = decodebytes(session_data)#012  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes#012    _input_type_check(s)#012  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check#012    raise TypeError(msg) from err#012TypeError: expected bytes-like object, not str#012#012Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    return self.decode(s.data)#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 246, in decode#012    pickled = decodebytes(session_data)#012  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes#012    _input_type_check(s)#012  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check#012    raise TypeError(msg) from err#012TypeError: expected bytes-like object, not str#012#012Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    return self.decode(s.data)#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 246, in decode#012    pickled = decodebytes(session_data)#012  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes#012    _input_type_check(s)#012  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check#012    raise TypeError(msg) from err#012TypeError: expected bytes-like object, not str#012#012Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    return self.decode(s.data)#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 246, in decode#012    pickled = decodebytes(session_data)#012  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes#012    _input_type_check(s)#012  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check#012    raise TypeError(msg) from err#012TypeError: expected bytes-like object, not str#012#012Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    return self.decode(s.data)#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 246, in decode#012    pickled = decodebytes(session_data)#012  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes#012    _input_type_check(s)#012  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check#012    raise TypeError(msg) from err#012TypeError: expected bytes-like object, not str#012#012Traceback (most recent call last):#012  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check#012    m = memoryview(s)#012TypeError: memoryview: a bytes-like object is required, not 'str'#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012  File "/usr/local/lib/python3.8/dist-packages/web/application.py", line 288, in process#012    return p(lambda: process(processors))#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 102, in _processor#012    self._load()#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 120, in _load#012    d = self.store[self.session_id]#012  File "/usr/local/lib/python3.8/dist-packages/web/session.py", line 348, in __getitem__#012    ret
Dec  8 16:05:58 a iredadmin: [123.123.123.123] GET /iredadmin/dashboard?checknew 500 84 "[url]https://xxx.org/iredadmin/[/url]"
Dec  8 16:05:58 a iredadmin: [123.123.123.123] GET /iredadmin/dashboard?checknew 500 84 "[url]https://xxx.org/iredadmin/[/url]"

Thank you for your help.

BR
schtebo

----

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

2

Re: iredadmin internal server error

Ohh sad seems like i have overseen the solution. sorry!!

https://forum.iredmail.org/topic17597-i … r-500.html

3

Re: iredadmin internal server error

Upgrade web.py package and try again:

pip3 install -U web.py
service iredadmin restart