Re: [Bug 835715] Re: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
I uninstalled, reinstalled mysql. I had to remove residue from the old install /etc/mysql and others. I re-installed, moved the directory, configured my.cnf before ever running mysql and it works fine now. A bump in the night, not able to reproduce. Ubuntu sent off the report before I could stop it. Thanks for your help. Duncan Gray On 09/01/2011 04:36 AM, James Page wrote: Thank you for taking the time to report this bug and helping to make Ubuntu better. The error you experienced in 4. was due to the apparmor profile provided with mysql-server. By default is will only allow access to /var/lib/mysql so when you moved to to /srv it denied access - you can see this in dmesg.txt: [ 8232.324109] type=1400 audit(1314483729.470:59): apparmor=DENIED operation=mknod parent=1 profile=/usr/sbin/mysqld name=/srv/mysql/caes-srv-00.lower-test pid=30379 comm=mysqld requested_mask=c denied_mask=c fsuid=0 ouid=0 [ 8232.324158] type=1400 audit(1314483729.470:60): apparmor=DENIED operation=mknod parent=1 profile=/usr/sbin/mysqld name=/srv/mysql/caes-srv-00.lower-test pid=30379 comm=mysqld requested_mask=c denied_mask=c fsuid=0 ouid=0 [ 8232.326361] type=1400 audit(1314483729.470:61): apparmor=DENIED operation=open parent=1 profile=/usr/sbin/mysqld name=/srv/mysql/mysql/plugin.frm pid=30379 comm=mysqld requested_mask=r denied_mask=r fsuid=1003 ouid=1003 To support this move you would need to update /etc/apparmor.d/usr.sbin.mysqld - use the configuration for /var/lib/mysql as a guide. I can't tell from the attachments what failed when you tried to uninstall mysql-server. It looks like its still installed by not configured - please could you try removing it again and attach the output to this bug report. Marking importance as 'Low' as I think this is related to the move of /var/lib/mysql and 'Incomplete' pending your response. Thanks ** Changed in: mysql-5.1 (Ubuntu) Status: New = Incomplete ** Changed in: mysql-5.1 (Ubuntu) Importance: Undecided = Low -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/835715 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions -- 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 835715] Re: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
I uninstalled, reinstalled mysql. I had to remove residue from the old install /etc/mysql and others. I re-installed, moved the directory, configured my.cnf before ever running mysql and it works fine now. A bump in the night, not able to reproduce. Ubuntu sent off the report before I could stop it. Thanks for your help. Duncan Gray On 09/01/2011 04:36 AM, James Page wrote: Thank you for taking the time to report this bug and helping to make Ubuntu better. The error you experienced in 4. was due to the apparmor profile provided with mysql-server. By default is will only allow access to /var/lib/mysql so when you moved to to /srv it denied access - you can see this in dmesg.txt: [ 8232.324109] type=1400 audit(1314483729.470:59): apparmor=DENIED operation=mknod parent=1 profile=/usr/sbin/mysqld name=/srv/mysql/caes-srv-00.lower-test pid=30379 comm=mysqld requested_mask=c denied_mask=c fsuid=0 ouid=0 [ 8232.324158] type=1400 audit(1314483729.470:60): apparmor=DENIED operation=mknod parent=1 profile=/usr/sbin/mysqld name=/srv/mysql/caes-srv-00.lower-test pid=30379 comm=mysqld requested_mask=c denied_mask=c fsuid=0 ouid=0 [ 8232.326361] type=1400 audit(1314483729.470:61): apparmor=DENIED operation=open parent=1 profile=/usr/sbin/mysqld name=/srv/mysql/mysql/plugin.frm pid=30379 comm=mysqld requested_mask=r denied_mask=r fsuid=1003 ouid=1003 To support this move you would need to update /etc/apparmor.d/usr.sbin.mysqld - use the configuration for /var/lib/mysql as a guide. I can't tell from the attachments what failed when you tried to uninstall mysql-server. It looks like its still installed by not configured - please could you try removing it again and attach the output to this bug report. Marking importance as 'Low' as I think this is related to the move of /var/lib/mysql and 'Incomplete' pending your response. Thanks ** Changed in: mysql-5.1 (Ubuntu) Status: New = Incomplete ** Changed in: mysql-5.1 (Ubuntu) Importance: Undecided = Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/835715 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 835715] [NEW] package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
Public bug reported: 1. installed, very standard. 2. Stopped mysqld with the mysql-admin gui 3. I did sudo mv /var/lib/mysql /srv/mysqlthis allows me to more easily rsync the database. 4. Tried to restart the mysqld with the gui, then /enc/init.d/mysql start, but it complained: 110827 17:30:32 [Warning] Can't create test file /srv/mysql/caes-srv-00.lower-test a few times then: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) 5. move it back to the default 6. try to restart, to no avail, although the 'can't create' complaint is gone. 7. try to uninstall mysql-server 8. it didn't and now shows up in the broken list. 9. Here I am at Launchpad. ProblemType: Package DistroRelease: Ubuntu 11.04 Package: mysql-server-5.1 5.1.54-1ubuntu4 ProcVersionSignature: Ubuntu 2.6.38-11.48-generic-pae 2.6.38.8 Uname: Linux 2.6.38-11-generic-pae i686 NonfreeKernelModules: fglrx Architecture: i386 Date: Sat Aug 27 17:39:24 2011 ErrorMessage: subprocess installed post-installation script returned error exit status 100 InstallationMedia: Ubuntu 11.04 Natty Narwhal - Release i386 (20110427.1) SourcePackage: mysql-5.1 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: mysql-5.1 (Ubuntu) Importance: Undecided Status: New ** Tags: apport-package i386 natty -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/835715 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions -- 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 835715] Re: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
-- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/835715 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions -- 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 835715] [NEW] package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
Public bug reported: 1. installed, very standard. 2. Stopped mysqld with the mysql-admin gui 3. I did sudo mv /var/lib/mysql /srv/mysqlthis allows me to more easily rsync the database. 4. Tried to restart the mysqld with the gui, then /enc/init.d/mysql start, but it complained: 110827 17:30:32 [Warning] Can't create test file /srv/mysql/caes-srv-00.lower-test a few times then: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) 5. move it back to the default 6. try to restart, to no avail, although the 'can't create' complaint is gone. 7. try to uninstall mysql-server 8. it didn't and now shows up in the broken list. 9. Here I am at Launchpad. ProblemType: Package DistroRelease: Ubuntu 11.04 Package: mysql-server-5.1 5.1.54-1ubuntu4 ProcVersionSignature: Ubuntu 2.6.38-11.48-generic-pae 2.6.38.8 Uname: Linux 2.6.38-11-generic-pae i686 NonfreeKernelModules: fglrx Architecture: i386 Date: Sat Aug 27 17:39:24 2011 ErrorMessage: subprocess installed post-installation script returned error exit status 100 InstallationMedia: Ubuntu 11.04 Natty Narwhal - Release i386 (20110427.1) SourcePackage: mysql-5.1 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: mysql-5.1 (Ubuntu) Importance: Undecided Status: New ** Tags: apport-package i386 natty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/835715 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 835715] Re: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/835715 Title: package mysql-server-5.1 5.1.54-1ubuntu4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 100 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/835715/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs