package failed to install/upgrade with error "There's not enough space" if /var/lib/mysql/ is not mounted

Bug #291979 reported by Peter Sankauskas
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: update-manager

mysql could not start because the partition the data files were on was not mounted. No biggy.

ProblemType: Package
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 8.10
ErrorMessage: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)

NonfreeKernelModules: nvidia
Package: update-manager None [modified: /var/lib/dpkg/info/update-manager.list]
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager None [modified: /var/lib/dpkg/info/update-manager.list] failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)
Uname: Linux 2.6.24-21-generic i686

Revision history for this message
Peter Sankauskas (pas256) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

From your log file:
=====
Preparing to replace mysql-server-5.0 5.0.51a-3ubuntu5.1 (using .../mysql-server-5.0_5.0.67-0ubuntu6_i386.deb) ...

 * Stopping MySQL database server mysqld

   ...done.

 * Stopping MySQL database server mysqld

   ...done.

df: `/var/lib/mysql/.': No such file or directory

df: no file systems processed

ERROR: There's not enough space in /var/lib/mysql/

dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.0.67-0ubuntu6_i386.deb (--unpack):

 subprocess pre-installation script returned error exit status 1

 * Stopping MySQL database server mysqld

   ...done.

df: `/var/lib/mysql/.': No such file or directory

df: no file systems processed

 * /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full!

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

dpkg: error while cleaning up:

 subprocess post-installation script returned error exit status 1

=====

It seems that /var/lib/mysql has been removed. Could you please describe the steps you've followed to upgrade.

Thanks.

Changed in update-manager:
status: New → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Sorry, I've read your comment in the description too fast.

Affecting to mysql-dfsg-5.0 . The script should check for the existence of the destination directory before trying to install the package.

Thanks for your time.

Changed in update-manager:
importance: Undecided → Low
status: Incomplete → Triaged
Chuck Short (zulcss)
affects: mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu)
Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Low → Wishlist
tags: added: dist-upgrade
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.