I am reinstalling Virtualmin after having a server clear out and its stuck on a particular bit with creating the MySQL configuration and has been hanging (at the time of writing) for around an hour.
Below is the part it gets stuck on:
Any help or insights greatly appreciated!
Configuration file '/etc/mysql/conf.d/mysqld_safe_syslog.cnf', does not exist on system.
Installing new config file as you requested.
Configuration file ‘/etc/init/mysql.conf’, does not exist on system.
Installing new config file as you requested.
Configuration file ‘/etc/init.d/mysql’, does not exist on system.
Installing new config file as you requested.
Configuration file `/etc/apparmor.d/usr.sbin.mysqld’, does not exist on system.
Installing new config file as you requested.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
If I interrupt it (pressing ctrl + C), I get the following message:
Configuration file `/etc/php5/mods-available/json.ini', does not exist on system.
Installing new config file as you requested.
php5_invoke: Enable module json for cli SAPI
php5_invoke: Enable module json for apache2 SAPI
.php5_invoke: Enable module json for cgi SAPI
Errors were encountered while processing:
mysql-server-5.5
mysql-server
.E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish
Once the script went through installing, I removed Mysql through apt-get (using these instructions) then reinstalled doing the same but reversed (if you get my drift).
Now on the webmin web interface, it says that MySQL isnt running but when I click to start it, it says its already running.
If I go to SSH, it says the following:
mysql -v
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
service mysql start
start: Job is already running: mysql
If I look on my.cnf, the config for sock is pointing the right place
cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
This will be passed to all mysql clients
It has been reported that passwords should be enclosed with ticks/quotes
escpecially if they contain “#” chars…
Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
Here is entries for some specific programs
The following values assume you have at least 32M ram
This was formally known as [safe_mysqld]. Both versions are currently parsed.
I made various tweaks to the server through SSH (rebuilt locales, set up SSH timeout, fixed GPG error, etc)
Updated apt-get
Installed mysql-server-5.5
I did try installing MySQL 5.6 but it didnt work so I had to re-flash and went back to installing 5.5. It appears that MySQL is not installed and so hangs when running the Virtualmin installer script, and so gets SSH timeouts/broken pipe unless you set it up not to.
Once installed, I ran apt-get update / upgrade again.
wget virtualmin installer script
sh install.sh
It then installed ok and flew past the “Configuration file `/etc/apparmor.d/usr.sbin.mysqld’, does not exist on system” and got to the end in no time at all (total install time was around 10 - 15 minutes but cant be too sure as I was doing other stuff).
After that, it was just more tweaks to the server to suit my tastes!
I crashed out of the mysql process, having got hundreds of dots, and the script continued to install all else. Should I run the bsdutils reinstall then run the install.sh script again?
Having crashed out of the the mysql install and let all the other parts of the script run, I nor get the line of dots at the prompt, so this ain’t right!! Should I reboot, reinstall OS, run the bsdutils install then run the virtualmin script?
It was done on a clean install of Ubuntu 1404 LTS. I cannot risk the install not being good as I need to migrate my 10.04 vm host to this new 14.04 host…
This is old problem what i could never sort out. Last time i try was before 1 month and same error is jumping out no matter what i did. I try so many suggestions and no one of them worked out for me.
Please if you manage to sort your problem could you post it here how you did that. I’m more of centos when it comes to servers but still i would like to know if there is solution for this problem.
The install onto a cleanCentos 7 minimal installation went without a hitch. I will stay with Centos I think, especially as migrations are transferable between the different supported OS’s.
Running install.sh on Centos seems a lot less verbose than the ubuntu install, but all was successful it seems!
Please then take a look on my post here http://www.virtualmin.com/node/36980 just to be on safe side. Not sure why they didnt put this topic as sticky because a lot of people were locked out from their server for the same reason i described in that post.