Error: Rejected send message–Ubuntu Server

I was doing some work on one of the development servers today and ran across the need to restart the MySQL server after making some configuration changes.

This is the command I ran:

user@machine:/etc/mysql$ service mysql restart

And this is the error I got:

restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.7" (uid=1000 pid=20562 comm="restart mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

Wasn’t really sure what to try first but the first thing I tried was:

user@machine:/etc/mysql$ sudo service mysql restart

…and it worked like a charm. Just elevate your permissions with sudo if you run into this problem and it should quickly solve the issue.

Be Sociable, Share!