1

Topic: JSON Error when trying to edit User in IredAdmin Pro Dashboard

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

Hello, since the lateste update to iredmail 1.6.6 and iredadmin pro 5.5 (MySQL) we get an error when trying to edit a user in the iredadmin dashboard.


When we click on the Username or on the „Edit Profile“ button, this error occurs:

Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')

In the syslog I can find following error at the time when i try to edit the profile:

   "Aborted connection 185 to db: 'iredadmin' user: 'iredadmin' host: 'localhost' (Got an error
   reading communication packets)"

   "ET /iredadmin/profile/user/general/username@domain.com 303 334 "https://mail.server.cc/iredadmin/users/ … 0%29%27%29"
Dec 13 10:42:10 server iredadmin: [10.xxx.xxx.xxx] GET /iredadmin/users/domain.com?msg=JSONDecodeError%28%27Expecting%20value%3A%20line%201%20column%201%20%28char%200%29%27%29 200 26125 "https://mail.server.cc/iredadmin/users/ … 0%29%27%29"

How can we solve this issue? At the moment we are not able to change or edit any user settings.

Thanks for your help.

----

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

2

Re: JSON Error when trying to edit User in IredAdmin Pro Dashboard

Try to add this line in MySQL server config file, under section "[mysqld]", then restart mysql service:

[mysqld]
log_warnings = 1

3

Re: JSON Error when trying to edit User in IredAdmin Pro Dashboard

Hello, thanks for your reply, I added the line in the mysql config and did a restart.

The error message regarding "Got an error reading communication packets" is gone, but the following errors are still present:

Dec 14 11:17:11 server iredadmin: [10.xxx.xxx.xxx] GET /iredadmin/profile/user/general/user@domain.com 303 334 "https'://mail.server.cc/iredadmin/users/domain.com?msg=JSONDecodeError%28%27Expecting%20value%3A%20line%201%20column%201%20%28char%200%29%27%29"
Dec 14 11:17:12 server iredadmin: [10.xxx.xxx.xxx] GET /iredadmin/users/domain.com?msg=JSONDecodeError%28%27Expecting%20value%3A%20line%201%20column%201%20%28char%200%29%27%29 200 26125 "https'://mail.server.cc/iredadmin/users/domain.com?msg=JSONDecodeError%28%27Expecting%20value%3A%20line%201%20column%201%20%28char%200%29%27%29"

We also get the same JSON Error in the Webinterface when trying to edit a user profile:

Error: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')

Any further hints we can try?

4

Re: JSON Error when trying to edit User in IredAdmin Pro Dashboard

Is "mlmmjadmin" service running?

5

Re: JSON Error when trying to edit User in IredAdmin Pro Dashboard

We re-downloaded the latest release of iRedAPD and mlmmjadmin and upgrade again - this fixed our problem.

https://docs.iredmail.org/upgrade.iredapd.html
https://docs.iredmail.org/upgrade.mlmmjadmin.html