1

Topic: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

Red Hat Enterprise Linux Server release 7.9 (Maipo)
0.9.9 MARIADB edition.
using the upgrade_iredadmin.sh tool

The upgrade appears to be successful
bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: RHEL
* HTTP server root: /opt/www
* Found iRedAdmin directory: /opt/www/iredadmin, symbol link of iRedAdmin-1.2
* Found iRedAdmin config file: /opt/www/iredadmin/settings.py
* Copying new version to /opt/www/iRedAdmin-1.2
* Copy /opt/www/iredadmin/settings.py.
cp: '/opt/www/iredadmin/settings.py' and '/opt/www/iRedAdmin-1.2/settings.py' are the same file
* Remove existing systemd service files.
* Copy systemd service file: /lib/systemd/system/iredadmin.service.
* Removing old symbol link /opt/www/iredadmin
* Creating symbol link /opt/www/iredadmin to /opt/www/iRedAdmin-1.2
* Enable mlmmj integration.
* Restarting service: mlmmjadmin.
* Check and install required packages.
* Check SQL tables, and add missed ones - if there's any
* Replace py2 by py3 in cron jobs.
* Clean up.
* Delete all existing sessions to force all admins to re-login.
* iRedAdmin has been successfully upgraded.
* Restarting iredadmin service.
Redirecting to /bin/systemctl restart iredadmin.service
* Enable service: iredadmin
Created symlink from /etc/systemd/system/multi-user.target.wants/iredadmin.service to /usr/lib/systemd/system/iredadmin.service.
* Upgrading completed.
<<< NOTE >>> If iRedAdmin doesn't work as expected, please post your issue in
<<< NOTE >>> our online support forum: http://www.iredmail.org/forum/

The web server is Nginx

The dashboard after reboot throws the following error
502 Bad Gateway

nginx

The Nginx log has the following error.
2020/12/28 14:54:07 [error] 1891#0: *276 upstream prematurely closed connection while reading response header from upstream, client: 172.16.1.233, server: _, request: "GET /iredadmin/dashboard/checknew HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "172.16.1.68"p

All other web based services are working except the iredadmin dashboard. I have done multiple reboots but it may be some configuration file is corrupted or did not get moved correctly

----

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

2

Re: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

Try this:

cd /opt/www/iredadmin/
python3 iredadmin.py

It will run a dev http server on port 8080, visit it with a web browser (or run "curl -k https://localhost:8080" on server directly), any error on console?

3

Re: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

Window #1
# cd /opt/www/iredadmin/
[iredadmin]# python3 iredadmin.py
http://0.0.0.0:8080/

Window #2
# curl -k https://localhost:8080
curl: (35) SSL received a record that exceeded the maximum permissible length.

Thanks,
Scott

4

Re: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

In case this may be useful.
# lsof -i :443
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
python  2352 netdata    3u  IPv4 155155      0t0  TCP localhost:61760->localhost:https (ESTABLISHED)
nginx   6516    root    6u  IPv4 146456      0t0  TCP *:https (LISTEN)
nginx   6517   nginx    3u  IPv4 155156      0t0  TCP localhost:https->localhost:61760 (ESTABLISHED)
nginx   6517   nginx    6u  IPv4 146456      0t0  TCP *:https (LISTEN)
# lsof -i :8080
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
python3 7876 root    3u  IPv4 150425      0t0  TCP *:webcache (LISTEN)

5

Re: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

bigcrap wrote:

curl: (35) SSL received a record that exceeded the maximum permissible length.

No error on Window #1?

6

Re: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

There is no error when I run this command. It just starts the web cache until I do a control-c
Window #1
# cd /opt/www/iredadmin/
[iredadmin]# python3 iredadmin.py
http://0.0.0.0:8080/

7

Re: iredadmin dashboard no longer works after upgrade to 1.2 from 1.0

Bin, I found this thread and this was my issue as well.
https://forum.iredmail.org/topic17481-u … ailed.html

Once I installed uwsgi-plugin-python36 the dashboard now works.

We can close this issue