Bug 19728 - Rpm cpio unpack error when installing freedroidrpg or texlive-collection-basic on btrfs (-ENOSPC strikes back)
Summary: Rpm cpio unpack error when installing freedroidrpg or texlive-collection-basi...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL: https://btrfs.wiki.kernel.org/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-07 17:38 CET by Otto Leipälä
Modified: 2024-02-26 14:04 CET (History)
7 users (show)

See Also:
Source RPM: kernel
CVE:
Status comment:


Attachments

Description Otto Leipälä 2016-11-07 17:38:34 CET
Try to install freedroidrpg-data package fails to install due to cpio: rename error with updated rpm version rpm-4.13.0-3.mga6.

Freedroidrpg is only package fails to install.

error: archive file /usr/share/games/freedroidrpg/graphics/items/weapons/mace/portrait_0002.jpg unpacking fails: cpio: rename
ERROR: 'unpack' failed for freedroidrpg-data-0.16.1-1.mga6.noarch
error: freedroidrpg-data-0.16.1-1.mga6.noarch: install fails
Comment 1 Marja Van Waes 2016-11-07 19:45:19 CET
I can _not_ reproduce this on a 64bit system with updated rpm-4.13.0-3.mga6 and with cpio-2.12-3.mga6

Installing freedroid  + freedroidrpg-data works fine, without error.

@ Otto

Did you hit this on a 32bit, or on a 64bit system?

What is the output of:

   rpm -qa | grep cpio

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

