GNU bug report logs - #33537
guix system error: In procedure swapon: "/dev/sda2": Invalid argument

Previous Next

Package: guix;

Reported by: <znavko <at> tutanota.com>

Date: Wed, 28 Nov 2018 07:32:01 UTC

Severity: normal

Tags: notabug

Done: ludo <at> gnu.org (Ludovic Courtès)

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 33537 in the body.
You can then email your comments to 33537 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#33537; Package guix. (Wed, 28 Nov 2018 07:32:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to <znavko <at> tutanota.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 28 Nov 2018 07:32:02 GMT) Full text and rfc822 format available.

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

From: <znavko <at> tutanota.com>
To: Bug Guix <bug-guix <at> gnu.org>
Subject: guix system error: In procedure swapon: "/dev/sda2": Invalid argument
Date: Wed, 28 Nov 2018 08:24:21 +0100 (CET)
[Message part 1 (text/plain, inline)]
Guix is not possible to start swap device/dev/sda2. I noticed this:

# guix system reconfigure /etc/config.scm
...
guix system: error: exception caught while executing 'start' on service 'swap-/dev/sda2':
In procedure swapon: "/dev/sda2": Invalid argument...

# cat /etc/config.scm
...
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
  (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (target "/dev/sda")))
  (file-systems (cons (file-system
                        (device "/dev/sda1") (mount-point "/") (type "ext4"))
                      %base-file-systems))
  (swap-devices '("/dev/sda2"))

  (users (cons* (user-account (name "bob") (group "users")......

I've read manual and I do not know what is wrong:
https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi?id=1c6c0ad067b558fcbebd87e8cb51d342d808163e#n6878 <https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi?id=1c6c0ad067b558fcbebd87e8cb51d342d808163e#n6878>


# free -m
              total        used        free      shared  buff/cache   available
Mem:           1880        1187          44         181         649         701
Swap:             0           0           0


Swap really did not worked ever in my Guix installation. Let me know what ought to be done?
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33537; Package guix. (Wed, 28 Nov 2018 07:35:01 GMT) Full text and rfc822 format available.

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

From: <znavko <at> tutanota.com>
To: <33537 <at> debbugs.gnu.org>
Subject: Re: bug#33537: Acknowledgement (guix system error: In procedure
 swapon: "/dev/sda2": Invalid argument)
Date: Wed, 28 Nov 2018 08:34:33 +0100 (CET)
[Message part 1 (text/plain, inline)]

-- 
 Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: 
 https://tutanota.com


Nov 28, 2018, 10:32 AM by help-debbugs <at> gnu.org:

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  > bug-guix <at> gnu.org <mailto:bug-guix <at> gnu.org>
>
> If you wish to submit further information on this problem, please
> send it to > 33537 <at> debbugs.gnu.org <mailto:33537 <at> debbugs.gnu.org>> .
>
> Please do not send mail to > help-debbugs <at> gnu.org <mailto:help-debbugs <at> gnu.org>>  unless you wish
> to report a problem with the Bug-tracking system.
>
> -- 
> 33537: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33537 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33537>
> GNU Bug Tracking System
> Contact > help-debbugs <at> gnu.org <mailto:help-debbugs <at> gnu.org>>  with problems
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33537; Package guix. (Wed, 28 Nov 2018 07:37:02 GMT) Full text and rfc822 format available.

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

From: <znavko <at> tutanota.com>
To: Bug Guix <bug-guix <at> gnu.org>
Subject: Re: guix system error: In procedure swapon: "/dev/sda2": Invalid
 argument
Date: Wed, 28 Nov 2018 08:30:13 +0100 (CET)
[Message part 1 (text/plain, inline)]
# fdisk -l
...
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 230000000 229997953 109.7G 83 Linux
/dev/sda2       230000640 234441647   4441008   2.1G 82 Linux swap / Solaris
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33537; Package guix. (Wed, 28 Nov 2018 08:02:01 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: znavko <at> tutanota.com,33537 <at> debbugs.gnu.org
Subject: Re: bug#33537: Acknowledgement (guix system error: In procedure
 swapon:	"/dev/sda2": Invalid argument)
Date: Wed, 28 Nov 2018 09:01:18 +0100
Just to be sure, could you run "mkswap /dev/sda2"?

Le 28 novembre 2018 08:34:33 GMT+01:00, znavko <at> tutanota.com a écrit :
>




Information forwarded to bug-guix <at> gnu.org:
bug#33537; Package guix. (Wed, 28 Nov 2018 09:28:02 GMT) Full text and rfc822 format available.

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

From: <znavko <at> tutanota.com>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 33537 <33537 <at> debbugs.gnu.org>
Subject: Re: bug#33537: Acknowledgement (guix system error: In procedure
 swapon:	"/dev/sda2": Invalid argument)
Date: Wed, 28 Nov 2018 10:27:08 +0100 (CET)
[Message part 1 (text/plain, inline)]
Thank you, Julien Lepiller! That exactly was what I need! 


Nov 28, 2018, 11:01 AM by julien <at> lepiller.eu:

> Just to be sure, could you run "mkswap /dev/sda2"?
>
> Le 28 novembre 2018 08:34:33 GMT+01:00, > znavko <at> tutanota.com <mailto:znavko <at> tutanota.com>>  a écrit :
>
>>
>>

[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33537; Package guix. (Wed, 28 Nov 2018 13:28:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: <znavko <at> tutanota.com>
Cc: 33537 <at> debbugs.gnu.org
Subject: Re: bug#33537: guix system error: In procedure swapon: "/dev/sda2":
 Invalid argument
Date: Wed, 28 Nov 2018 14:27:32 +0100
Hi,

<znavko <at> tutanota.com> skribis:

> # guix system reconfigure /etc/config.scm
> ...
> guix system: error: exception caught while executing 'start' on service 'swap-/dev/sda2':
> In procedure swapon: "/dev/sda2": Invalid argument...

According to swapon(2), there are 3 conditions that can lead to this
error:

       EINVAL The file path exists, but refers neither to a regular  file  nor  to  a
              block device;

       EINVAL (swapon())  The  indicated path does not contain a valid swap signature
              or resides on an in-memory filesystem such as tmpfs(5).

       EINVAL (since Linux 3.4)
              (swapon()) An invalid flag value was specified in flags.

Did you run “mkswap /dev/sda2” beforehand?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#33537; Package guix. (Wed, 28 Nov 2018 13:29:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: <znavko <at> tutanota.com>
Cc: Julien Lepiller <julien <at> lepiller.eu>, 33537 <33537 <at> debbugs.gnu.org>
Subject: Re: bug#33537: Acknowledgement (guix system error: In procedure
 swapon:	"/dev/sda2": Invalid argument)
Date: Wed, 28 Nov 2018 14:28:16 +0100
<znavko <at> tutanota.com> skribis:

> Thank you, Julien Lepiller! That exactly was what I need! 

Ah, good.  :-)

Closing!

Ludo’.




Added tag(s) notabug. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Wed, 28 Nov 2018 13:29:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 33537 <at> debbugs.gnu.org and <znavko <at> tutanota.com> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Wed, 28 Nov 2018 13:29:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 27 Dec 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 115 days ago.

Previous Next


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