omega8cc / boa

Barracuda Octopus Aegir 5.4.0
https://omega8.cc/compare
394 stars 75 forks source link

Install fresh BOA 2.3.8 on Debian Wheezy throws MariaDB error #548

Closed alexxo closed 9 years ago

alexxo commented 9 years ago

During fresh installation on a new debian wheezy system the barracuda script throws following error:

Barracuda [Fri Dec 26 05:18:35 CET 2014] ==> ALRT! MariaDB server not running properly! Barracuda [Fri Dec 26 05:18:35 CET 2014] ==> EXIT: We can't proceed with installation and will exit now Barracuda [Fri Dec 26 05:18:35 CET 2014] ==> HINT: Please check /var/backups/barracuda-install-141226-0501.log for more information, Barracuda [Fri Dec 26 05:18:35 CET 2014] ==> HINT: (re)start MariaDB server and then run installer again Barracuda [Fri Dec 26 05:18:35 CET 2014] ==> Bye Octopus [Fr 26. Dez 05:18:36 CET 2014] ==> ALRT! MariaDB server not running properly! Octopus [Fr 26. Dez 05:18:36 CET 2014] ==> EXIT: We can't proceed and will exit now Octopus [Fr 26. Dez 05:18:36 CET 2014] ==> HINT: Please (re)start MariaDB server and then run installer again

From the install.log: The first time the MariaDB server is restarted it works but the second it does not

Setting up mariadb-client-core-5.5 (5.5.41+maria-1~wheezy) ... Setting up mariadb-client-5.5 (5.5.41+maria-1~wheezy) ... Setting up mariadb-server-core-5.5 (5.5.41+maria-1~wheezy) ... Setting up mariadb-server-5.5 (5.5.41+maria-1~wheezy) ... [ ok ] Stopping MariaDB database server: mysqld. [ ok ] Starting MariaDB database server: mysqld .. [info] Checking for corrupt, not cleanly closed and upgrade needing tables.. . . . Stopping MariaDB database server: mysqld. Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!

The .barracuda.cnf is the default created by the BOA script. Installation run with following command: $boa in-stable public my.server.com my-mail@my-domai.com o1 mini my-new-relic-ID

Any hints? Thank you

omega8cc commented 9 years ago

Please check /var/log/syslog and also barracuda verbose install log in /var/backups/ for hints.

alexxo commented 9 years ago

From the install log in /var/backups/ I see that the first time the MariaDB server is started it works. At the final check when the MariaDB server is restarted it does fail. Between the firs and the second PHP is installed. Could this be the reason?

Extract of install log in /var/backups/:

Setting up mariadb-client-core-5.5 (5.5.41+maria-1~wheezy) ... Setting up mariadb-client-5.5 (5.5.41+maria-1~wheezy) ... Setting up mariadb-server-core-5.5 (5.5.41+maria-1~wheezy) ... Setting up mariadb-server-5.5 (5.5.41+maria-1~wheezy) ... [ ok ] Stopping MariaDB database server: mysqld. [ ok ] Starting MariaDB database server: mysqld .. [info] Checking for corrupt, not cleanly closed and upgrade needing tables.. . . . Stopping MariaDB database server: mysqld. Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!

syslog does not have any entry related to MariaDB (or maybe I just do not know what to look for). The MariaDB log files /var/log/mysql.err and /var/log/mysql.log are empty.

omega8cc commented 9 years ago

Please run:

$ tail -f /var/log/syslog | grep mysql

and while it is watching the log, run in another terminal window:

$ service mysql restart

Then post the results.

omega8cc commented 9 years ago

Also, please follow the guidelines: https://github.com/omega8cc/boa/blob/master/README.txt#L215

alexxo commented 9 years ago

"run $ tail -f /var/log/syslog | grep mysql and while it is watching the log, run in another terminal window: $ service mysql restart

Then post the results."

=> No results. => Manual verification of the /var/log/syslog file confirms there are no any mysql entries

"Follow guidelines" Environment: Virtual Server Linux from http://strato.de (German hosting provider) In case it may be relevant (?) the default server language was German

/root/.barracuda.cnf => https://gist.github.com/alexxo/d4d35658847ce8cc8145#file-barracuda-cnf /var/log/barracuda_log.txt => File does not exist /root/.USER.octopus.cnf => File does not exist /data/disk/USER/log/octopus_log.txt => File does not exist

omega8cc commented 9 years ago

No idea then. I would suggest to add _FULL_FORCE_REINSTALL=YES in /root/.barracuda.cnf and run barracuda up-stable. Please watch for any related errors in the verbose upgrade log in /var/backups/ while the upgrade will run.

omega8cc commented 9 years ago

Feel free to reopen if there will be any further action required.

alexxo commented 9 years ago

Running /root/.barracuda.cnf with: _FULL_FORCE_REINSTALL=YES _DEBUG_MODE=YES

Gives the same error: ALRT! MariaDB server not running properly! EXIT: We can't proceed with installation and will exit now ... Please (re)start MariaDB server and then run installer again

Watching the verbose log : tail -f /var/backups/barracuda-install-150104-1734.log | grep mysql

https://gist.github.com/alexxo/25d9042dc23cc42bfc28#file-barracuda-install-150104-1734-log

omega8cc commented 9 years ago

Something is clearly not right with this system. Are you using clean, minimal OS with no services installed, so also w/o mysql running?

mariadb-common : Depends: mysql-common but it is not going to be installed

This shouldn't happen, unless packages on this system are seriously broken.

I would suggest to re-image the system and start with clean install.