Bug 5746 - An error occured: One big transaction - Upgrading n to N+1. Upgrade failed.
Summary: An error occured: One big transaction - Upgrading n to N+1. Upgrade failed.
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: High critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
: 8901 (view as bug list)
Depends on:
Blocks: 15637
  Show dependency treegraph
 
Reported: 2012-05-04 12:16 CEST by claire robinson
Modified: 2015-04-07 10:56 CEST (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
report.bug.zip (396.60 KB, application/zip)
2012-05-04 12:17 CEST, claire robinson
Details
after-reboot-bug5746.tar.xz from after the reboot (406.02 KB, application/x-xz)
2012-05-06 15:51 CEST, claire robinson
Details

Description claire robinson 2012-05-04 12:16:21 CEST
An Error Ocurred
One big transaction - http://dl.dropbox.com/u/4147101/DSC01033.JPG

Happened after Looking at packages already installed and before starting installing

Upgrade stalled with 10 seconds left. http://dl.dropbox.com/u/4147101/DSC01034.JPG
Found scrolling rpmdb errors in tty1 http://dl.dropbox.com/u/4147101/DSC01035.JPG
Found missing packages in tty4 http://dl.dropbox.com/u/4147101/DSC01036.JPG

Reboot with ctrl-alt-del grub not yet updated, boot fails with old kernel last msg failed starting org.Freedesktop.Avahi: timed out
tty2 login but USB storage not recognised. modprobe usb_storage fails with libkmod: index_mm_open: major version check fail 65537 instead of 2953311319

Report.bug.zip attached
claire robinson 2012-05-04 12:16:28 CEST

Priority: Normal => release_blocker

Comment 1 claire robinson 2012-05-04 12:17:19 CEST
Created attachment 2177 [details]
report.bug.zip
Comment 2 claire robinson 2012-05-04 12:20:50 CEST
It seems / partition is full
Comment 3 claire robinson 2012-05-04 12:23:41 CEST
# df

http://dl.dropbox.com/u/4147101/DSC01037.JPG
Anne Nicolas 2012-05-04 12:36:25 CEST

CC: (none) => ennael1, thierry.vignaud

Comment 4 claire robinson 2012-05-04 12:58:02 CEST
After removing /usr/share/doc to clear some space and retrying to upgrade it gets to Package Group Selection and then..

A fatal error occurred: unable to open rpmdb (9).
Comment 5 claire robinson 2012-05-04 13:02:32 CEST
If it matters, this was an upgrade from mga1 to mga2 prerelease RC with the latest DVD x86_64 (v5) dumped onto usb stick. 

I had installed everything I could think of into mga1 to test the upgrade and there was something like 2GB free space on /.
Comment 6 claire robinson 2012-05-04 13:23:50 CEST
Clicking OK to the rpmdb (9) error gives another error..

An error occurred
Can't call method "traverse_tag" on an undefined value.
Comment 7 Thierry Vignaud 2012-05-04 14:58:05 CEST
Your rpmdb errors show the fs is full...
Due to this rpmdb might have been corrupted hence the error
Comment 8 claire robinson 2012-05-04 16:47:58 CEST
It wasn't full before the error, there was approximately 2GB free on / (comment 5)
Comment 9 Thierry Vignaud 2012-05-04 17:09:30 CEST
Yes but it got filled.
Probably b/c of the unique transaction (old packages get removed only at end).
For the record, could you attach your /etc/urpmi/urpmi.cfg?
Comment 10 Thierry Vignaud 2012-05-04 17:12:11 CEST
If you are able to reproduce, please stop the install, reboot and send me the bug5746.tar.xz files resulting from:

urpmi --auto-select --bug bug5746
tar cfa bug5746{.tar.xz,}
Comment 11 Thierry Vignaud 2012-05-04 17:12:35 CEST
Or do it from the installer console (just run "chroot /mnt" first)
Comment 12 claire robinson 2012-05-04 18:16:02 CEST
Isn't the installer supposed to check there is enough space before installing? 

I remember failing upgrade from mandriva due to not enough space (bug 2383 & bug 1342) but from what I have heard this relates to all packages being downloaded at once to /var/tmp before they are installed and so filling up the disk.

The installation was unbootable, only into failsafe and then couldn't mount any usb storage so has now been overwritten.
Comment 13 claire robinson 2012-05-04 18:18:57 CEST
s/failsafe/old kernel/

Old kernel was unusable to boot it properly but I was able to log in on tty2. Grub wasn't updated. I gave up trying to make it boot from the new kernel and moved on.
Comment 14 Thierry Vignaud 2012-05-04 18:40:04 CEST
It does check.
But when URPM fallback to one big transaction, then the needed temporary space is quite much bigger (and hard to count)
Comment 15 claire robinson 2012-05-06 15:46:11 CEST
This has occurred twice now out of 3 or 4 upgrades.

I'll attach two logs, one is from chroot in the installer which left mainly 0 byte files and the second is after reboot.

After the reboot it had removed mga1 medias and left only the mga2 dvd so it should be valid.
Comment 16 claire robinson 2012-05-06 15:51:28 CEST
Created attachment 2194 [details]
after-reboot-bug5746.tar.xz from after the reboot

This is the file from after the reboot with much more information in it.

The chroot tar.xz was a zero byte file and it won't let me upload it. It should contain one file which wasn't but it was only a 67 byte urpmi.cfg which showed 'core media'.

$ cat bug5746/urpmi.cfg
{
}

core\ media cdrom://x86_64/media/core {
  key-ids: 80420f66
}
Comment 17 claire robinson 2012-05-06 19:03:07 CEST
I created a snapshot in virtualbox, so can return to it if you need any further details, and completed the upgrade process. With 10 seconds left it sat for a long long time with nothing changing in the installer, presumably whilst it was installing all the packages. 

