can"t stop mysql under ubuntu

can"t stop mysql under ubuntu

am 30.11.2010 03:54:40 von Jorg W Young

Hi,

I'm running mysql 5.1.37 for ubuntu 9.10 (64 bits OS).

I installed mysqld with apt-get, and going with /etc/init.d/mysql for
start/stop the server.

I can start mysql server successfully, but can't stop the server with
/etc/init.d/mysql stop. The error message is:

Nov 30 10:46:05 kickseed kernel: [73702.681483] type=1503
audit(1291085165.873:164): operation="open" pid=15424 parent=15423
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:33 kickseed kernel: [73730.137574] type=1503
audit(1291085193.373:165): operation="open" pid=15448 parent=15447
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:33 kickseed kernel: [73730.164645] type=1503
audit(1291085193.403:166): operation="open" pid=15468 parent=15467
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:33 kickseed kernel: [73730.356014] type=1503
audit(1291085193.593:167): operation="open" pid=15653 parent=15474
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:34 kickseed kernel: [73731.183992] type=1503
audit(1291085194.423:168): operation="open" pid=15662 parent=15661
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:35 kickseed kernel: [73732.197943] type=1503
audit(1291085195.443:169): operation="open" pid=15678 parent=15677
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:35 kickseed kernel: [73732.232258] type=1503
audit(1291085195.473:170): operation="open" pid=15689 parent=15688
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
Nov 30 10:46:54 kickseed kernel: [73751.579821] type=1503
audit(1291085214.853:171): operation="open" pid=15735 parent=15734
profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
fsuid=0 ouid=0 name="/sys/devices/system/cpu/"


Also I tried to add the line "/sys/devices/system/cpu/ r," to
/etc/apparmor.d/usr.sbin.mysqld then restart apparmor, mysql still
coundn't be stopped with /etc/init.d/mysql stop.

Please help, thanks.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: can"t stop mysql under ubuntu

am 30.11.2010 07:23:44 von Johan De Meersman

--000325558202090bc104963f3b4e
Content-Type: text/plain; charset=ISO-8859-1

Yep, it's definitely an apparmor issue. Are you using your distribution's
packages ? I would say this is more a thing for their support - I for one
keep as far away from apparmor as I can :-)


On Tue, Nov 30, 2010 at 3:54 AM, Jorg W Young

> wrote:

> Hi,
>
> I'm running mysql 5.1.37 for ubuntu 9.10 (64 bits OS).
>
> I installed mysqld with apt-get, and going with /etc/init.d/mysql for
> start/stop the server.
>
> I can start mysql server successfully, but can't stop the server with
> /etc/init.d/mysql stop. The error message is:
>
> Nov 30 10:46:05 kickseed kernel: [73702.681483] type=1503
> audit(1291085165.873:164): operation="open" pid=15424 parent=15423
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:33 kickseed kernel: [73730.137574] type=1503
> audit(1291085193.373:165): operation="open" pid=15448 parent=15447
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:33 kickseed kernel: [73730.164645] type=1503
> audit(1291085193.403:166): operation="open" pid=15468 parent=15467
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:33 kickseed kernel: [73730.356014] type=1503
> audit(1291085193.593:167): operation="open" pid=15653 parent=15474
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:34 kickseed kernel: [73731.183992] type=1503
> audit(1291085194.423:168): operation="open" pid=15662 parent=15661
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:35 kickseed kernel: [73732.197943] type=1503
> audit(1291085195.443:169): operation="open" pid=15678 parent=15677
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:35 kickseed kernel: [73732.232258] type=1503
> audit(1291085195.473:170): operation="open" pid=15689 parent=15688
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
> Nov 30 10:46:54 kickseed kernel: [73751.579821] type=1503
> audit(1291085214.853:171): operation="open" pid=15735 parent=15734
> profile="/usr/sbin/mysqld" requested_mask="r::" denied_mask="r::"
> fsuid=0 ouid=0 name="/sys/devices/system/cpu/"
>
>
> Also I tried to add the line "/sys/devices/system/cpu/ r," to
> /etc/apparmor.d/usr.sbin.mysqld then restart apparmor, mysql still
> coundn't be stopped with /etc/init.d/mysql stop.
>
> Please help, thanks.
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=vegivamp@tuxera.be
>
>


--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--000325558202090bc104963f3b4e--

Re: can"t stop mysql under ubuntu

am 30.11.2010 07:26:27 von Jorg W Young

2010/11/30 Johan De Meersman :
> Yep, it's definitely an apparmor issue. Are you using your distribution's
> packages ? I would say this is more a thing for their support - I for one
> keep as far away from apparmor as I can :-)
>

yep I 'm using the distribution packages all from apt-get.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: can"t stop mysql under ubuntu

am 30.11.2010 07:52:08 von Johan De Meersman

--0003255750fe9f72c804963fa055
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Nov 30, 2010 at 7:26 AM, Jorg W Young

> wrote:

> 2010/11/30 Johan De Meersman :
> > Yep, it's definitely an apparmor issue. Are you using your distribution's
> > packages ? I would say this is more a thing for their support - I for one
> > keep as far away from apparmor as I can :-)
> >
>
> yep I 'm using the distribution packages all from apt-get.
>

Then I would definitely say to contact your distro support or mailing lists,
and check the forums. It may be a known issue.


--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--0003255750fe9f72c804963fa055--