1 (edited by marcus 2020-12-11 07:47:43)

Topic: Upgrade Error iRedAdmin v1.1

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.1
- Deployed with iRedMail Easy or the downloadable installer? downloaded bash installer
- Linux/BSD distribution name and version: CentOS 6.10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Was on iRedAdmin v1.0 and was attempting to upgrade to v1.1 as per https://docs.iredmail.org/migrate.or.up … admin.html

I can no longer access iRedAdmin via HTTP, returns a 500 Internal Server Error - here is my SSH commands and output from upgrading:

[root@IDMailnew ~]# wget https://github.com/iredmail/iRedAdmin/archive/1.1.tar.gz
[root@IDMailnew ~]# tar zxf 1.1.tar.gz
[root@IDMailnew ~]# cd iRedAdmin-1.1/tools
[root@IDMailnew tools]# bash upgrade_iredadmin.sh
awk: cmd. line:1: fatal: cannot open file `/etc/os-release' for reading (No such file or directory)
* Detected Linux/BSD distribution: RHEL
* HTTP server root: /var/www
* Found iRedAdmin directory: /var/www/iredadmin, symbol link of iRedAdmin-1.0
* Found iRedAdmin config file: /var/www/iredadmin/settings.py
* Copying new version to /var/www/iRedAdmin-1.1
* Copy /var/www/iredadmin/settings.py.
* Removing old symbol link /var/www/iredadmin
* Creating symbol link /var/www/iredadmin to /var/www/iRedAdmin-1.1
* Enable mlmmj integration.
* Restarting service: mlmmjadmin.
Stopping mlmmjadmin ...
Starting mlmmjadmin ...
[uWSGI] getting INI configuration from /opt/mlmmjadmin/rc_scripts/uwsgi/rhel.ini
* Check and install required packages.
Install package(s): python3-pymysql python3-pip python3-simplejson python3-dns python3-requests python3-jinja2
Loaded plugins: priorities, protectbase, replace
Setting up Install Process
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/extras/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/updates/mirrorlist.txt
1741 packages excluded due to repository priority protections
0 packages excluded due to repository protections
No package python3-pymysql available.
No package python3-pip available.
No package python3-simplejson available.
No package python3-dns available.
No package python3-requests available.
No package python3-jinja2 available.
Error: Nothing to do
Package installation failed, please check console output and fix it manually.
upgrade_iredadmin.sh: line 742: exist: command not found
upgrade_iredadmin.sh: line 747: /usr/bin/pip3: No such file or directory
Package installation failed, please check console output and fix it manually.
upgrade_iredadmin.sh: line 750: exist: command not found
* Check SQL tables, and add missed ones - if there's any
* Replace py2 by py3 in cron jobs.
* Clean up.
upgrade_iredadmin.sh: line 910: /usr/bin/python3: No such file or directory
* iRedAdmin has been successfully upgraded.
* Restarting httpd service.
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
* Enable service: iredadmin
Stopping iredadmin ...
Starting iredadmin ...
realpath() of /var/www/iredadmin/rc_scripts/uwsgi/rhel.ini failed: No such file or directory [core/utils.c line 3651]
Failed, please restart service manually and check its log file.
* 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/

Main issue seems to be inability to start iredadmin due to a missing file:

[root@IDMailnew etc]# service iredadmin start
Starting iredadmin ...
realpath() of /var/www/iredadmin/rc_scripts/uwsgi/rhel.ini failed: No such file or directory [core/utils.c line 3651]

This is the contents of the /var/www/iredadmin/rc_scripts/uwsgi folder:

[root@IDMailnew uwsgi]# ls
debian.ini  freebsd.ini  openbsd.ini  rhel7.ini  rhel8.ini

----

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

2

Re: Upgrade Error iRedAdmin v1.1

Did you see the error message on console?

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

Your yum repositories are all broken.