Comment 2 Otto Leipälä 2016-11-07 19:57:56 CET
This is 64bit system and cpio-2.12-3.mga6.
Comment 3 Marja Van Waes 2016-11-07 20:15:03 CET
(In reply to Otto Leipälä from comment #2)
> This is 64bit system and cpio-2.12-3.mga6.

So you seem to have everything the same as I have.

Can you start, as root, 

   journalctl -af 2>&1 | tee journal.txt

and then again try to install those packages.

If it fails again, then please attach journal.txt to this bug report.

(I'm not sure it'll contain more information than you already gave, but it won't harm)
Comment 4 Otto Leipälä 2016-11-07 20:32:14 CET
This is only in journal localhost [RPM][3193]: install freedroidrpg-data-0.16.1-1.mga6.noarch: failure.
Comment 5 Marja Van Waes 2016-11-07 20:51:05 CET
(In reply to Otto Leipälä from comment #4)
> This is only in journal localhost [RPM][3193]: install
> freedroidrpg-data-0.16.1-1.mga6.noarch: failure.

So it still fails :-(

@ rpmstack maintainers
@ Akien

I don't have a clue why Otto can't install freedroidrpg-data, do you have any ideas?

Keywords: NEEDINFO => (none)
CC: (none) => rpmstack, rverschelde

Comment 6 Marja Van Waes 2016-11-07 21:00:59 CET
@ Otto

Btw, what is the output of:

   ll -d /usr/share/games
Comment 7 Otto Leipälä 2016-11-07 21:05:32 CET
Priviledges is this: drwxr-xr-x 1 root root.

Maybe remi have idea what cause this as he builds most of games.
Comment 8 Thierry Vignaud 2016-11-08 00:14:11 CET
Could be the usual packaging bug where a directory is replaced by a file or a symlink (or vice versa)
Was it an install or a package update? (aka was an older version previously installed?)

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud
Source RPM: (none) => freedroidrpg-data

Comment 9 Otto Leipälä 2016-11-08 07:15:37 CET
It was install not update from previous version.
Comment 10 Marja Van Waes 2016-11-08 09:32:05 CET
(In reply to Thierry Vignaud from comment #8)
> Could be the usual packaging bug where a directory is replaced by a file or
> a symlink (or vice versa)
> Was it an install or a package update? (aka was an older version previously
> installed?)

(In reply to Otto Leipälä from comment #9)
> It was install not update from previous version.

I did clean install, too (after first removing the package, and verifying that  /usr/share/games/freedroidrpg/ had been removed, too), when I could _not_ reproduce the issue :-/
Comment 11 Otto Leipälä 2016-11-08 09:36:37 CET
Next packages fails with same error texlive-collection-basic and poppler.

error: archive file /usr/share/texmf-dist/fonts/tfm/urw35vf/helvetic/uhvbo8c.tfm 
failed to uncompress: cpio: rename
ERROR: 'unpack' failed for texlive-collection-basic-20160523-6.mga6.noarch
virhe: texlive-collection-basic-20160523-6.mga6.noarch: install failed
    45/51: xsltproc              ##################################################################################
    46/51: mutagen               ##################################################################################
    47/51: libwpd-tools          ##################################################################################
    48/51: poppler               ##################################################################################
warning: %posttrans(texlive-20160523-1.mga6.x86_64) skript fails, returned 127
ERROR: 'script' failed for poppler-0.47.0-1.mga6.x86_64
Comment 12 Marja Van Waes 2016-11-08 09:41:38 CET
@ Otto

How much free space do you have on the partition where /usr lives?
Comment 13 Otto Leipälä 2016-11-08 09:46:24 CET
21 gigas btrfs from 30g / partition should not be size problem.
Comment 14 Pascal Terjan 2016-11-08 09:49:38 CET
Please post:

ls -l /usr/share/games/freedroidrpg/graphics/items/weapons/mace/portrait_0002.jpg /usr/share/texmf-dist/fonts/tfm/urw35vf/helvetic/uhvbo8c.tfm

CC: (none) => pterjan

Comment 15 Pascal Terjan 2016-11-08 09:52:28 CET
And while we are at it, ls -ld /usr/share/games/freedroidrpg /usr/share/games/freedroidrpg/graphics /usr/share/games/freedroidrpg/graphics/items /usr/share/games/freedroidrpg/graphics/items/weapons /usr/share/games/freedroidrpg/graphics/items/weapons/mace
Comment 16 Thierry Vignaud 2016-11-08 09:58:53 CET
(In reply to Otto Leipälä from comment #13)
> 21 gigas btrfs from 30g / partition should not be size problem.

Indeed it can.
Btrfs is prone to -ENOSPC errors despite having lots of free space...

Source RPM: freedroidrpg-data => freedroidrpg-data, kernel?
Summary: Rpm cpio unpack error when installing freedroidrpg => Rpm cpio unpack error when installing freedroidrpg on btrfs

Comment 17 Otto Leipälä 2016-11-08 10:15:52 CET
btrfs fi show
Label: none  uuid: 10844522-ec7b-4017-a3ff-1d8f6e8e4419
        Total devices 1 FS bytes used 8.05GiB
        devid    1 size 29.30GiB used 10.52GiB path /dev/sda2

btrfs fi df /
Data, single: total=10.01GiB, used=7.86GiB
System, single: total=4.00MiB, used=16.00KiB
Metadata, single: total=520.00MiB, used=196.78MiB
GlobalReserve, single: total=18.56MiB, used=0.00B

@Pascal Terjan ld can't show any information something is not installed.
Comment 18 Pascal Terjan 2016-11-08 11:26:17 CET
Yes, hence my question. I wanted to know what exists and what doesn't.
Comment 19 Otto Leipälä 2016-11-08 11:33:09 CET
Freedroidrpg main meta package installs but not -data package what install files to /usr/share/games.
Comment 20 Marja Van Waes 2016-11-08 12:58:10 CET
CC'ing kernel maintainers. I don't know how to read the information Otto gave in comment 17, nor do I know whether more information is needed to rule out or confirm) the problem is with Btrfs.

Summary: Rpm cpio unpack error when installing freedroidrpg on btrfs => Rpm cpio unpack error when installing freedroidrpg or texlive-collection-basic on btrfs
Source RPM: freedroidrpg-data, kernel? => freedroidrpg-data, texlive-texmf, kernel?
Keywords: NEEDINFO => (none)
CC: (none) => kernel

Thierry Vignaud 2016-11-08 13:25:13 CET

URL: (none) => https://btrfs.wiki.kernel.org/index.php/FAQ#How_much_free_space_do_I_have.3F

Comment 21 Otto Leipälä 2016-11-08 13:54:39 CET
It's btrfs i did rule my main install to see if ext4 works,it install all packages without no any errors as i have 50mb 4g connection speed is quite good 1-5mb/s to do mini install.

I did even backported freedroidrpg some time ago to Mageia 5 with same amount of packages installed,only expection was i did have compress-force=zlib added in stage2 custom lines in expert partitioning.
Thierry Vignaud 2016-11-08 14:02:47 CET

Summary: Rpm cpio unpack error when installing freedroidrpg or texlive-collection-basic on btrfs => Rpm cpio unpack error when installing freedroidrpg or texlive-collection-basic on btrfs (-ENOSPC strikes back)
Source RPM: freedroidrpg-data, texlive-texmf, kernel? => kernel

Comment 22 Neal Gompa 2016-11-08 14:23:28 CET
There is a patch pending in the btrfs ML related to ENOSPC issues with compression enabled[1]. Aside from the btrfs dedupe work, I don't know of any other pending ENOSPC issues that need to be addressed.

Most of the ENOSPC issues should be resolved with the landing of the rework in Linux kernel 4.8[2] aside from the one targeted at compressed filesystems.

[1]: https://patchwork.kernel.org/patch/9411743/
[2]: http://www.phoronix.com/scan.php?page=news_item&px=Btrfs-Linux-4.8-ENOSPC

CC: (none) => ngompa13

Comment 23 Otto Leipälä 2016-11-08 14:29:02 CET
Should that affect if no compression is enabled ? as that system where that fails happening was not compressed at all.

I think it's good time to stick with ext4 it's way more stable and usable filesystem right now i see btrfs have potential but it's in year 2040 or later.
Comment 24 Neal Gompa 2016-11-08 14:29:51 CET
(In reply to Otto Leipälä from comment #23)
> Should that affect if no compression is enabled ? as that system where that
> fails happening was not compressed at all.
> 
> I think it's good time to stick with ext4 it's way more stable and usable
> filesystem right now i see btrfs have potential but it's in year 2040 or
> later.

What kernel are you running?
Comment 25 Otto Leipälä 2016-11-08 14:42:48 CET
I am running 4.8.6-desktop-1.mga6.
Marja Van Waes 2016-11-11 20:38:53 CET

Assignee: bugsquad => kernel

Comment 26 Otto Leipälä 2024-02-26 14:04:53 CET
I'll close this as resolved as bug is too old...

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


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