1

Topic: upgrade to iRedAdmin-Pro-SQL-5.4 makes /ireadmin inaccessible

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

root@mail:~/iRedAdmin-Pro-SQL-5.4/tools# sudo 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-SQL-5.3
* Found iRedAdmin config file: /opt/www/iredadmin/settings.py
* Copying new version to /opt/www/iRedAdmin-Pro-SQL-5.4
* 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-Pro-SQL-5.4
* 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).
The following packages were automatically installed and are no longer required:
  linux-image-5.10.0-21-amd64 linux-image-5.10.0-22-amd64
Use 'sudo apt autoremove' to remove them.
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


<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>

----

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

2

Re: upgrade to iRedAdmin-Pro-SQL-5.4 makes /ireadmin inaccessible

Sorry, my mistake - forget about .htpasswd in prev folder.
But, can you add to upgrade script check this case?

3

Re: upgrade to iRedAdmin-Pro-SQL-5.4 makes /ireadmin inaccessible

tsf0x13 wrote:

Sorry, my mistake - forget about .htpasswd in prev folder.
But, can you add to upgrade script check this case?

No plan for this, sorry.
Maybe you should place .htpasswd file in another folder which is not inside iRedAdmin-Pro?