1 (edited by cvcvelo 2021-10-19 07:04:00)

Topic: mlmmj list creation error: ChunkedEncodingError

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL (MariaDB)
- 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.
====

First mlmmj list creation attempt from iRedAdmin-Pro failed with this error in the iRedMail-Pro GUI:

Error: ChunkedEncodingError(ProtocolError("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')))

And there is this error in /var/log/mlmmjadmin/mlmmjadmin.log:

Oct 16 19:51:22 mail9 mlmmjadmin [127.0.0.1] Blocked request with invalid auth token: rR66O3hLnZZ5L1wyc73DJa4hxZ4qau.

This is not the token configured in /opt/mlmmjadmin/settings.py.

About the only difference from the integration instructions is that the vmail database user is vmail and not vmailadmin. I've verified that login works OK on the command line.

Thanks in advance for any troubleshooting clues.

----

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

2

Re: mlmmj list creation error: ChunkedEncodingError

Make sure the mlmmjadmin token used in iRedAdmin-Pro config file (/opt/www/iredadmin/settings.py) is listed in mlmmjadmin config file (/opt/mlmmjadmin/settings.py).

3

Re: mlmmj list creation error: ChunkedEncodingError

ZhangHuangbin wrote:

Make sure the mlmmjadmin token used in iRedAdmin-Pro config file (/opt/www/iredadmin/settings.py) is listed in mlmmjadmin config file (/opt/mlmmjadmin/settings.py).

Thank you! List creation works OK with that fix.

BTW I did not see anything about modifying /opt/www/iredadmin/settings.py in this MLMMJ setup guide, but maybe I missed something:

https://docs.iredmail.org/integration.mlmmj.mysql.html

Thanks again.

4

Re: mlmmj list creation error: ChunkedEncodingError

While upgrading iRedAdmin-Pro, the upgrade script will extract first api token from /opt/mlmmjadmin/settings.py, so there's no need to mention it.