1

Topic: internal server error when trying to view account profile

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 OPENLDAP edition.
- Linux/BSD distribution name and version: CentOS Linux release 7.4.1708 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): OpenLDAP 2.4.44
- Web server (Apache or Nginx): Nginx 1.12.2
- Manage mail accounts with iRedAdmin-Pro? Yes, 3.1.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

When I try to view any account profile in iredAdmin Pro I encounter a 500 - internal server error. I've check /var/log/nginx/error.log and /var/log/iredapd.log and there aren't any errors that occur at the time of testing.

The resource it is trying to access is https://mail.mydomain.com/iredadmin/pro … domain.com

Any ideas?


Thanks

----

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 when trying to view account profile

Any error in /var/log/uwsgi*?

3 (edited by daniel09 2018-05-12 20:02:57)

Re: internal server error when trying to view account profile

Unfortunately I have no files in the /var/log/uwsgi/ directory.

Checking the uwsgi service status I see there is an issue decoding the JSON object. Any further ideas?

Hint: Some lines were ellipsized, use -l to show in full.
[root@mail ~]# systemctl status uwsgi -l
● uwsgi.service - uWSGI Emperor Service
   Loaded: loaded (/usr/lib/systemd/system/uwsgi.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2018-05-07 12:28:18 UTC; 4 days ago
  Process: 459 ExecStartPre=/bin/chown uwsgi:uwsgi /run/uwsgi (code=exited, status=0/SUCCESS)
  Process: 451 ExecStartPre=/bin/mkdir -p /run/uwsgi (code=exited, status=0/SUCCESS)
Main PID: 464 (uwsgi)
   Status: "The Emperor is governing 1 vassals"
   CGroup: /system.slice/uwsgi.service
           ├─464 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
           ├─479 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
           ├─481 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
           ├─482 /usr/sbin/uwsgi --ini /etc/uwsgi.ini
           ├─483 /usr/sbin/uwsgi --ini iredadmin.ini
           └─490 /usr/sbin/uwsgi --ini iredadmin.ini

May 12 11:57:10 mail.mydomain.com uwsgi[464]: File "/usr/lib/python2.7/site-packages/requests/models.py", line 802, in json
May 12 11:57:10 mail.mydomain.com uwsgi[464]: return json.loads(self.text, **kwargs)
May 12 11:57:10 mail.mydomain.com uwsgi[464]: File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
May 12 11:57:10 mail.mydomain.com uwsgi[464]: return _default_decoder.decode(s)
May 12 11:57:10 mail.mydomain.com uwsgi[464]: File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
May 12 11:57:10 mail.mydomain.com uwsgi[464]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
May 12 11:57:10 mail.mydomain.com uwsgi[464]: File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
May 12 11:57:10 mail.mydomain.com uwsgi[464]: raise ValueError("No JSON object could be decoded")
May 12 11:57:10 mail.mydomain.com uwsgi[464]: ValueError: No JSON object could be decoded
May 12 11:57:10 mail.mydomain.com uwsgi[464]: mail.mydomain.com [pid: 490|app: 0|req: 50/50] MY.IP.ADDRESS.HERE () {56 vars in 1115 bytes} [Sat May 12 11:57:10 2018] GET /iredadmin/profile/user/general/daniel@mydomain.com => generated 21 bytes in 53 msecs (HTTP/1.1 500) 2 headers in 164 bytes (2 switches on core 0)

4

Re: internal server error when trying to view account profile

Did you follow our upgrade tutorial to integrate mlmmj and mlmmjadmin?
https://docs.iredmail.org/upgrade.iredm … ntegration

5

Re: internal server error when trying to view account profile

I've just redone the steps on the URL below and it is working again. I've just bought you a coffee thanks!

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