From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cEW8EGB1nV+vIgAA0tVLHw (envelope-from ) for ; Sat, 31 Oct 2020 14:32:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YG6dDGB1nV9hBAAAB5/wlQ (envelope-from ) for ; Sat, 31 Oct 2020 14:32:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 62E9E94051B for ; Sat, 31 Oct 2020 14:31:59 +0000 (UTC) Received: from localhost ([::1]:44908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYrvB-00028Y-CI for larch@yhetil.org; Sat, 31 Oct 2020 10:31:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYrv2-000282-IP for help-guix@gnu.org; Sat, 31 Oct 2020 10:31:48 -0400 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYruz-0001xq-LE for help-guix@gnu.org; Sat, 31 Oct 2020 10:31:48 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1604154697; cv=none; d=zohomail.com; s=zohoarc; b=hlzup/LcGXrO7nNv8i+B5oy/n87ba4FTT4zBlO0AfrBHz2k+fGRHLD6DvCwXidSeD5rztZmXYDckHvZjQBEhPffuJUPFW6ySoz2B04NbkKqX62BiVzw6lK4C2oroH5aTXMku8/ZcZEZs+nCc7W5A194cre+RXSxmqw8Ag0i0pO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604154697; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=Wp+LAK/5Dnya6rO5B2ep3n7g0fjtxLgZPC5CJ51YNN4=; b=R3zNpU2f3UT9vxkr3TveksM0jIkPQoU+VtnYSRMwefJ+/lm5lx2jk7/hI5InE4YagrHw22LSi3ZXYjY47xwCAY0BocrcX2JlcQJ76muY6yGRtx7UPlLU7DjxLuntRiUuIi4G8lzsUWC2Eg72VxPfNVAciO+NFT1Lk3uT5LGr5Vk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=beaver-labs.com; spf=pass smtp.mailfrom=edk@beaver-labs.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1604154697; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Wp+LAK/5Dnya6rO5B2ep3n7g0fjtxLgZPC5CJ51YNN4=; b=NUIyDPqFRRFpw4dXCFtF6tOwCOs6Mj2/sVW2o+iuRoNn17wOVqA+iUWjXi7xL8bo SjWXiJ1upWTtQCDGrAOl5Fo2Fm5JFJW/T8ulQ7kJIHmgdKmDa1fVw+t6KpBB5qJnhjt 9UQJWAOOmFtsfd9GUngVYh08xxpJKEx3iCxk5UsM= Received: from Rasoir (lfbn-idf3-1-1319-142.w92-170.abo.wanadoo.fr [92.170.248.142]) by mx.zohomail.com with SMTPS id 1604154695261311.3785423241926; Sat, 31 Oct 2020 07:31:35 -0700 (PDT) User-agent: mu4e 1.4.4; emacs 27.1 From: edk@beaver-labs.com To: help-guix@gnu.org Subject: guix system docker-image : missing root file system and 'incompatible bytecode kind' Message-ID: <87blgibh6z.fsf@rdklein.fr> Date: Sat, 31 Oct 2020 15:31:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=edk@beaver-labs.com; helo=sender4-op-o11.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/31 10:31:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none (invalid DKIM record) header.d=beaver-labs.com header.s=zoho header.b=NUIyDPqF; arc=pass (zohomail.com:s=zohoarc:i=1); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.01 X-TUID: TXUPIb3g3Z30 Dear Guix, At the request of a client, I am trying to create a docker image for a guix package I wrote. I pasted my operating-system declaration below. I try to run guix system docker-image denatting.scm If I remove the dummy root file system, I get the error: > /home/edouard/src/denatting/denatting.scm:36:0: error: missing root file = system If I put a dummy root filesystem (I put '/dev/vda1' there arbitrarily, the field is mandatory and I have no idea what block device is available under docker, I was under the impression that virtualized operating system did not neeed a root file system), I can create an image and load it but when I invoke docker run I get the error message I also pasted below "In procedure load-thunk-from-memory: incompatible bytecode kind" and the service does not start. What I don't understand is that if I use `guix pack` I can get a docker image with my software installed. However I must then run docker run denatting:latest denat to run the server. My goal here is to create a shepherd service so that the client just has to run docker run denatting:latest without habing to specify a command, and with shepherd monitoring the server and restarting it when it crashes. Any help would be appreciated, Thanks in advance, Edouard. -------denatting.scm---8<----- (define-module (denatting) #:use-module (gnu system) #:use-module (gnu system file-systems) #:use-module (gnu bootloader) #:use-module (gnu bootloader grub) #:use-module (gnu services) #:use-module (gnu services base) #:use-module (gnu services shepherd) #:use-module (beaver packages scheme-xyz) ;#:use-module (oop goops) #:use-module (guix gexp) ;#:use-module (guix records) ;#:use-module (ice-9 match) #:export (denatting-service)) (define denatting-service (lambda (_) (list (shepherd-service (provision '(denatting)) (documentation "Denatting web server") (respawn? #t) (start #~((make-forkexec-constructor (list "denat") #:log-file "/var/log/denatting.log"))) (stop #~((make-kill-destructor))))))) (define denatting-service-type (service-type (name 'denatting) (extensions (list (service-extension shepherd-root-service-type denatting-service))) (default-value #f))) (operating-system (host-name "denatting") (timezone "Europe/Paris") (bootloader (bootloader-configuration (bootloader grub-bootloader))) (packages (append (list gerbil-denatting) %base-packages)) ;; (file-systems %base-file-systems) (file-systems (append (list (file-system (mount-point "/") (device "/dev/vda1") (type "ext4"))) %base-file-systems)) (services (append (list (service denatting-service-type)) %base-services))) ----------------Error message I get with the dummy file system---8<---- ;;; WARNING: loading compiled file /gnu/store/08da6i38fzn9g36gyq443k03f84nk= 8rk-module-import-compiled/guix/build/utils.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/build/activation.go failed : ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/system/accounts.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/records.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/build/accounts.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/combinators.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/build/linux-boot.go failed : ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/build/syscalls.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/build/linux-modules.go fai led: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/elf.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/glob.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/build/union.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; Failed to autoload call-with-gzip-input-port in (zlib): ;;; missing interface for module (zlib) ;;; Failed to autoload call-with-gzip-input-port in (zlib): ;;; missing interface for module (zlib) ;;; Failed to autoload call-with-gzip-input-port in (zlib): ;;; missing interface for module (zlib) ;;; Failed to autoload call-with-gzip-input-port in (zlib): ;;; missing interface for module (zlib) ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/build/file-systems.go fail ed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/system/uuid.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/gnu/system/file-systems.go fai led: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/diagnostics.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/colors.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/memoization.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind ;;; WARNING: loading compiled file /gnu/store/xfrwjx47iwv8pnn6ml22fj6jnm2jm= djm-module-import-compiled/guix/profiling.goPlease wait while gathering ent= ropy to generate the key pair; this may take time... error in finalization thread: Success failed to start service 'file-systems' failed to start service 'user-file-systems' failed to start service 'root-file-system' failed to start service 'user-processes' failed to start service 'host-name' failed to start service 'user-homes' failed to start service 'nscd' failed to start service 'udev' failed to start service 'guix-daemon' failed to start service 'urandom-seed' failed to start service 'syslogd' failed to start service 'loopback' failed to start service 'virtual-terminal' failed to start service 'denatting' failed to start service 'mcron' ^CBacktrace: 2 (primitive-load "/gnu/store/n8dw1ybmfj3y15h5ax1ddcx1kmp?") In shepherd.scm: 353:22 1 (main . _) In shepherd/system.scm: 78:10 0 (_ _) shepherd/system.scm:78:10: In procedure reboot: Operation not permitted: RB= _AUTOBOOT ------------------guix describe----------8<---- G=C3=A9n=C3=A9ration 3 30 oct. 2020 21:57:15 (actuelle) beaverlabs d878892 URL du d=C3=A9p=C3=B4t : https://gitlab.com/edouardklein/guix branche: beaverlabs commit : d8788927c7e8b29702adb971bf1ffbc3235fba22 guix 94c38d5 URL du d=C3=A9p=C3=B4t : https://git.savannah.gnu.org/git/guix.git branche: master commit : 94c38d54c9f061ffa0ccfe4be498c8e1b3c2a709