It did complete though and moved on to creating the bootloader, which failed. I don't know if it is related in any way but that is bug 5774.

After rebooting, it found updates with only the DVD as media.

It seemed to have circular dependencies as it asked to choose between default-windowmaker-desktop and mageia-windowmaker-desktop, then gave a choice of python-setuptools, python-virtualenv or python3-setuptools.
Choosing python-setuptools just asks again to make the same choice and then if chosen for a 2nd time says python-zope-interface cannot be selected.

Again, I'm not sure if that is related in any way.
Comment 18 John Bowden 2012-05-08 03:55:14 CEST
I tried to reproduce this on a mag1 64bit server box.It had:
hda 152GB
/          hda1  60gb
swp        hda6  3gb
/home      hda6  73gb

hdb  74gb
/var  /www hdb1  28gb
/var/ftp   hdb5  46gb

I installed an extra 3.1gb of assorted software, which left about 56gb free and
did updates before rebooting and starting the upgrade.
There were error about some missing packages, about 30. I quickly scanned the
file names and they seemed like they were from most of the extra stuff I had
added. After logging in the anakonda thing moved address books and vcards.
Konsole, konversation and network manager all started up, they were running
when I shut down the machine before the upgrade.
After leaving the box to settle down it then notified me of some updates and
had problems. I'm investicating the update problem at the moment.

CC: (none) => led43john

Comment 19 claire robinson 2012-05-08 10:29:00 CEST
This doesn't seem to be affected by the size of the / partition. It happened to me last time with 15GB free space there. The rpmdb (9) previously was just because the 'one big transaction' had filled the partition.

I would imagine that would happen when this occurs if more than around 50% of the / partition is used, which is likely to be most of the time.
Manuel Hiebel 2012-05-08 21:22:40 CEST

Blocks: (none) => 3342

Comment 20 Anne Nicolas 2012-05-09 22:09:23 CEST
Lack of space needs some more time so that manage it can be improved, rather for Mageia 3

Priority: release_blocker => High
Target Milestone: --- => Mageia 3

Comment 21 Marja Van Waes 2012-05-26 13:03:32 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 22 Dave Hodgins 2012-05-27 23:21:17 CEST
This bug report is about using mgaapplet-upgrade-helper to upgrade,
so the bug report should be kept as a cauldron bug report.

Keywords: NEEDINFO => (none)
CC: (none) => davidwhodgins

Comment 23 Manuel Hiebel 2013-02-01 01:20:40 CET
*** Bug 8901 has been marked as a duplicate of this bug. ***

CC: (none) => alainderaedt

Manuel Hiebel 2013-08-06 22:09:50 CEST

Blocks: 3342 => (none)
Target Milestone: Mageia 3 => ---
Summary: An error occured: One big transaction - Upgrading mga1 to Pre RC. Upgrade failed. => An error occured: One big transaction - Upgrading n to N+1. Upgrade failed.

Comment 24 Dick Gevers 2014-11-15 08:56:25 CET
@MrsB: is this not needing whiteboard: 5beta1 ? Thanks
Marja Van Waes 2015-04-06 23:10:58 CEST

Blocks: (none) => 15637

Comment 25 Thierry Vignaud 2015-04-07 06:58:09 CEST
Why? the last comments date back from 2012!
Comment 26 claire robinson 2015-04-07 10:54:39 CEST
I've not seen this recently, but upgrade testing has been limited so far with so much other stuff going on.

Let's close it and reopen later if it still occurs.

Status: NEW => RESOLVED
Resolution: (none) => OLD

Comment 27 Marja Van Waes 2015-04-07 10:56:56 CEST
(In reply to Thierry Vignaud from comment #25)
> Why? the last comments date back from 2012!

Because I was testing whether adding some (but not all) old upgrade bugs to the tracker would give more chance of someone confirming it got fixed or still exists, then just pinging in old upgrade bugs.

CC: (none) => marja11


Note You need to log in before you can comment on or make changes to this bug.