1

Topic: Update failed

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

Thank you Zhang for a new version. I found some problems with it, so I post here so we can resolve this together.

Updating from 4.5 -> 4.6
I think that the python3-simplejson should be python36-simplejson:

No package python3-simplejson available.

The installer made an error because of missing library:

* Clean up.
Traceback (most recent call last):
  File "delete_sessions.py", line 16, in <module>
    from tools import ira_tool_lib
  File "/opt/www/iRedAdmin-Pro-LDAP-4.6/tools/../tools/ira_tool_lib.py", line 21, in <module>
    from libs import iredutils
  File "/opt/www/iRedAdmin-Pro-LDAP-4.6/tools/../libs/iredutils.py", line 17, in <module>
    import simplejson as json
ModuleNotFoundError: No module named 'simplejson'
* iRedAdmin has been successfully upgraded.

When starting service, this file is not existing, I had to do "ln -s rhel7.ini rhel.ini"

 uwsgi[13079]: realpath() of /opt/www/iredadmin/rc_scripts/uwsgi/rhel.ini failed: No such file or directory [core/utils.c line 3654]

But even after all the fixes I get "502 Bad Gateway" from Nginx, and nothing special in the error log of iRedAdmin.

I can debug further, but have no idea where to start with iRedAdmin-Pro.

Thank you for your help!
Tom

----

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

2

Re: Update failed

Sorry about this trouble.

slovenka wrote:

I think that the python3-simplejson should be python36-simplejson:

Fixed.

slovenka wrote:

When starting service, this file is not existing, I had to do "ln -s rhel7.ini rhel.ini"

Fixed.

slovenka wrote:

But even after all the fixes I get "502 Bad Gateway" from Nginx, and nothing special in the error log of iRedAdmin.

Try to run iRedAdmin-Pro from command line manually, then reproduce the error with web browser:

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

It will listen on http://0.0.0.0:8080 by default, access it with web browser and try again.

3

Re: Update failed

Oct 28 11:16:36 mail uwsgi: open("/usr/lib64/uwsgi/python36_plugin.so"): No such file or directory [core/utils.c line 3724]
Oct 28 11:16:36 mail uwsgi: !!! UNABLE to load uWSGI plugin: /usr/lib64/uwsgi/python36_plugin.so: cannot open shared object file: No such file or directory !!!

Needs:

uwsgi-plugin-python36

And it works now! Thank you for your assistance!

Tom

4

Re: Update failed

slovenka wrote:

Needs:

uwsgi-plugin-python36

Right. The upgrade script checks `/usr/bin/uwsgi`, but didn't check this plugin.
Fixed moment ago.