1

Topic: After upgrade to iRedAdmin-Pro-LDAP-5.3 new version is still available

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

Dear all,

i upgraded iRedMail from 1.6.0 to 1.6.1 and as described in the upgrade tutorial i tried to upgrade iredadmin-pro ...

# bash upgrade_iredadmin.sh

* Detected Linux/BSD distribution: DEBIAN
* HTTP server root: /opt/www
* Found iRedAdmin directory: /opt/www/iredadmin, symbol link of iRedAdmin-Pro-LDAP-5.3
* Found iRedAdmin config file: /opt/www/iredadmin/settings.py
* Copying new version to /opt/www/iRedAdmin-Pro-LDAP-5.3
* Copy /opt/www/iredadmin/settings.py.
cp: '/opt/www/iredadmin/settings.py' and '/opt/www/iRedAdmin-Pro-LDAP-5.3/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-Pro-LDAP-5.3
* Enable mlmmj integration.
* Restarting service: mlmmjadmin.
* Check and install required packages.
Install package(s): uwsgi-core uwsgi-plugin-python3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
uwsgi-core is already the newest version (2.0.18-1).
uwsgi-plugin-python3 is already the newest version (2.0.18-1).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
* 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.
* Enable service: iredadmin
Created symlink /etc/systemd/system/multi-user.target.wants/iredadmin.service -> /lib/systemd/system/iredadmin.service.
* Upgrading completed.

It seemed to work, but entering the iredadmin-website i'll get "New version of iRedAdmin-Pro, 5.3, is now available for upgrading". I tried to restart the service, installed iredadmin-update again and rebooted the server, but the message is still there.

By the way - would you advice to upgrade the python packages with a command like ...

 pip list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print)' | cut -d' ' -f1 | xargs -n1 pip install -U 

... or will i need even more troubleshooting afterwards? yikes

Thanks for help!

----

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

2

Re: After upgrade to iRedAdmin-Pro-LDAP-5.3 new version is still available

This is my stupid mistake, forgot to update version numbers.
Please re-request download link and upgrade again.

3

Re: After upgrade to iRedAdmin-Pro-LDAP-5.3 new version is still available

ZhangHuangbin wrote:

This is my stupid mistake, forgot to update version numbers.
Please re-request download link and upgrade again.

Thanks and things happen all the time smile

Any advice on the pip updates?

Best regards

jobu

4

Re: After upgrade to iRedAdmin-Pro-LDAP-5.3 new version is still available

jobu wrote:

Any advice on the pip updates?

It's not clear what python modules will be updated in your sample command, so no comment here.

iRedMail installs web.py and uwsgi, others might be just dependent modules, or installed by someone else on purpose.

5

Re: After upgrade to iRedAdmin-Pro-LDAP-5.3 new version is still available

It's not clear what python modules will be updated in your sample command, so no comment here.

iRedMail installs web.py and uwsgi, others might be just dependent modules, or installed by someone else on purpose.

I didn't install anything myself by knowlegde, so it seems for me part of the iredmail-installation. I was curios myself, as i saw the message above while upgrading iredadmin ...

uwsgi-plugin-python3 is already the newest version (2.0.18-1).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

The complete list of modules/packages ...

# pip list -o
Package                       Version   Latest    Type 
----------------------------- --------- --------- -----
asn1crypto                    0.24.0    1.5.1     wheel
backports.functools-lru-cache 1.6.1     1.6.4     wheel
bcrypt                        3.1.6     3.1.7     wheel
certifi                       2018.8.24 2021.10.8 wheel
chardet                       3.0.4     4.0.0     wheel
cheroot                       8.4.5     8.6.0     wheel
configparser                  3.5.0b2   4.0.2     wheel
cryptography                  2.6.1     3.3.2     wheel
dnspython                     1.16.0    1.16.0    wheel
entrypoints                   0.3       0.3       wheel
enum34                        1.1.6     1.1.10    wheel
idna                          2.6       2.10      wheel
ipaddress                     1.0.17    1.0.23    wheel
jaraco.functools              2.0       2.0       wheel
Jinja2                        2.10      2.11.3    wheel
keyring                       17.1.1    18.0.1    wheel
keyrings.alt                  3.1.1     3.2.0     wheel
MarkupSafe                    1.1.0     1.1.1     wheel
more-itertools                5.0.0     5.0.0     wheel
mysqlclient                   1.3.10    1.4.6     sdist
netifaces                     0.10.4    0.11.0    wheel
pip                           18.1      20.3.4    wheel
pyasn1                        0.4.2     0.4.8     wheel
pyasn1-modules                0.2.1     0.2.8     wheel
pycrypto                      2.6.1     2.6.1     sdist
pycurl                        7.43.0.2  7.43.0.5  sdist
PyGObject                     3.30.4    3.36.1    sdist
PyMySQL                       0.9.3     1.0.0     sdist
pyOpenSSL                     19.0.0    21.0.0    wheel
python-ldap                   3.1.0     3.3.1     sdist
pyxdg                         0.25      0.28      wheel
requests                      2.21.0    2.27.1    wheel
SecretStorage                 2.3.1     2.3.1     sdist
selectors2                    2.0.2     2.0.2     wheel
setuptools                    40.8.0    44.1.1    wheel
six                           1.12.0    1.16.0    wheel
urllib3                       1.24.1    1.26.12   wheel
web.py                        0.51      0.60      sdist
wheel                         0.32.3    0.37.1    wheel

Since i'm going to update my server to Debian 11 soon, it might be okay to wait with it ...