[Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2010-02-09 Thread Chuck Short
** Changed in: mysql-dfsg-5.0 (Ubuntu)
   Status: Incomplete => Fix Released

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-22 Thread pascal

Mathias Gug a écrit :
> On Mon, Jun 22, 2009 at 03:07:43PM -, pascal wrote:
>   
>> I check it just before a failed update, and it's ok.
>> 
>
> And *after* the failed update?
>
>   
And, again, after reboot, mysql run without problem...

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-22 Thread pascal
Mathias Gug a écrit :
> On Mon, Jun 22, 2009 at 03:07:43PM -, pascal wrote:
>   
>> I check it just before a failed update, and it's ok.
>> 
>
> And *after* the failed update?
>
>   
sorry, i want say just after...

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-22 Thread Mathias Gug
On Mon, Jun 22, 2009 at 03:07:43PM -, pascal wrote:
> I check it just before a failed update, and it's ok.

And *after* the failed update?

-- 
Mathias Gug
Ubuntu Developer  http://www.ubuntu.com

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-22 Thread pascal
I check it just before a failed update, and it's ok.

Mathias Gug a écrit :
> Could you make sure that mysqld apparmor profile is still correct after
> the update?
>
>

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-19 Thread Mathias Gug
** Changed in: mysql-dfsg-5.0 (Ubuntu)
   Importance: Undecided => Low

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-17 Thread Mathias Gug
Could you make sure that mysqld apparmor profile is still correct after
the update?

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-10 Thread pascal
and today, update manager make his job...same error at end.

pascal a écrit :
> News:
>
> After restart computer, mysql is ok.
> I try to install any package and i have the installation error for mysql
> So, i reboot, and mysql start...
>
>
> Mathias Gug a écrit :
>   
>> On Sat, Jun 06, 2009 at 12:34:43PM -, pascal wrote:
>>   
>> 
>>> kern.log after an update:
>>>
>>> 
>>>   
>> Relevant error messages:
>>   
>> 
>>> audit(1244290348.293:19): operation="profile_replace" 
>>> name="/usr/sbin/mysqld" name2="default" pid=6774
>>> Jun  6 14:12:28 pascal-laptop kernel: [ 2951.715329] type=1505 
>>> audit(1244290348.333:20): operation="profile_replace" 
>>> name="/usr/sbin/mysqld" name2="default" pid=6781
>>> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356185] type=1503 
>>> audit(1244290365.974:25): operation="inode_create" requested_mask="a::" 
>>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>>> pid=7176 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356259] type=1503 
>>> audit(1244290365.974:26): operation="inode_create" requested_mask="a::" 
>>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>>> pid=7176 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.363748] type=1503 
>>> audit(1244290365.982:27): operation="inode_permission" 
>>> requested_mask="r::" denied_mask="r::" fsuid=112 
>>> name="/home/mysql/mysql/db.frm" pid=7179 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403433] type=1503 
>>> audit(1244290366.022:28): operation="inode_create" requested_mask="a::" 
>>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>>> pid=7191 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403508] type=1503 
>>> audit(1244290366.022:29): operation="inode_create" requested_mask="a::" 
>>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>>> pid=7191 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407872] type=1503 
>>> audit(1244290366.026:30): operation="inode_permission" 
>>> requested_mask="r::" denied_mask="r::" fsuid=112 
>>> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407921] type=1503 
>>> audit(1244290366.026:31): operation="inode_permission" 
>>> requested_mask="r::" denied_mask="r::" fsuid=112 
>>> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.408101] type=1503 
>>> audit(1244290366.026:32): operation="inode_permission" 
>>> requested_mask="r::" denied_mask="r::" fsuid=112 
>>> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437078] type=1503 
>>> audit(1244290366.058:33): operation="inode_create" requested_mask="a::" 
>>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>>> pid=7202 profile="/usr/sbin/mysqld"
>>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437463] type=1503 
>>> audit(1244290366.058:34): operation="inode_create" requested_mask="a::" 
>>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>>> pid=7202 profile="/usr/sbin/mysqld"
>>> 
>>>   
>> So the problem is related to mysqld apparmor profile. Apparently mysqld
>> profile has been replaced during the upgrade (first line in the audit
>> log).
>>
>>   
>> 
>>> /etc/apparmor.d/usr.sbin.mysqld:
>>>
>>> # vim:syntax=apparmor
>>> # Last Modified: Tue Jun 19 17:37:30 2007
>>> #include 
>>>
>>> /usr/sbin/mysqld {
>>>   #include 
>>>   #include 
>>>   #include 
>>>   #include 
>>>   #include 
>>>
>>>   capability dac_override,
>>>   capability sys_resource,
>>>   capability setgid,
>>>   capability setuid,
>>>
>>>   network tcp,
>>>
>>>   /etc/hosts.allow r,
>>>   /etc/hosts.deny r,
>>>
>>>   /etc/mysql/*.pem r,
>>>   /etc/mysql/conf.d/ r,
>>>   /etc/mysql/conf.d/* r,
>>>   /etc/mysql/my.cnf r,
>>>   /usr/sbin/mysqld mr,
>>>   /usr/share/mysql/** r,
>>>   /var/log/mysql.log rw,
>>>   /var/log/mysql.err rw,
>>>   /home/mysql/ r,
>>>   /home/mysql/** rwk,
>>>   /var/log/mysql/ r,
>>>   /var/log/mysql/* rw,
>>>   /var/run/mysqld/mysqld.pid w,
>>>   /var/run/mysqld/mysqld.sock w,
>>> }
>>> 
>>>   
>> It seems that the apparmor profile is customized to allow access to
>> /home/mysql/. Could you make sure that the correct profile has been
>> reloaded?
>>
>>
>> 
>
>

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://li

Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-09 Thread pascal
News:

After restart computer, mysql is ok.
I try to install any package and i have the installation error for mysql
So, i reboot, and mysql start...


Mathias Gug a écrit :
> On Sat, Jun 06, 2009 at 12:34:43PM -, pascal wrote:
>   
>> kern.log after an update:
>>
>> 
>
> Relevant error messages:
>   
>> audit(1244290348.293:19): operation="profile_replace" 
>> name="/usr/sbin/mysqld" name2="default" pid=6774
>> Jun  6 14:12:28 pascal-laptop kernel: [ 2951.715329] type=1505 
>> audit(1244290348.333:20): operation="profile_replace" 
>> name="/usr/sbin/mysqld" name2="default" pid=6781
>> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356185] type=1503 
>> audit(1244290365.974:25): operation="inode_create" requested_mask="a::" 
>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>> pid=7176 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356259] type=1503 
>> audit(1244290365.974:26): operation="inode_create" requested_mask="a::" 
>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>> pid=7176 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.363748] type=1503 
>> audit(1244290365.982:27): operation="inode_permission" 
>> requested_mask="r::" denied_mask="r::" fsuid=112 
>> name="/home/mysql/mysql/db.frm" pid=7179 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403433] type=1503 
>> audit(1244290366.022:28): operation="inode_create" requested_mask="a::" 
>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>> pid=7191 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403508] type=1503 
>> audit(1244290366.022:29): operation="inode_create" requested_mask="a::" 
>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>> pid=7191 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407872] type=1503 
>> audit(1244290366.026:30): operation="inode_permission" 
>> requested_mask="r::" denied_mask="r::" fsuid=112 
>> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407921] type=1503 
>> audit(1244290366.026:31): operation="inode_permission" 
>> requested_mask="r::" denied_mask="r::" fsuid=112 
>> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.408101] type=1503 
>> audit(1244290366.026:32): operation="inode_permission" 
>> requested_mask="r::" denied_mask="r::" fsuid=112 
>> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437078] type=1503 
>> audit(1244290366.058:33): operation="inode_create" requested_mask="a::" 
>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>> pid=7202 profile="/usr/sbin/mysqld"
>> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437463] type=1503 
>> audit(1244290366.058:34): operation="inode_create" requested_mask="a::" 
>> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
>> pid=7202 profile="/usr/sbin/mysqld"
>> 
>
> So the problem is related to mysqld apparmor profile. Apparently mysqld
> profile has been replaced during the upgrade (first line in the audit
> log).
>
>   
>> /etc/apparmor.d/usr.sbin.mysqld:
>>
>> # vim:syntax=apparmor
>> # Last Modified: Tue Jun 19 17:37:30 2007
>> #include 
>>
>> /usr/sbin/mysqld {
>>   #include 
>>   #include 
>>   #include 
>>   #include 
>>   #include 
>>
>>   capability dac_override,
>>   capability sys_resource,
>>   capability setgid,
>>   capability setuid,
>>
>>   network tcp,
>>
>>   /etc/hosts.allow r,
>>   /etc/hosts.deny r,
>>
>>   /etc/mysql/*.pem r,
>>   /etc/mysql/conf.d/ r,
>>   /etc/mysql/conf.d/* r,
>>   /etc/mysql/my.cnf r,
>>   /usr/sbin/mysqld mr,
>>   /usr/share/mysql/** r,
>>   /var/log/mysql.log rw,
>>   /var/log/mysql.err rw,
>>   /home/mysql/ r,
>>   /home/mysql/** rwk,
>>   /var/log/mysql/ r,
>>   /var/log/mysql/* rw,
>>   /var/run/mysqld/mysqld.pid w,
>>   /var/run/mysqld/mysqld.sock w,
>> }
>> 
>
> It seems that the apparmor profile is customized to allow access to
> /home/mysql/. Could you make sure that the correct profile has been
> reloaded?
>
>

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-08 Thread Mathias Gug
On Sat, Jun 06, 2009 at 12:34:43PM -, pascal wrote:
> kern.log after an update:
> 

Relevant error messages:
> audit(1244290348.293:19): operation="profile_replace" 
> name="/usr/sbin/mysqld" name2="default" pid=6774
> Jun  6 14:12:28 pascal-laptop kernel: [ 2951.715329] type=1505 
> audit(1244290348.333:20): operation="profile_replace" 
> name="/usr/sbin/mysqld" name2="default" pid=6781
> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356185] type=1503 
> audit(1244290365.974:25): operation="inode_create" requested_mask="a::" 
> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
> pid=7176 profile="/usr/sbin/mysqld"
> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356259] type=1503 
> audit(1244290365.974:26): operation="inode_create" requested_mask="a::" 
> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
> pid=7176 profile="/usr/sbin/mysqld"
> Jun  6 14:12:45 pascal-laptop kernel: [ 2969.363748] type=1503 
> audit(1244290365.982:27): operation="inode_permission" 
> requested_mask="r::" denied_mask="r::" fsuid=112 
> name="/home/mysql/mysql/db.frm" pid=7179 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403433] type=1503 
> audit(1244290366.022:28): operation="inode_create" requested_mask="a::" 
> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
> pid=7191 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403508] type=1503 
> audit(1244290366.022:29): operation="inode_create" requested_mask="a::" 
> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
> pid=7191 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407872] type=1503 
> audit(1244290366.026:30): operation="inode_permission" 
> requested_mask="r::" denied_mask="r::" fsuid=112 
> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407921] type=1503 
> audit(1244290366.026:31): operation="inode_permission" 
> requested_mask="r::" denied_mask="r::" fsuid=112 
> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.408101] type=1503 
> audit(1244290366.026:32): operation="inode_permission" 
> requested_mask="r::" denied_mask="r::" fsuid=112 
> name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437078] type=1503 
> audit(1244290366.058:33): operation="inode_create" requested_mask="a::" 
> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
> pid=7202 profile="/usr/sbin/mysqld"
> Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437463] type=1503 
> audit(1244290366.058:34): operation="inode_create" requested_mask="a::" 
> denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
> pid=7202 profile="/usr/sbin/mysqld"

So the problem is related to mysqld apparmor profile. Apparently mysqld
profile has been replaced during the upgrade (first line in the audit
log).

> 
> /etc/apparmor.d/usr.sbin.mysqld:
> 
> # vim:syntax=apparmor
> # Last Modified: Tue Jun 19 17:37:30 2007
> #include 
> 
> /usr/sbin/mysqld {
>   #include 
>   #include 
>   #include 
>   #include 
>   #include 
> 
>   capability dac_override,
>   capability sys_resource,
>   capability setgid,
>   capability setuid,
> 
>   network tcp,
> 
>   /etc/hosts.allow r,
>   /etc/hosts.deny r,
> 
>   /etc/mysql/*.pem r,
>   /etc/mysql/conf.d/ r,
>   /etc/mysql/conf.d/* r,
>   /etc/mysql/my.cnf r,
>   /usr/sbin/mysqld mr,
>   /usr/share/mysql/** r,
>   /var/log/mysql.log rw,
>   /var/log/mysql.err rw,
>   /home/mysql/ r,
>   /home/mysql/** rwk,
>   /var/log/mysql/ r,
>   /var/log/mysql/* rw,
>   /var/run/mysqld/mysqld.pid w,
>   /var/run/mysqld/mysqld.sock w,
> }

It seems that the apparmor profile is customized to allow access to
/home/mysql/. Could you make sure that the correct profile has been
reloaded?

-- 
Mathias Gug
Ubuntu Developer  http://www.ubuntu.com

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-06 Thread pascal
kern.log after an update:

Jun  6 14:09:34 pascal-laptop kernel: [ 2778.336042] CE: hpet increasing 
min_delta_ns to 15000 nsec
Jun  6 14:12:27 pascal-laptop kernel: [ 2951.365529] type=1505 
audit(1244290347.985:12): operation="profile_replace" 
name="/usr/share/gdm/guest-session/Xsession" name2="default" pid=6760
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.437593] type=1505 
audit(1244290348.057:13): operation="profile_replace" 
name="/sbin/dhclient-script" name2="default" pid=6764
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.437900] type=1505 
audit(1244290348.057:14): operation="profile_replace" 
name="/sbin/dhclient3" name2="default" pid=6764
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.437962] type=1505 
audit(1244290348.057:15): operation="profile_replace" 
name="/usr/lib/NetworkManager/nm-dhcp-client.action" name2="default" 
pid=6764
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.438019] type=1505 
audit(1244290348.057:16): operation="profile_replace" 
name="/usr/lib/connman/scripts/dhclient-script" name2="default" pid=6764
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.625141] type=1505 
audit(1244290348.245:17): operation="profile_replace" 
name="/usr/lib/cups/backend/cups-pdf" name2="default" pid=6769
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.625518] type=1505 
audit(1244290348.245:18): operation="profile_replace" 
name="/usr/sbin/cupsd" name2="default" pid=6769
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.673473] type=1505 
audit(1244290348.293:19): operation="profile_replace" 
name="/usr/sbin/mysqld" name2="default" pid=6774
Jun  6 14:12:28 pascal-laptop kernel: [ 2951.715329] type=1505 
audit(1244290348.333:20): operation="profile_replace" 
name="/usr/sbin/mysqld" name2="default" pid=6781
Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356181] __ratelimit: 12 
callbacks suppressed
Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356185] type=1503 
audit(1244290365.974:25): operation="inode_create" requested_mask="a::" 
denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
pid=7176 profile="/usr/sbin/mysqld"
Jun  6 14:12:45 pascal-laptop kernel: [ 2969.356259] type=1503 
audit(1244290365.974:26): operation="inode_create" requested_mask="a::" 
denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
pid=7176 profile="/usr/sbin/mysqld"
Jun  6 14:12:45 pascal-laptop kernel: [ 2969.363748] type=1503 
audit(1244290365.982:27): operation="inode_permission" 
requested_mask="r::" denied_mask="r::" fsuid=112 
name="/home/mysql/mysql/db.frm" pid=7179 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403433] type=1503 
audit(1244290366.022:28): operation="inode_create" requested_mask="a::" 
denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
pid=7191 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.403508] type=1503 
audit(1244290366.022:29): operation="inode_create" requested_mask="a::" 
denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
pid=7191 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407872] type=1503 
audit(1244290366.026:30): operation="inode_permission" 
requested_mask="r::" denied_mask="r::" fsuid=112 
name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.407921] type=1503 
audit(1244290366.026:31): operation="inode_permission" 
requested_mask="r::" denied_mask="r::" fsuid=112 
name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.408101] type=1503 
audit(1244290366.026:32): operation="inode_permission" 
requested_mask="r::" denied_mask="r::" fsuid=112 
name="/home/mysql/mysql/user.frm" pid=7195 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437078] type=1503 
audit(1244290366.058:33): operation="inode_create" requested_mask="a::" 
denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
pid=7202 profile="/usr/sbin/mysqld"
Jun  6 14:12:46 pascal-laptop kernel: [ 2969.437463] type=1503 
audit(1244290366.058:34): operation="inode_create" requested_mask="a::" 
denied_mask="a::" fsuid=0 name="/home/mysql/pascal-laptop.lower-test" 
pid=7202 profile="/usr/sbin/mysqld"


/etc/apparmor.d/usr.sbin.mysqld:

# vim:syntax=apparmor
# Last Modified: Tue Jun 19 17:37:30 2007
#include 

/usr/sbin/mysqld {
  #include 
  #include 
  #include 
  #include 
  #include 

  capability dac_override,
  capability sys_resource,
  capability setgid,
  capability setuid,

  network tcp,

  /etc/hosts.allow r,
  /etc/hosts.deny r,

  /etc/mysql/*.pem r,
  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/* r,
  /etc/mysql/my.cnf r,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /var/log/mysql.log rw,
  /var/log/mysql.err rw,
  /home/mysql/ r,
  /home/mysql/** rwk,
  /var/log/mysql/ r,
  /var/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,
}

I try to uninstall/reinstall, but it's the same thing

Thanks

Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-05 Thread Mathias Gug
On Fri, Jun 05, 2009 at 10:22:24PM -, pascal wrote:
> >> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41  InnoDB: 
> >> Operating system error number 13 in a file operation.
> >> Jun  5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: The error means 
> >> mysqld does not have the access rights to
> >> Jun  5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: the directory.
> >> 
> >
> > Why is mysql trying to use /home/mysql/ as its data directory
> >   
> > Is /var/lib/mysql/ a symlink to /home/mysql/ ?
> >   
>   Not a symlink, but a datadir setting in my.cnf
> > This is a non-default setup and thus mysqld apparmor profile needs to be
> > updated to account for this custom configuration.
> >
> >   
> 
> Apparmor is updated and ok
> 
> All is good before the update.

Could you post the mysqld apparmor profile (found in /etc/apparmor.d/)?
Could you check if there are audit messages related to apparmor and
mysqld in /var/log/kern.log?


-- 
Mathias Gug
Ubuntu Developer  http://www.ubuntu.com

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-05 Thread pascal
Mathias Gug a écrit :
> On Fri, Jun 05, 2009 at 01:33:21PM -, pascal wrote:
>   
>> Jun  5 15:31:40 pascal-laptop mysqld_safe[15491]:
>> Jun  5 15:31:40 pascal-laptop AppArmor(init): Skipping profile 
>> /etc/apparmor.d/usr.sbin.mysqld~
>> Jun  5 15:31:41 pascal-laptop mysqld_safe[15673]: started
>> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 [Warning] 
>> Can't create test file /home/mysql/pascal-laptop.lower-test
>> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 [Warning] 
>> Can't create test file /home/mysql/pascal-laptop.lower-test
>> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41  InnoDB: 
>> Operating system error number 13 in a file operation.
>> Jun  5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: The error means 
>> mysqld does not have the access rights to
>> Jun  5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: the directory.
>> 
>
> Why is mysql trying to use /home/mysql/ as its data directory
>   
> Is /var/lib/mysql/ a symlink to /home/mysql/ ?
>   
  Not a symlink, but a datadir setting in my.cnf
> This is a non-default setup and thus mysqld apparmor profile needs to be
> updated to account for this custom configuration.
>
>   

Apparmor is updated and ok

All is good before the update.

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-05 Thread Mathias Gug

On Fri, Jun 05, 2009 at 01:33:21PM -, pascal wrote:
> Jun  5 15:31:40 pascal-laptop mysqld_safe[15491]:
> Jun  5 15:31:40 pascal-laptop AppArmor(init): Skipping profile 
> /etc/apparmor.d/usr.sbin.mysqld~
> Jun  5 15:31:41 pascal-laptop mysqld_safe[15673]: started
> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 [Warning] 
> Can't create test file /home/mysql/pascal-laptop.lower-test
> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41 [Warning] 
> Can't create test file /home/mysql/pascal-laptop.lower-test
> Jun  5 15:31:41 pascal-laptop mysqld[15676]: 090605 15:31:41  InnoDB: 
> Operating system error number 13 in a file operation.
> Jun  5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: The error means 
> mysqld does not have the access rights to
> Jun  5 15:31:41 pascal-laptop mysqld[15676]: InnoDB: the directory.

Why is mysql trying to use /home/mysql/ as its data directory?

Is /var/lib/mysql/ a symlink to /home/mysql/ ?

This is a non-default setup and thus mysqld apparmor profile needs to be
updated to account for this custom configuration.

-- 
Mathias Gug
Ubuntu Developer  http://www.ubuntu.com

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-05 Thread pascal
Jun  5 15:31:20 pascal-laptop mysqld_safe[14897]: ended
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: PLEASE REMEMBER TO SET 
A PASSWORD FOR THE MySQL root USER !
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: To do so, start the 
server, then issue the following commands:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: /usr/bin/mysqladmin -u 
root password 'new-password'
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: /usr/bin/mysqladmin -u 
root -h pascal-laptop password 'new-password'
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: Alternatively you can run:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: 
/usr/bin/mysql_secure_installation
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: which will also give 
you the option of removing the test
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: databases and 
anonymous user created by default.  This is
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: strongly recommended 
for production servers.
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: See the manual for 
more instructions.
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: Please report any 
problems with the /usr/bin/mysqlbug script!
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: The latest information 
about MySQL is available on the web at
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: http://www.mysql.com
Jun  5 15:31:21 pascal-laptop mysqld_safe[14924]: Support MySQL by 
buying support/licenses at http://shop.mysql.com
Jun  5 15:31:21 pascal-laptop mysqld_safe[14993]: ERROR: 1046  No 
database selected
Jun  5 15:31:21 pascal-laptop mysqld_safe[14993]: 090605 15:31:21 
[ERROR] Aborting
Jun  5 15:31:21 pascal-laptop mysqld_safe[14993]:
Jun  5 15:31:21 pascal-laptop mysqld_safe[14993]: 090605 15:31:21 [Note] 
/usr/sbin/mysqld: Shutdown complete
Jun  5 15:31:21 pascal-laptop mysqld_safe[14993]:
Jun  5 15:31:22 pascal-laptop AppArmor(init): Skipping profile 
/etc/apparmor.d/usr.sbin.mysqld~
Jun  5 15:31:22 pascal-laptop mysqld_safe[15176]: started
Jun  5 15:31:22 pascal-laptop mysqld[15179]: 090605 15:31:22 [Warning] 
Can't create test file /home/mysql/pascal-laptop.lower-test
Jun  5 15:31:22 pascal-laptop mysqld[15179]: 090605 15:31:22 [Warning] 
Can't create test file /home/mysql/pascal-laptop.lower-test
Jun  5 15:31:22 pascal-laptop mysqld[15179]: 090605 15:31:22  InnoDB: 
Operating system error number 13 in a file operation.
Jun  5 15:31:22 pascal-laptop mysqld[15179]: InnoDB: The error means 
mysqld does not have the access rights to
Jun  5 15:31:22 pascal-laptop mysqld[15179]: InnoDB: the directory.
Jun  5 15:31:22 pascal-laptop mysqld[15179]: InnoDB: File name ./ibdata1
Jun  5 15:31:22 pascal-laptop mysqld[15179]: InnoDB: File operation 
call: 'open'.
Jun  5 15:31:22 pascal-laptop mysqld[15179]: InnoDB: Cannot continue 
operation.
Jun  5 15:31:22 pascal-laptop mysqld_safe[15186]: ended
Jun  5 15:31:37 pascal-laptop /etc/init.d/mysql[15338]: 0 processes 
alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf 
ping' resulted in
Jun  5 15:31:37 pascal-laptop /etc/init.d/mysql[15338]: 
^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jun  5 15:31:37 pascal-laptop /etc/init.d/mysql[15338]: error: 'Can't 
connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)'
Jun  5 15:31:37 pascal-laptop /etc/init.d/mysql[15338]: Check that 
mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jun  5 15:31:37 pascal-laptop /etc/init.d/mysql[15338]:
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: 090605 15:31:39 
[Warning] Can't create test file /home/mysql/pascal-laptop.lower-test
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: 090605 15:31:39 
[Warning] Can't create test file /home/mysql/pascal-laptop.lower-test
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: ERROR: 1347  
'mysql.db' is not BASE TABLE
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: 090605 15:31:39 
[ERROR] Aborting
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]:
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: 090605 15:31:39 [Note] 
/usr/sbin/mysqld: Shutdown complete
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]:
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: Installation of system 
tables failed!
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]:
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: Examine the logs in 
/home/mysql for more information.
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: You can try to start 
the mysqld daemon with:
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: /usr/sbin/mysqld 
--skip-grant &
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: and use the command 
line tool
Jun  5 15:31:39 pascal-laptop mysqld_safe[15427]: /usr/bin/mysql to 
connec

[Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-03 Thread Mathias Gug
Relevant errors:

 * Starting MySQL database server mysqld

   ...fail!

invoke-rc.d: initscript mysql, action "start" failed.

dpkg : erreur de traitement de mysql-server-5.0 (--configure) :

 le sous-processus post-installation script a retourné une erreur de
sortie d'état 1

Could you post the content of /var/log/daemon.log around the time of the
upgrade to identify why mysqld failed to start?

** Changed in: mysql-dfsg-5.0 (Ubuntu)
   Status: New => Incomplete

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 382727] Re: package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to install/upgrade: le sous-processus post-installation script a retourn? une erreur de sortie d'?tat 1

2009-06-02 Thread Yannig

** Attachment added: "Dependencies.txt"
   http://launchpadlibrarian.net/27410289/Dependencies.txt

** Attachment added: "DpkgTerminalLog.gz"
   http://launchpadlibrarian.net/27410290/DpkgTerminalLog.gz

-- 
package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 failed to 
install/upgrade: le sous-processus post-installation script a retourn? une 
erreur de sortie d'?tat 1
https://bugs.launchpad.net/bugs/382727
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs