1 (edited by AndrzejL 2022-10-11 15:22:41)

Topic: [SOLVED] Update of iRedAdmin to 1.8.1 fails

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.6.0
- Deployed with iRedMail Easy or the downloadable installer?
Downloadable installer
- Linux/BSD distribution name and version:
Debian Bullseye 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
MySQL
- Web server (Apache or Nginx):
Nginx
- Manage mail accounts with iRedAdmin-Pro?
No - as far as I know its a regular iRedAdmin. Not pro...
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

RedMail    1.6.0
iRedAdmin    1.8 (MySQL)

New version of iRedAdmin, 1.8.1, is now available for upgrading. Upgrade tutorial.
https://docs.iredmail.org/migrate.or.up … admin.html

andrzejl@andrzejl:~$ su -
Password:
root@andrzejl:~# cd
root@andrzejl:~# pwd
/root
root@andrzejl:~# wget -c [url]https://github.com/iredmail/iRedAdmin/archive/refs/tags/1.8.1.tar.gz[/url]
--2022-10-10 20:03:37--  [url]https://github.com/iredmail/iRedAdmin/archive/refs/tags/1.8.1.tar.gz[/url]
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: [url]https://codeload.github.com/iredmail/iRedAdmin/tar.gz/refs/tags/1.8.1[/url] [following]
--2022-10-10 20:03:37--  [url]https://codeload.github.com/iredmail/iRedAdmin/tar.gz/refs/tags/1.8.1[/url]
Resolving codeload.github.com (codeload.github.com)... 140.82.121.9
Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘1.8.1.tar.gz’

1.8.1.tar.gz                      [     <=>                                          ]   1.76M  2.12MB/s    in 0.8s

2022-10-10 20:03:39 (2.12 MB/s) - ‘1.8.1.tar.gz’ saved [1845042]

root@andrzejl:~# mv ./1.8.1.tar.gz ./iRedAdmin-1.8.1.tar.gz
root@andrzejl:~# tar zxf iRedAdmin-1.8.1.tar.gz
root@andrzejl:~# cd iRedAdmin-1.8.1/tools/
root@andrzejl:~/iRedAdmin-1.8.1/tools# bash upgrade_iredadmin.sh
<<< ERROR >>> No mlmmjadmin installation found (/opt/mlmmjadmin).
<<< ERROR >>> Please follow iRedMail upgrade tutorials to the latest
<<< ERROR >>> stable release first, then come back to upgrade iRedAdmin-Pro.
<<< ERROR >>> mlmmj and mlmmjadmin was first introduced in iRedMail-0.9.8.
<<< ERROR >>> [url]https://docs.iredmail.org/iredmail.releases.html[/url]

Followed the upgrade tutorial. No workee.

Kindest regards.

Andrzej

----

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

2

Re: [SOLVED] Update of iRedAdmin to 1.8.1 fails

AndrzejL wrote:

<<< ERROR >>> No mlmmjadmin installation found (/opt/mlmmjadmin).

Please upgrade iRedMail server to the latest 1.6.2 first: https://docs.iredmail.org/iredmail.releases.html

mlmmjadmin was introduced in iRedMail-0.9.8 (released on Apr 3, 2018), which means your server is up to date or wasn't fully upgraded.

3

Re: [SOLVED] Update of iRedAdmin to 1.8.1 fails

Hahaha... I was trying to upgrade the iRedAdmin on a wrong VM... DUMBASS ;-D

root@mail:~# cd
root@mail:~# pwd
/root
root@mail:~# wget -c https://github.com/iredmail/iRedAdmin/archive/refs/tags/1.8.1.tar.gz
--2022-10-11 08:19:44--  https://github.com/iredmail/iRedAdmin/archive/refs/tags/1.8.1.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/iredmail/iRedAdmin/tar.gz/refs/tags/1.8.1 [following]
--2022-10-11 08:19:44--  https://codeload.github.com/iredmail/iRedAdmin/tar.gz/refs/tags/1.8.1
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘1.8.1.tar.gz’

1.8.1.tar.gz                      [    <=>                                           ]   1.76M  2.46MB/s    in 0.7s

2022-10-11 08:19:46 (2.46 MB/s) - ‘1.8.1.tar.gz’ saved [1845042]

root@mail:~# mv ./1.8.1.tar.gz ./iRedAdmin-1.8.1.tar.gz
root@mail:~# tar zxf iRedAdmin-1.8.1.tar.gz
root@mail:~# cd iRedAdmin-1.8.1/tools/
root@mail:~/iRedAdmin-1.8.1/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
* HTTP server root: /opt/www
* Found iRedAdmin directory: /opt/www/iredadmin, symbol link of iRedAdmin-1.8
* Found iRedAdmin config file: /opt/www/iredadmin/settings.py
* Copying new version to /opt/www/iRedAdmin-1.8.1
* Copy /opt/www/iredadmin/settings.py.
* 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.8.1
* 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... Done
Reading state information... Done
uwsgi-core is already the newest version (2.0.19.1-7.1).
uwsgi-plugin-python3 is already the newest version (2.0.19.1-7.1).
0 upgraded, 0 newly installed, 0 to remove and 0 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.
<<< NOTE >>> If iRedAdmin doesn't work as expected, please post your issue in
<<< NOTE >>> our online support forum: http://www.iredmail.org/forum/
root@mail:~/iRedAdmin-1.8.1/tools#

All good and working now ;-D

Regards.

Andrzej