GNU bug report logs - #40043
`guix pack --format=squashfs` fails on CentOS7

Previous Next

Package: guix;

Reported by: Josh Marshall <Josh.Marshall <at> jax.org>

Date: Thu, 12 Mar 2020 17:48:02 UTC

Severity: normal

Done: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40043 in the body.
You can then email your comments to 40043 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#40043; Package guix. (Thu, 12 Mar 2020 17:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josh Marshall <Josh.Marshall <at> jax.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 12 Mar 2020 17:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Josh Marshall <Josh.Marshall <at> jax.org>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: `guix pack --format=squashfs` fails on CentOS7
Date: Thu, 12 Mar 2020 17:47:24 +0000
[Message part 1 (text/plain, inline)]
`guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.

```
$ /var/guix/profiles/per-user/marshjo/current-guix/bin/guix describe
Generation 9	Mar 12 2020 09:28:29	(current)
  guix a595399
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: a595399230a7b1acb0b096b3d5a7474100014299
```
---

The information in this email, including attachments, may be confidential and is intended solely for the addressee(s). If you believe you received this email by mistake, please notify the sender by return email as soon as possible.
[centos-packages.txt.zst (application/octet-stream, attachment)]
[ar594fgxibr6vkrpjq2n2l5mpyycpp-squashfs-pack.gz.squashfs.drv.bz2 (application/x-bzip, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#40043; Package guix. (Sun, 15 Mar 2020 21:47:01 GMT) Full text and rfc822 format available.

Message #8 received at 40043 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: Josh Marshall <Josh.Marshall <at> jax.org>
Cc: 40043 <at> debbugs.gnu.org
Subject: Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7
Date: Sun, 15 Mar 2020 22:46:17 +0100
Hi Josh,

Josh Marshall <Josh.Marshall <at> jax.org> skribis:

> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.

The error message normally says something like:

  View build log at /var/log/guix/drvs/…

Could you post that file?

Also, what is the output of “uname -sr” on this machine?

Thanks in advance!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40043; Package guix. (Mon, 16 Mar 2020 13:40:02 GMT) Full text and rfc822 format available.

Message #11 received at 40043 <at> debbugs.gnu.org (full text, mbox):

From: Josh Marshall <Josh.Marshall <at> jax.org>
To: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Cc: "40043 <at> debbugs.gnu.org" <40043 <at> debbugs.gnu.org>
Subject: Re: [EXTERNAL]Re: bug#40043: `guix pack --format=squashfs` fails on
 CentOS7
Date: Mon, 16 Mar 2020 13:38:56 +0000
Already included as an attachment on the first email.

```
$ uname -sr
Linux 3.10.0-1062.12.1.el7.x86_64
```

________________________________________
From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Sent: Sunday, March 15, 2020 5:46 PM
To: Josh Marshall
Cc: 40043 <at> debbugs.gnu.org
Subject: [EXTERNAL]Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7

Hi Josh,

Josh Marshall <Josh.Marshall <at> jax.org> skribis:

> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.

The error message normally says something like:

  View build log at /var/log/guix/drvs/…

Could you post that file?

Also, what is the output of “uname -sr” on this machine?

Thanks in advance!

Ludo’.
---

The information in this email, including attachments, may be confidential and is intended solely for the addressee(s). If you believe you received this email by mistake, please notify the sender by return email as soon as possible.





Reply sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
You have taken responsibility. (Tue, 24 Mar 2020 17:56:02 GMT) Full text and rfc822 format available.

Notification sent to Josh Marshall <Josh.Marshall <at> jax.org>:
bug acknowledged by developer. (Tue, 24 Mar 2020 17:56:02 GMT) Full text and rfc822 format available.

Message #16 received at 40043-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: Josh Marshall <Josh.Marshall <at> jax.org>
Cc: 40043-done <at> debbugs.gnu.org
Subject: Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7
Date: Tue, 24 Mar 2020 18:55:11 +0100
Hi Josh,

Josh Marshall <Josh.Marshall <at> jax.org> skribis:

> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.
>
> ```
> $ /var/guix/profiles/per-user/marshjo/current-guix/bin/guix describe
> Generation 9	Mar 12 2020 09:28:29	(current)
>   guix a595399
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: a595399230a7b1acb0b096b3d5a7474100014299
> ```

The log you posted reads this:

--8<---------------cut here---------------start------------->8---
Creating 4.0 filesystem on /gnu/store/mhhlqyazyvwz72y6dwh56fs1zlrvrl0h-squashfs-pack.gz.squashfs, block size 131072.

[...]

Number of uids 2
	unknown (0)
	nixbld (987)
Number of gids 2
	unknown (0)
	nixbld (980)
Failed to read existing filesystem - will not overwrite - ABORTING!
--8<---------------cut here---------------end--------------->8---

I was able to reproduce it on a CentOS 7 system and to strace the
‘mksquashfs’ process, and found that this had to do with access to
SELinux extended attributes.

Fixed in commit 53c594cb3f1f783fea18be6da23a863b00c14f5f.

Thanks!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40043; Package guix. (Tue, 24 Mar 2020 17:59:01 GMT) Full text and rfc822 format available.

Message #19 received at 40043-done <at> debbugs.gnu.org (full text, mbox):

From: Josh Marshall <Josh.Marshall <at> jax.org>
To: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Cc: "40043-done <at> debbugs.gnu.org" <40043-done <at> debbugs.gnu.org>
Subject: RE: [EXTERNAL]Re: bug#40043: `guix pack --format=squashfs` fails on
 CentOS7
Date: Tue, 24 Mar 2020 17:58:06 +0000
[Message part 1 (text/plain, inline)]
Thanks!  I look forward to my increased use of `guix` 😊

________________________________
From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Sent: Tuesday, March 24, 2020 1:55:11 PM
To: Josh Marshall <Josh.Marshall <at> jax.org>
Cc: 40043-done <at> debbugs.gnu.org <40043-done <at> debbugs.gnu.org>
Subject: [EXTERNAL]Re: bug#40043: `guix pack --format=squashfs` fails on CentOS7

Hi Josh,

Josh Marshall <Josh.Marshall <at> jax.org> skribis:

> `guix pack --format=squashfs bash-minimal ...` fails on CentOS7 with SELinux disabled.
>
> ```
> $ /var/guix/profiles/per-user/marshjo/current-guix/bin/guix describe
> Generation 9  Mar 12 2020 09:28:29    (current)
>   guix a595399
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: a595399230a7b1acb0b096b3d5a7474100014299
> ```

The log you posted reads this:

--8<---------------cut here---------------start------------->8---
Creating 4.0 filesystem on /gnu/store/mhhlqyazyvwz72y6dwh56fs1zlrvrl0h-squashfs-pack.gz.squashfs, block size 131072.

[...]

Number of uids 2
        unknown (0)
        nixbld (987)
Number of gids 2
        unknown (0)
        nixbld (980)
Failed to read existing filesystem - will not overwrite - ABORTING!
--8<---------------cut here---------------end--------------->8---

I was able to reproduce it on a CentOS 7 system and to strace the
‘mksquashfs’ process, and found that this had to do with access to
SELinux extended attributes.

Fixed in commit 53c594cb3f1f783fea18be6da23a863b00c14f5f.

Thanks!

Ludo’.
---

The information in this email, including attachments, may be confidential and is intended solely for the addressee(s). If you believe you received this email by mistake, please notify the sender by return email as soon as possible.
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 22 Apr 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.