Closed si458 closed 11 months ago
ok i was able to fix this by adding the mysql
user to the mailcleaner
group
usermod -a -G mailcleaner mysql
Sorry but this still isn't working? While it now lets the mariadb master/slave start, it's not connecting as it's shutting down the mariadb straight away for some reason?
It seems to show the service is being deactivated?
root@mailcleaner:/home/simon# systemctl status mariadb@master.service
○ mariadb@master.service - MariaDB 10.11.4 database server (multi-instance master)
Loaded: loaded (/lib/systemd/system/mariadb@.service; disabled; preset: enabled)
Drop-In: /usr/mailcleaner/scripts/systemd/mariadb@master.service.d
└─override.conf
/usr/mailcleaner/scripts/systemd/mariadb@.service.d
└─overrides.conf
Active: inactive (dead) since Thu 2023-11-30 22:34:09 GMT; 6min ago
Duration: 698ms
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 56174 ExecStartPre=/usr/mailcleaner/bin/dump_mysql_config.pl master (code=exited, status=0/SUCCESS)
Process: 56176 ExecStart=/usr/bin/mariadbd-safe $MYSQLD_MULTI_INSTANCE $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
Main PID: 56176 (code=exited, status=0/SUCCESS)
CPU: 568ms
Nov 30 22:34:08 mailcleaner.mefoo.com systemd[1]: Starting mariadb@master.service - MariaDB 10.11.4 database server (multi-instance master)...
Nov 30 22:34:08 mailcleaner.mefoo.com systemd[1]: Started mariadb@master.service - MariaDB 10.11.4 database server (multi-instance master).
Nov 30 22:34:08 mailcleaner.mefoo.com mariadbd-safe[56176]: 231130 22:34:08 mysqld_safe Logging to '/var/mailcleaner/log/mysql_master/mysql.log>
Nov 30 22:34:08 mailcleaner.mefoo.com mariadbd-safe[56176]: 231130 22:34:08 mysqld_safe Starting mariadbd daemon with databases from /var/mailc>
Nov 30 22:34:09 mailcleaner.mefoo.com systemd[1]: mariadb@master.service: Deactivated successfully.
root@mailcleaner:/home/simon#
for some reason the configuration script doesnt work, after you have run the install script, it gets to the 'mailcleaner base system configuration' but after running through the steps, apache2 isnt started and disabled on start up? mysql isnt started and disabled on startup? then when i start mariadb and check its databases, the is no mailcleaner or mc databases?
but i have spotted this in the logs saying permission denied