Topic: Problem with edit user profile or add new user
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Debian 9.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes 2.9.0
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
After upgrade i can't edit user profile and got errors when adding new users.
I found errors in iredadmin.log:
xxx.yyy.pl [pid: 22723|app: 0|req: 7/8] 89.25.230.131 () {56 vars in 1346 bytes} [Tue Apr 10 07:44:37 2018] GET /iredadmin/profile/user/general/xxx@yyyy.pl => generated 21 bytes in 26 msecs (HTTP/1.1 500) 2 headers in 165 bytes (2 switches on core 0)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/web/application.py", line 239, in process
return self.handle()
File "/usr/lib/python2.7/dist-packages/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/lib/python2.7/dist-packages/web/application.py", line 462, in _delegate
return handle_class(cls)
File "/usr/lib/python2.7/dist-packages/web/application.py", line 438, in handle_class
return tocall(*args)
File "/usr/share/apache2/iRedAdmin-Pro-SQL-2.9.0/controllers/sql/user.py", line 322, in GET
_qr = mlmmj.get_subscribed_lists(mail=mail, query_all_lists=False)
File "/usr/share/apache2/iRedAdmin-Pro-SQL-2.9.0/libs/mlmmj/__init__.py", line 328, in get_subscribed_lists
qr = r.json()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 850, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
After all i got "internal server error" in iredadmin panel. If i refresh site few times error will dissapear and site will load normaly.
If i make # in this line --> "/usr/share/apache2/iRedAdmin-Pro-SQL-2.9.0/controllers/sql/user.py", line 322" and restart uwsgi then i can edit user profile without any problem.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.