unable to start any service via upstart script, sysvinit scripts work fine though
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
NOTE: I originally filed this against mysql-server, but in reality what I'm seeing affects pretty much every upstart job. I can't start them, stop them, or query them. I can do fine if I delete the upstart script causing 'service' to fall back to sysvinit scripts in /etc/init.d/ however.
Installed mysql-server meta package which pulled in mysql-server-5.5 and mysql-server-
When starting mysql via the service command, the presense of the upstart script causes that script to be used in preference of the sysvinit script. The problem is, with the upstart script present in /etc/init, it is impossible to start or stop the mysql service:
bladernr@
status: Unknown job: mysql
bladernr@
stop: Unknown job: mysql
start: Unknown job: mysql
bladernr@
stop: Unknown job: mysql
Now, if I remove the upstart script causing service to fall back on the sysvinit script, I am able to stop, start and do other things with the mysql service:
bladernr@
bladernr@
* /usr/bin/mysqladmin Ver 8.42 Distrib 5.5.31, for debian-linux-gnu on x86_64
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.5.31-0ubuntu1-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/
Uptime: 5 hours 27 min 56 sec
Threads: 1 Questions: 572 Slow queries: 432 Opens: 421 Flush tables: 1 Open tables: 41 Queries per second avg: 0.029
bladernr@
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for tables which need an upgrade, are corrupt or were
not closed cleanly.
So the problem appears to be with the upstart job on Saucy.
I tried this also on a second machine running raring with mysql-server-5.5 (5.5.31-
bladernr@
/etc/init/
bladernr@
mysql stop/waiting
mysql start/running, process 5825
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: mysql-server 5.5.31-0ubuntu1
ProcVersionSign
Uname: Linux 3.10.0-2-generic x86_64
NonfreeKernelMo
ApportVersion: 2.10.2-0ubuntu4
Architecture: amd64
Date: Mon Jul 15 18:04:22 2013
InstallationDate: Installed on 2012-03-15 (487 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120307)
Logs.var.
MarkForUpload: True
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
PackageArchitec
SourcePackage: mysql-5.5
UpgradeStatus: Upgraded to saucy on 2013-06-22 (23 days ago)
I tried removing and re-installing mysql, and even during the installation of the package, the server is unable to start via upstart:
bladernr@ klaatu: ~/development/ devstack$ sudo apt-get install mysql-server core-5. 5 core-5. 5 core-5. 5. core-5. 5 (from .../mysql- server- core-5. 5_5.5.31- 0ubuntu1_ amd64.deb) ... server- 5.5_5.5. 31-0ubuntu1_ amd64.deb) ... server_ 5.5.31- 0ubuntu1_ all.deb) ... core-5. 5 (5.5.31-0ubuntu1) ... slow-queries' is deprecated and will be removed in a future release. Please use '--slow- query-log' /'--slow- query-log- file' instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5 mysql-server-
Suggested packages:
tinyca
The following NEW packages will be installed:
mysql-server mysql-server-5.5 mysql-server-
0 upgraded, 3 newly installed, 0 to remove and 77 not upgraded.
Need to get 0 B/14.8 MB of archives.
After this operation, 52.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-
(Reading database ... 400070 files and directories currently installed.)
Unpacking mysql-server-
Selecting previously unselected package mysql-server-5.5.
Unpacking mysql-server-5.5 (from .../mysql-
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-
Setting up mysql-server-5.5 (5.5.31-0ubuntu1) ...
initctl: Unknown job: mysql
130716 9:40:45 [Warning] The syntax '--log-
initctl: Unknown job: mysql
Processing triggers for ureadahead ...
Setting up mysql-server (5.5.31-0ubuntu1) ...
Note the instances of "initctl: Unknown job: mysql"
and again, if I remove the upstart script, it starts just fine: klaatu: ~/development/ devstack$ sudo rm -f /etc/init/ mysql.conf klaatu: ~/development/ devstack$ sudo service mysql start
bladernr@
bladernr@
* Starting MySQL database server mysqld [ OK ]
I also looked at the tgt daemon which I also noticed was failing when trying to install devstack:
bladernr@ klaatu: ~/development/ devstack$ sudo service tgt start klaatu: ~/development/ devstack$ sudo rm /etc/init/tgt.conf klaatu: ~/development/ devstack$ sudo service tgt start
start: Unknown job: tgt
bladernr@
bladernr@
* Starting target framework daemon tgtd [ OK ]
In fact, I get the same "Unknown job" message for every single service that has an upstart script in /etc/init.