Subject: Exception when running guix pull
From: Simen Endsjø <[email-masked]>
To: [email-masked]
Date: Sat, 22 Apr 2023 12:28:17 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

I get an error when running `guix pull' on my server:

┌────
│ ice-9/boot-9.scm:1685:16: In procedure raise-exception:
│ In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
└────

The derivation output just lists the progress up to 65% before it fails and
isn’t of any use.

`guix describe':
┌────
│ Generation 14	Apr 09 2023 20:16:43	(current)
│   guix 02033bf
│     repository URL: https://git.savannah.gnu.org/git/guix.git
│     branch: master
│     commit: 02033bfc05a1e82b12e80c6d000e1724e910e899
└────

More detailed output:
┌────
│ |   |   building of `/gnu/store/x3ggzclnvsh9mp17iw0mrxf8fs7l31cy-guix-packages-base.drv': trying to build
│ |   |   locking path `/gnu/store/dnjmnghad7s6mpmw6jchj0hhq48wpvfb-guix-packages-base'
│ |   |   lock acquired on `/gnu/store/dnjmnghad7s6mpmw6jchj0hhq48wpvfb-guix-packages-base.lock'
│ |   |   hook reply is `decline'
│ |   |   building path(s) `/gnu/store/dnjmnghad7s6mpmw6jchj0hhq48wpvfb-guix-packages-base'
│ |   |   |   found build user `guixbuilder01'
│ |   |   |   found build user `guixbuilder02'
│ |   |   |   found build user `guixbuilder03'
│ |   |   |   found build user `guixbuilder04'
│ |   |   |   found build user `guixbuilder05'
│ |   |   |   found build user `guixbuilder06'
│ |   |   |   found build user `guixbuilder07'
│ |   |   |   found build user `guixbuilder08'
│ |   |   |   found build user `guixbuilder09'
│ |   |   |   found build user `guixbuilder10'
│ |   |   |   trying user `guixbuilder01'
│ |   |   |   killing all processes running under uid `999'
│ |   |   |   setting up chroot environment in `/gnu/store/x3ggzclnvsh9mp17iw0mrxf8fs7l31cy-guix-packages-base.drv.chroot'
│ |   |   |   executing builder `/gnu/store/vbcdwklck7cd28j4jv9wchfw60abivfd-guile-3.0.9/bin/guile'
│ |   |   |   @ build-started /gnu/store/x3ggzclnvsh9mp17iw0mrxf8fs7l31cy-guix-packages-base.drv - x86_64-linux /var/log/guix/drvs/x3//ggzclnvsh9mp17iw0mrxf8fs7l31cy-guix-packages-base.drv.gz 15434
│ |   |   building of `/gnu/store/i9kmvwkzakrv4xd7pq8jbs11nb2gj1r0-guix-config-source.drv': trying to build
│ |   |   locking path `/gnu/store/9bg21iqpy82qs4x3qcjmmvbw1ssrn7xn-guix-config-source'
│ |   |   lock acquired on `/gnu/store/9bg21iqpy82qs4x3qcjmmvbw1ssrn7xn-guix-config-source.lock'
│ |   |   wait for build slot
│ |   |   lock released on `/gnu/store/9bg21iqpy82qs4x3qcjmmvbw1ssrn7xn-guix-config-source.lock'
│ |   |   waiting for children
│ |   |   building of `/gnu/store/x3ggzclnvsh9mp17iw0mrxf8fs7l31cy-guix-packages-base.drv': read 41 bytes
│ Backtrace:
│ In guix/store.scm:
│    659:37 19 (thunk)
│ In guix/status.scm:
│     830:4 18 (call-with-status-report _ _)
│ In guix/store.scm:
│    1321:3 17 (_)
│    1298:8 16 (call-with-build-handler _ _)
│    1298:8 15 (call-with-build-handler #<procedure 7fa0cf9916c0 at g…> …)
│ In guix/build/syscalls.scm:
│    1445:3 14 (_)
│    1411:4 13 (call-with-file-lock/no-wait "/var/guix/profiles/per-u…" …)
│ In guix/store.scm:
│   2168:25 12 (run-with-store #<store-connection 256.99 7fa0cf997aa0> …)
│ In guix/scripts/pull.scm:
│     450:4 11 (_ _)
│ In guix/store.scm:
│   2040:38 10 (_ #<store-connection 256.99 7fa0c20e5cd0>)
│ In guix/scripts/package.scm:
│    167:14  9 (build-and-use-profile #<store-connection 256.99 7fa0c…> …)
│ In guix/store.scm:
│   1417:15  8 (_ #<store-connection 256.99 7fa0c20e5cd0> _ _)
│    737:14  7 (process-stderr _ _)
│ In unknown file:
│            6 (display "@ build-log 15434 41\n\r[  0/712] loading...…" …)
│ In guix/status.scm:
│    770:20  5 (write! _ _ _)
│ In srfi/srfi-1.scm:
│    460:18  4 (fold #<procedure 7fa0cf9952a0 at guix/status.scm:659:…> …)
│ In guix/status.scm:
│    660:15  3 (_ (build-log 15434 "\r[  0/712] loading...\t  0.0% …") #)
│    179:23  2 (update-build #<<build-status> building: () downloadin…> …)
│ In ice-9/boot-9.scm:
│   1685:16  1 (raise-exception _ #:continuable? _)
│   1685:16  0 (raise-exception _ #:continuable? _)
│ 
│ ice-9/boot-9.scm:1685:16: In procedure raise-exception:
│ In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
└────