Bug 894590 - MySQL server won't start after install
Summary: MySQL server won't start after install
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 894592 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-12 14:37 UTC by Adam Walczak
Modified: 2013-05-06 17:39 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-06 17:39:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Walczak 2013-01-12 14:37:18 UTC
Description of problem:
After installing mysql server.
[root@walec51-linux bin]# service mysqld start
Redirecting to /bin/systemctl start  mysqld.service
Failed to issue method call: Unit mysqld.service is masked.

Version-Release number of selected component (if applicable):
Up to date Fedora 17 64 bit
mysql  Ver 14.14 Distrib 5.5.28, for Linux (x86_64) using readline 5.1

Comment 1 Tom Lane 2013-01-12 17:56:23 UTC
*** Bug 894592 has been marked as a duplicate of this bug. ***

Comment 2 Tom Lane 2013-01-12 17:59:41 UTC
(In reply to comment #0)
> Failed to issue method call: Unit mysqld.service is masked.

That looks like a systemd issue, probably not anything specific to mysql.  Reassigning.

Comment 3 Lennart Poettering 2013-01-13 21:14:46 UTC
You masked mysql, so you get an error when you start it, which is the idea of masking...

Unmask it and you can start it again.

http://0pointer.de/blog/projects/three-levels-of-off.html

Comment 4 Adam Walczak 2013-01-13 23:51:26 UTC
No I never masked it. W didn't even know about masking until now.
Just installed it and tried to run it.

Comment 5 Tom Lane 2013-01-14 00:02:20 UTC
Hm ... is there a masking unit file on your system?  That is, a symlink to /dev/null in /etc/systemd/system/ as described in the blog entry Lennart links to?

Comment 6 Adam Walczak 2013-01-14 00:14:53 UTC
I don't see anything related to mysql there:

[walec51@walec51-linux ~]$ ls -l /etc/systemd/system/
razem 36
drwxr-xr-x. 2 root root 4096 2012-05-22  basic.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  bluetooth.target.wants
lrwxrwxrwx. 1 root root   41 2012-05-22  dbus-org.bluez.service -> /usr/lib/systemd/system/bluetooth.service
lrwxrwxrwx. 1 root root   44 2012-05-22  dbus-org.freedesktop.Avahi.service -> /usr/lib/systemd/system/avahi-daemon.service
lrwxrwxrwx. 1 root root   46 2012-05-22  dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx. 1 root root   36 2012-06-24  default.target -> /lib/systemd/system/runlevel5.target
drwxr-xr-x. 2 root root 4096 2012-05-22  default.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  getty.target.wants
drwxr-xr-x. 2 root root 4096 2012-06-24  graphical.target.wants
drwxr-xr-x. 2 root root 4096 12-09 02:00 multi-user.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  printer.target.wants
drwxr-xr-x. 2 root root 4096 10-30 01:27 sockets.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  sysinit.target.wants
lrwxrwxrwx. 1 root root   39 2012-05-22  syslog.service -> /usr/lib/systemd/system/rsyslog.service

Comment 7 Michal Schmidt 2013-01-14 10:21:45 UTC
Please check also /run/systemd/system/

Comment 8 Adam Walczak 2013-01-14 20:42:59 UTC
There is nothing there. In summary:

[root@walec51-linux walec51]# service mysqld start
Redirecting to /bin/systemctl start  mysqld.service
Failed to issue method call: Unit mysqld.service is masked.
[root@walec51-linux walec51]#  ls -l /run/systemd/system/
razem 0
[root@walec51-linux walec51]# ls -l /etc/systemd/system/
razem 36
drwxr-xr-x. 2 root root 4096 2012-05-22  basic.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  bluetooth.target.wants
lrwxrwxrwx. 1 root root   41 2012-05-22  dbus-org.bluez.service -> /usr/lib/systemd/system/bluetooth.service
lrwxrwxrwx. 1 root root   44 2012-05-22  dbus-org.freedesktop.Avahi.service -> /usr/lib/systemd/system/avahi-daemon.service
lrwxrwxrwx. 1 root root   46 2012-05-22  dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx. 1 root root   36 2012-06-24  default.target -> /lib/systemd/system/runlevel5.target
drwxr-xr-x. 2 root root 4096 2012-05-22  default.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  getty.target.wants
drwxr-xr-x. 2 root root 4096 2012-06-24  graphical.target.wants
drwxr-xr-x. 2 root root 4096 12-09 02:00 multi-user.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  printer.target.wants
drwxr-xr-x. 2 root root 4096 10-30 01:27 sockets.target.wants
drwxr-xr-x. 2 root root 4096 2012-05-22  sysinit.target.wants
lrwxrwxrwx. 1 root root   39 2012-05-22  syslog.service -> /usr/lib/systemd/system/rsyslog.service

If links are the only mechanism responsible for masking then this is a bug in the systems tools. Not my setup which is the installs default one btw.

Comment 9 Lennart Poettering 2013-01-15 03:22:32 UTC
What does "systemctl is-enabled mysqld.service" print?

Can you attach the output of "systemctl show mysqld.service" and "systemctl status mysqld.service" please?

Could please attach "ls -l /etc/systemd/systemd/*"? (i.e. I'd like to see the contents of the subdirs, too)

Comment 10 Lennart Poettering 2013-05-06 17:39:20 UTC
CLosed due to lack of response.


Note You need to log in before you can comment on or make changes to this bug.