1 (edited by jan.lex 2017-08-21 00:21:19)

Topic: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 9.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
New installed Dabian and iRedMail.
https://bitbucket.org/zhb/iredmail/down … .7.tar.bz2
====

I not can install iRedAdmin-Pro-MySQL-1.9.0.

My problem:
root@hermes:~/iRedAdmin-Pro-MySQL-1.9.0/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit.

----

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

2

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

On Debian, iRedAdmin-Pro upgrade script expects directory /opt/www/iredadmin to be a symbol link to /opt/www/iRedAdmin-Pro-xxx.

3

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

ZhangHuangbin wrote:

On Debian, iRedAdmin-Pro upgrade script expects directory /opt/www/iredadmin to be a symbol link to /opt/www/iRedAdmin-Pro-xxx.

This not working for me...

root@hermes:~# tar xjf /root/iRedAdmin-Pro-MySQL-1.9.0.tar.bz2 -C /opt/www/
root@hermes:~# cd /opt/www/
root@hermes:/opt/www# chown -R iredadmin:iredadmin iRedAdmin-Pro-MySQL-1.9.0
root@hermes:/opt/www# chmod -R 0555 iRedAdmin-Pro-MySQL-1.9.0
root@hermes:/opt/www# ln -s -f /opt/www/iRedAdmin-Pro-MySQL-1.9.0 -T iredadmin

root@hermes:/opt/www# cd iRedAdmin-Pro-MySQL-1.9.0/tools/
root@hermes:/opt/www/iRedAdmin-Pro-MySQL-1.9.0/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit.

root@hermes:/opt/www/iRedAdmin-Pro-MySQL-1.9.0/tools# cd ..
root@hermes:/opt/www/iRedAdmin-Pro-MySQL-1.9.0# cd ..
root@hermes:/opt/www# cd iredadmin/tools/
root@hermes:/opt/www/iredadmin/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit.

4

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

Where's your existing iRedAdmin (open source edition or iRedAdmin-Pro) directory?

5

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

ZhangHuangbin wrote:

Where's your existing iRedAdmin (open source edition or iRedAdmin-Pro) directory?

Default paths:
Directory: /opt/www/iRedAdmin-0.8
Symbol link: /opt/www/iredadmin

New:
Directory: /opt/www/iRedAdmin-Pro-MySQL-1.9.0
Symbol link: /opt/www/iredadmin

6

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

Could you please show us output of command below:

ls -dl /opt/www/i*

7

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

ZhangHuangbin wrote:

Could you please show us output of command below:

ls -dl /opt/www/i*

root@hermes:/opt/www#  ls -dl /opt/www/i*
lrwxrwxrwx  1 root      root        34 Aug 22 07:20 /opt/www/iredadmin -> /opt/www/iRedAdmin-Pro-MySQL-1.9.0
dr-xr-xr-x 10 iredadmin iredadmin 4096 Aug 20 13:01 /opt/www/iRedAdmin-0.8
dr-xr-xr-x  9 iredadmin iredadmin 4096 Aug 14 18:05 /opt/www/iRedAdmin-Pro-MySQL-1.9.0

8

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

jan.lex wrote:

lrwxrwxrwx  1 root      root        34 Aug 22 07:20 /opt/www/iredadmin -> /opt/www/iRedAdmin-Pro-MySQL-1.9.0

It's now linked to iRedAdmin-Pro-MySQL-1.9.0. What's the issue now?

9 (edited by jan.lex 2017-08-23 22:49:19)

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

ZhangHuangbin wrote:
jan.lex wrote:

lrwxrwxrwx  1 root      root        34 Aug 22 07:20 /opt/www/iredadmin -> /opt/www/iRedAdmin-Pro-MySQL-1.9.0

It's now linked to iRedAdmin-Pro-MySQL-1.9.0. What's the issue now?

I upgrading iRedAdmin open source edition on iRedAdmin.
http://iredmail.org/docs/migrate.or.upg … admin.html

root@hermes: cd /opt/www/iredadmin/tools/
root@hermes:/opt/www/iredadmin/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit.

10

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

jan.lex wrote:

root@hermes: cd /opt/www/iredadmin/tools/
root@hermes:/opt/www/iredadmin/tools# bash upgrade_iredadmin.sh

Please extract iRedAdmin-Pro to a different directory, for example, /root/iRedAdmin-Pro-MySQL-1.9.0, then:

cd /root/iRedAdmin-Pro-MySQL-1.9.0/tools/
bash upgrade_iredadmin.sh

11

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

ZhangHuangbin wrote:
jan.lex wrote:

root@hermes: cd /opt/www/iredadmin/tools/
root@hermes:/opt/www/iredadmin/tools# bash upgrade_iredadmin.sh

Please extract iRedAdmin-Pro to a different directory, for example, /root/iRedAdmin-Pro-MySQL-1.9.0, then:

cd /root/iRedAdmin-Pro-MySQL-1.9.0/tools/
bash upgrade_iredadmin.sh

This not working for me...

root@hermes:/home# cd /root/iRedAdmin-Pro-MySQL-1.9.0/tools/
root@hermes:~/iRedAdmin-Pro-MySQL-1.9.0/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit.
root@hermes:~/iRedAdmin-Pro-MySQL-1.9.0/tools#

12

Re: iRedAdmin-Pro-MySQL-1.9.0 - Upgrade ERROR

jan.lex wrote:
ZhangHuangbin wrote:
jan.lex wrote:

root@hermes: cd /opt/www/iredadmin/tools/
root@hermes:/opt/www/iredadmin/tools# bash upgrade_iredadmin.sh

Please extract iRedAdmin-Pro to a different directory, for example, /root/iRedAdmin-Pro-MySQL-1.9.0, then:

cd /root/iRedAdmin-Pro-MySQL-1.9.0/tools/
bash upgrade_iredadmin.sh

This not working for me...

root@hermes:/home# cd /root/iRedAdmin-Pro-MySQL-1.9.0/tools/
root@hermes:~/iRedAdmin-Pro-MySQL-1.9.0/tools# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: DEBIAN
<<< ERROR >>> Directory is not a symbol link created by iRedMail. Exit.
root@hermes:~/iRedAdmin-Pro-MySQL-1.9.0/tools#


Installation new version iRedAdmin-Pro-SQL-2.8.0 is successfully.
Thys is all ok.

Thank you very much.