[systemd-devel] MYSQL SERVICE FAILED
Alessandro Cellini
acellini at ymail.com
Sat Apr 30 18:32:35 UTC 2016
***********************************
**** Comand History and Logs ****
***********************************
root at acphotos-kubuntu:/# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7
mysql-server-core-5.7
Suggested packages:
mailx tinyca
The following NEW packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/17,9 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 209207 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.7.12-0ubuntu1_all.deb ...
Unpacking mysql-common (5.7.12-0ubuntu1) ...
Selecting previously unselected package mysql-client-core-5.7.
Preparing to unpack .../mysql-client-core-5.7_5.7.12-0ubuntu1_amd64.deb ...
Unpacking mysql-client-core-5.7 (5.7.12-0ubuntu1) ...
Selecting previously unselected package mysql-client-5.7.
Preparing to unpack .../mysql-client-5.7_5.7.12-0ubuntu1_amd64.deb ...
Unpacking mysql-client-5.7 (5.7.12-0ubuntu1) ...
Selecting previously unselected package mysql-server-core-5.7.
Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ...
Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-common (5.7.12-0ubuntu1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide
/etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 209364 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.7.12-0ubuntu1_all.deb ...
Unpacking mysql-server (5.7.12-0ubuntu1) ...
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-client-core-5.7 (5.7.12-0ubuntu1) ...
Setting up mysql-client-5.7 (5.7.12-0ubuntu1) ...
Setting up mysql-server-core-5.7 (5.7.12-0ubuntu1) ...
Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide
/etc/mysql/my.cnf (my.cnf) in auto mode
Job for mysql.service failed because the control process exited with
error code. See "systemctl status mysql.service" and "journalctl -xe"
for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a
followup error from a previous failure.
Processing triggers for systemd (229-4ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root at acphotos-kubuntu:/# systemctl status mysql.service
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor
preset: enabled)
Active: inactive (dead) (Result: exit-code) since sab 2016-04-30
20:19:42 CEST; 1min 10s ago
Process: 11380 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
(code=exited, status=1/FAILURE)
apr 30 20:19:41 acphotos-kubuntu systemd[1]: Failed to start MySQL
Community Server.
apr 30 20:19:41 acphotos-kubuntu systemd[1]: mysql.service: Unit entered
failed state.
apr 30 20:19:41 acphotos-kubuntu systemd[1]: mysql.service: Failed with
result 'exit-code'.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: mysql.service: Service
hold-off time over, scheduling restart.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: Stopped MySQL Community Server.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: mysql.service: Start
request repeated too quickly.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: Failed to start MySQL
Community Server.
root at acphotos-kubuntu:/# journalctl -xe
-- Subject: Unit mysql.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has begun starting up.
apr 30 20:19:41 acphotos-kubuntu mysql-systemd-start[11380]: MySQL
system database not found. Please run mysql_install_db tool.
apr 30 20:19:41 acphotos-kubuntu systemd[1]: mysql.service: Control
process exited, code=exited status=1
apr 30 20:19:41 acphotos-kubuntu systemd[1]: Failed to start MySQL
Community Server.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has failed.
--
-- The result is failed.
apr 30 20:19:41 acphotos-kubuntu systemd[1]: mysql.service: Unit entered
failed state.
apr 30 20:19:41 acphotos-kubuntu systemd[1]: mysql.service: Failed with
result 'exit-code'.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: mysql.service: Service
hold-off time over, scheduling restart.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: Stopped MySQL Community Server.
-- Subject: Unit mysql.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has finished shutting down.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: mysql.service: Start
request repeated too quickly.
apr 30 20:19:42 acphotos-kubuntu systemd[1]: Failed to start MySQL
Community Server.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has failed.
--
-- The result is failed.
More information about the systemd-devel
mailing list