1 (edited by blangerak 2013-09-05 04:39:28)

Topic: problems with installation

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

i have set up a fresh installation of debian 7. installed only ssh server.
now i'm trying to install iredmail and getting a error during installation.
tried to install manually, and later started iredmail.sh again with errors...
log:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.5 (5.5.31+dfsg-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.
root@cloud:/tmp/iRedMail-0.8.5# ^C
root@cloud:/tmp/iRedMail-0.8.5# apt-get install mysql-server-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server-5.5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) ...
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.5 (5.5.31+dfsg-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.
root@cloud:/tmp/iRedMail-0.8.5#
[ 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)
root@cloud:/tmp/iRedMail-0.8.5#

don't know whats happening?

----

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

2

Re: problems with installation

*) Show us error log while you executing "bash iRedMail.sh".
*) Does it work if you remove package "mysql-server" first?

3 (edited by etutos 2014-01-09 06:03:11)

Re: problems with installation

======== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7 last release
====

Same problem : http://pastebin.com/WCSqeVnm

root@sarabi:~/iRedMail-0.8.6# tail /var/log/daemon.log 
Jan  8 16:37:12 sarabi mysqld: 140108 16:37:12 [ERROR] Aborting
Jan  8 16:37:12 sarabi mysqld: 
Jan  8 16:37:12 sarabi mysqld: 140108 16:37:12 [Note] /usr/sbin/mysqld: Shutdown complete
Jan  8 16:37:12 sarabi mysqld: 
Jan  8 16:37:12 sarabi mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended
Jan  8 16:37:23 sarabi /etc/init.d/mysql[17407]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jan  8 16:37:23 sarabi /etc/init.d/mysql[17407]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jan  8 16:37:23 sarabi /etc/init.d/mysql[17407]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jan  8 16:37:23 sarabi /etc/init.d/mysql[17407]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jan  8 16:37:23 sarabi /etc/init.d/mysql[17407]: 

To solve this problem, it's possible to use MariaDB with iRedMail ?

4

Re: problems with installation

etutos wrote:

To solve this problem, it's possible to use MariaDB with iRedMail ?

iRedMail doesn't support MariaDB yet.

Did you use a clean Debian server with official apt repositories?

5 (edited by etutos 2014-01-09 17:36:32)

Re: problems with installation

ZhangHuangbin wrote:

iRedMail doesn't support MariaDB yet.

I know but the installation of MariaDB is ok for me. I think integration of MariaDB is not complicated because is a fork of MySQL.

ZhangHuangbin wrote:

Did you use a clean Debian server with official apt repositories?

Yes, Debian is fresh when I test, I reinstall it at every failure of installation of iRedMail.
I use this script and I launch iRedMail's installation after the reboot.

The problem with mysql-server-5.5 seems known on the Internet but no solution is proposed.