1

Topic: Install problem iredmail

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ldap
- Linux/BSD distribution name and version: debian 7 64
- Related log if you're reporting an issue:
====

Hi I am having a problem installing iredmail on debian wheezy the terminal output is below. The original install was a minimum install without mysql etc. Thanks for any help that can be given.


The following NEW packages will be installed:
  mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2175 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 47631 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.38-0+wheezy1_amd64.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.38-0+wheezy1_all.deb) ...
Processing triggers for man-db ...
Setting up mysql-server-5.5 (5.5.38-0+wheezy1) ...
[ ok ] Stopping MySQL database server: mysqld.
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
< ERROR > Installation failed, please check the terminal output.

----

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

2

Re: Install problem iredmail

Please show me /etc/apt/sources.list.

3

Re: Install problem iredmail

Thankyou
my apt sources are below.

deb http://ftp.us.debian.org/debian stable main contrib non-free

deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free

4

Re: Install problem iredmail

Does it work if you replace 'stable' by 'wheezy' in the first 'deb' line?

5

Re: Install problem iredmail

I changed from stable to wheezy still with same problem. mysql will not start which i think is causing the problem with the iredmail install. i see this error trying to start mysql manually 

140925 23:26:31 InnoDB: Fatal error: cannot initialize AIO sub-system
140925 23:26:31 [ERROR] Plugin 'InnoDB' init function returned error.
140925 23:26:31 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140925 23:26:31 [ERROR] Unknown/unsupported storage engine: InnoDB
140925 23:26:31 [ERROR] Aborting

6

Re: Install problem iredmail

InnoDB should be one of built-in storage engine, not sure why it failed.
Do you have mysql packages installed before installing iRedMail? You can check it with 'dpkg -l |grep 'mysql''.

7

Re: Install problem iredmail

thanks for your help . no mysql was not installed, to confirm  i have just reinstalled debian 7 32 on the server and checked for mysql before running the iredmail install again .the install fails with the same error as i have listed. my previous server running debian 6 installed without issue.

8

Re: Install problem iredmail

not sure if this will have any other effect on the installation but I have added the line "innodb_use_native_aio = 0" in my.cnf which allows mysql to start , and i was able to complete the installation.

9

Re: Install problem iredmail

*) Is this a 32bit Debian 7? did you try it with amd64 edition?
*) what's the value in file /proc/sys/fs/aio-max-nr?
*) Are you installing iRedMail in a virtual machine? e.g. VMware, Xen, OpenVZ.

10

Re: Install problem iredmail

hi
Thanks ZhangHuangbin,

*) Is this a 32bit Debian 7? did you try it with amd64 edition?
       
yes i tried the first install on debian 7 64 with the same result.

*) what's the value in file /proc/sys/fs/aio-max-nr?
       
65536

*) Are you installing iRedMail in a virtual machine? e.g. VMware, Xen, OpenVZ.
       
yes I have installed on vps running openvz. my previous install was also on openvz vps but with debian 6 32 which I had no issue with the install.

11

Re: Install problem iredmail

I did a quick search with Google, looks like it's a MySQL deb package issue, but not all users experienced this issue.
I have no idea how we can properly fix it.