1

Topic: Issues with the Installation process

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Ubuntu Server 18.04
- 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.
====

I am having some trouble with the installation of iRedMail, the installation process goes all the way through and even displays the login credentials at the end but when I try to navigate to those login pages they do not work, I know I have properly setup everything related to my domain and DNS so that is not the issue, I also noticed errors in the installation itself especially pertaining to it not being able to connect to the MySQL database. I also noticed that when I go into sites-available for Nginx that there are no redirects created for roundcube and iRedAdmin like there should be. Not sure if this is a permission related issue as I am launching the install script under sudo.


********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Generate self-signed SSL cert (2048 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
[ INFO ] Configure Nginx web server.
cp: cannot create regular file '/etc/postfix/aliases': No such file or directory
/home/mike/iRedMail-0.9.8/conf/core: line 446: /etc/postfix/aliases: No such file or directory
[ INFO ] Configure PHP.
[ INFO ] Configure MySQL database server.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail\/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
postconf: fatal: open /etc/postfix/main.cf.tmp: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
cp: cannot create regular file '/etc/postfix/main.cf': No such file or directory
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
touch: cannot touch '/etc/postfix/helo_access.pcre': No such file or directory
touch: cannot touch '/etc/postfix/header_checks': No such file or directory
touch: cannot touch '/etc/postfix/body_checks.pcre': No such file or directory
touch: cannot touch '/etc/postfix/sender_access.pcre': No such file or directory
chown: cannot access '/etc/postfix/helo_access.pcre': No such file or directory
chown: cannot access '/etc/postfix/header_checks': No such file or directory
chown: cannot access '/etc/postfix/body_checks.pcre': No such file or directory
chown: cannot access '/etc/postfix/sender_access.pcre': No such file or directory
chmod: cannot access '/etc/postfix/helo_access.pcre': No such file or directory
chmod: cannot access '/etc/postfix/header_checks': No such file or directory
chmod: cannot access '/etc/postfix/body_checks.pcre': No such file or directory
chmod: cannot access '/etc/postfix/sender_access.pcre': No such file or directory
Can't open /etc/postfix/main.cf: No such file or directory.
Can't open /etc/postfix/main.cf: No such file or directory.
postconf: fatal: open /etc/postfix/main.cf: No such file or directory
Can't open /etc/postfix/master.cf: No such file or directory.
/home/mike/iRedMail-0.9.8/functions/postfix.sh: line 137: /etc/postfix/master.cf: No such file or directory
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
cp: cannot create regular file '/etc/postfix/helo_access.pcre': No such file or directory
cp: cannot create regular file '/etc/postfix/command_filter.pcre': No such file or directory
cp: cannot create regular file '/etc/postfix/aliases': No such file or directory
/home/mike/iRedMail-0.9.8/conf/core: line 446: /etc/postfix/aliases: No such file or directory
cp: cannot create regular file '/etc/postfix/aliases': No such file or directory
/home/mike/iRedMail-0.9.8/conf/core: line 446: /etc/postfix/aliases: No such file or directory
cp: cannot create regular file '/etc/postfix/aliases': No such file or directory
/home/mike/iRedMail-0.9.8/conf/core: line 446: /etc/postfix/aliases: No such file or directory
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
Can't open /etc/postfix/master.cf: No such file or directory.
postconf: warning: open /etc/postfix/master.cf: No such file or directory
postconf: warning: open /etc/postfix/master.cf: No such file or directory
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
[ INFO ] Configure mlmmj (mailing list manager).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[ INFO ] Configure iRedAdmin (official web-based admin panel).
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ln: failed to create symbolic link '/etc/uwsgi/apps-enabled/iredadmin.ini': File exists
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure Roundcube webmail.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

*************************************************************************
* iRedMail-0.9.8 installation and configuration complete.
*************************************************************************

< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/default/iptables, with SSHD port: 22. [Y|n]y            [ INFO ] Copy firewall sample rules: /etc/default/iptables.                     < Question > Restart firewall now (with SSHD port 22)? [y|N]y
[ INFO ] Restarting firewall ...
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

----

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