Topic: Problems with installation
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Debian v10.0
- 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.
====
Hello,
When I install the latest version of iRedMail on my VPS. I have two problems:
1) The MySQLd service does not start. (The .sock is not even created.). I found the solution to fix this problem: https://stackoverflow.com/questions/599 … ied-failed
Except that suddenly, the installation of iRedMail is already done. And so the database side was not done correctly. I can't do this at first either because the server must be "empty"
------- ERROR ----------
Setting up mariadb-server-10.3 (1:10.3.25-0+deb10u1) ...
Created symlink /etc/systemd/system/mysql.service -> /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service -> /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service -> /lib/systemd/system/mariadb.service.
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
......
[ INFO ] Configure MariaDB database server.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[ INFO ] Configure MariaDB database server.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
[ 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)
---------------------------
2) My second problem is when I go to https://mail.mydomain.com/iredadmin/ I have an Nginx 502 Bad gateway error. I have no idea where it came from. While https:/mail.mydomain.com/mail is working fine.
-----------Log error : ---------
2020/10/31 13:57:12 [error] 164#164: *4 connect() failed (111: Connection refused) while connecting to upstream, client: My.IP.00.00, server: _, request: "GET /iredadmin/ HTTP/2.0", upstream: "uwsgi://127.0.0.1:7791", host: "mail.lizrobot.com"
-------------------------------------------
I have tried using postgresql, however still got the same error for iRedAdmin (502) and when I try to connect to Roundcube with it, there would be "a database connection error".
Thank you for your help
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.