1

Topic: No access to iRedadmin anymore

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,
I do not have anymore access to the user management (aka iRedadmin)
I have tried to reinstall it:

root@dd:/home/user/iRedAdmin-0.8/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-0.8
* Found iRedAdmin config file: /opt/www/iredadmin/settings.py
* Copying new version to /opt/www/iRedAdmin-0.8
cp: « /opt/www/iredadmin/settings.py » et « /opt/www/iRedAdmin-0.8/settings.py » identifient le même fichier
* Removing old symbol link /opt/www/iredadmin
* Creating symbol link /opt/www/iredadmin to /opt/www/iRedAdmin-0.8
* Delete all existing sessions, admins are forced to re-login to iRedAdmin.
* Check and install dependent Python modules:
  + [required] json or simplejson
  + [required] dnspython
  + [required] pycurl
  + [optional] BeautifulSoup
  + [optional] lxml
* Check SQL tables, and add missed ones - if there's any
* iRedAdmin has been successfully upgraded.
* Restarting uwsgi service to use new iRedAdmin release ...
* 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/

404 not found.

No access to the URL with SSL.
No access to the URL with the private IP.

root@dd:/opt/www# ls -l
total 16
lrwxrwxrwx  1 root      root        13 déc.   3 11:31 iredadmin -> iRedAdmin-0.8
dr-xr-xr-x  9 iredadmin iredadmin 4096 janv. 22  2017 iRedAdmin-0.6.3
dr-xr-xr-x 10 iredadmin iredadmin 4096 janv. 24  2017 iRedAdmin-0.7
dr-xr-xr-x 10 iredadmin iredadmin 4096 déc.   3 11:31 iRedAdmin-0.8
lrwxrwxrwx  1 root      root        28 janv. 21  2017 roundcubemail -> /opt/www/roundcubemail-1.2.0
drwxr-xr-x 12 root      root      4096 août  17 11:10 roundcubemail-1.2.0

Thx

----

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

2

Re: No access to iRedadmin anymore

Did you setup LetsEncrypt before this issue?

3

Re: No access to iRedadmin anymore

No I do not use LetsEncrypt, I bought the SSL certificate I am using.
Thx

4

Re: No access to iRedadmin anymore

The output of upgrade script looks fine.

Did you have iRedAdmin related settings in Nginx?

5 (edited by Thierry 2017-12-05 16:50:42)

Re: No access to iRedadmin anymore

# Web applications
include /etc/nginx/templates/iredadmin.tmpl;
-rw-r--r-- 1 root root 678 janv22 2017 iredadmin.tmpl
Error log:

/var/www/iredmail/index.php is not found (2: No such file or directory)
cd /var/www
/var/www# ls
html  index.html robots.txt

No iredmail folder
But I do have an iredmail folder at: /opt/www

6

Re: No access to iRedadmin anymore

Thierry wrote:

/var/www/iredmail/index.php is not found (2: No such file or directory)

The URL is https://<server>/iredadmin/ , not 'iredmail'.

7

Re: No access to iRedadmin anymore

Not Found

The requested URL /iredadmin/ was not found on this server.

8

Re: No access to iRedadmin anymore

*) You use https or http?
*) I'm afraid that we need to check Nginx config files to figure it out.

9

Re: No access to iRedadmin anymore

ZhangHuangbin wrote:

*) You use https or http?
*) I'm afraid that we need to check Nginx config files to figure it out.

https

What file do you want ?

Thx

10

Re: No access to iRedadmin anymore

file: /etc/nginx/templates/iredadmin.tmpl

Files: # Settings for iRedAdmin.

# static files under /iredadmin/static
location ~ ^/iredadmin/static/(.*)\.(png|jpg|gif|css|js) {
    alias /opt/www/iredadmin/static/$1.$2;
}

# Python scripts
location ~ ^/iredadmin(.*) {
    rewrite ^/iredadmin(/.*)$ $1 break;

    include uwsgi_params;
    uwsgi_pass unix:/var/run/uwsgi_iredadmin.socket;
    uwsgi_param UWSGI_CHDIR /opt/www/iredadmin;
    uwsgi_param UWSGI_SCRIPT iredadmin;
    uwsgi_param SCRIPT_NAME /iredadmin;

    # Access control
    #allow 127.0.0.1;
    #allow 192.168.1.10;
    #allow 192.168.0.0/24;
    allow all;
}

# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin {
    rewrite ^ /iredadmin/;
}

11

Re: No access to iRedadmin anymore

Do you access iredadmin via https:// or http://?

12 (edited by Thierry 2017-12-10 01:49:18)

Re: No access to iRedadmin anymore

Working ...
I have reinstall iredadmin.

Thx for your support again.