From unknown Mon Sep 08 01:50:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28232: openvpn service configuration fails by default Resent-From: charly bion Original-Sender: "Debbugs-submit" Resent-CC: help-debbugs@gnu.org Resent-Date: Fri, 25 Aug 2017 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28232 X-GNU-PR-Package: openvpn X-GNU-PR-Keywords: To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150367500315466 (code B ref -1); Fri, 25 Aug 2017 15:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2017 15:30:03 +0000 Received: from localhost ([127.0.0.1]:54628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGYd-00041N-3y for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:30:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGDn-0003VQ-97 for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGDg-0007qQ-PT for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:08:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlGDg-0007qG-MK for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:08:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGDf-0004a8-Dt for bug-guix@gnu.org; Fri, 25 Aug 2017 11:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGDb-0007o4-AS for bug-guix@gnu.org; Fri, 25 Aug 2017 11:08:23 -0400 Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]:53920 helo=smtpout20.partage.renater.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGDb-0007nW-1U for bug-guix@gnu.org; Fri, 25 Aug 2017 11:08:19 -0400 Received: from zmtaout02.partage.renater.fr (zmtaout02.partage.renater.fr [194.254.241.30]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id CC724BFABE for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Received: from zmtaout02.partage.renater.fr (localhost [127.0.0.1]) by zmtaout02.partage.renater.fr (Postfix) with ESMTPS id C9E182005A for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaout02.partage.renater.fr (Postfix) with ESMTP id BBF41200D6 for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at zmtaout02.partage.renater.fr Received: from zmtaout02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaout02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kHdjiPZguEA9 for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Received: from zstore21-etu.partage.renater.fr (zstore21-etu.partage.renater.fr [10.254.241.60]) by zmtaout02.partage.renater.fr (Postfix) with ESMTP id A80D02005A for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Date: Fri, 25 Aug 2017 17:08:14 +0200 (CEST) From: charly bion Message-ID: <518966314.925318.1503673694273.JavaMail.zimbra@ensea.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_e26f4007-481f-4e2a-94a2-ca1794241392" X-Originating-IP: [194.254.242.1] X-Mailer: Zimbra 8.7.10_GA_1829 (ZimbraWebClient - FF52 (Linux)/8.7.10_GA_1829) Thread-Index: mwsed48wHPc+UTj0vee22FmnJnjRog== Thread-Topic: openvpn service configuration fails by default X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Fri, 25 Aug 2017 11:30:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=_e26f4007-481f-4e2a-94a2-ca1794241392 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Package: openvpn Version: 2.4.3 Backtrace: In srfi/srfi-1.scm: 592:29 19 (map1 (#< type: # ?)) 592:29 18 (map1 (#< type: # ?)) 592:29 17 (map1 (#< type: # ?)) 592:29 16 (map1 (#< type: # ?)) 592:29 15 (map1 (#< type: # ?)) 592:29 14 (map1 (#< type: # ?)) 592:29 13 (map1 (#< type: # ?)) 592:29 12 (map1 (#< type: # ?)) 592:29 11 (map1 (#< type: # ?)) 592:29 10 (map1 (#< type: # ?)) 592:29 9 (map1 (#< type: # ?)) 592:29 8 (map1 (#< type: # ?)) 592:17 7 (map1 (#< type: # ?)) In gnu/services/vpn.scm: 409:24 6 (_ #< openvpn: #) 379:9 5 (openvpn-config-file client #<) In ice-9/ports.scm: 549:4 4 (call-with-output-string _) 473:4 3 (with-output-to-port _ _) In ice-9/boot-9.scm: 268:13 2 (for-each # ?) In gnu/services/vpn.scm: 112:19 1 (serialize-tls-auth client #f) In unknown file: 0 (string-append #f " " "1") ERROR: In procedure string-append: ERROR: In procedure string-append: Wrong type (expecting string): #f To have this error, I tried do build a vm-image using the openvpn service: (service openvpn-client-service-type (openvpn-client-configuration (proto 'tcp) (ca "ca.crt") (cert "client.crt") (key "client.key") )) Guix doesn't want to build the VM, because of the openvpn service. The problem is in the function serialize-tls-auth (line 110 of the file /gnu/services/vpn.scm). The function tries to concatenate a string with the input of the "tls_auth" field in openvpn_client_configuration. But by default this input's value is #f. Test function are implemented just after this one, but not used. As I don't know what the function is supposed to return, I can't correct this. I'm using Guix 0.13.0 --=_e26f4007-481f-4e2a-94a2-ca1794241392 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Package: openvpn
Version: 2.4.3

Backtrace:
In srfi/srfi-1.scm:
   592:2= 9 19 (map1 (#<<service> type: #<service-type nscd 3a8acc0?> = ?))
   592:29 18 (map1 (#<<service> type: #<servic= e-type guix 3a8ac00?> ?))
   592:29 17 (map1 (#<<serv= ice> type: #<service-type urandom-seed?> ?))
   592:2= 9 16 (map1 (#<<service> type: #<service-type syslog 3a8ac?> = ?))
   592:29 15 (map1 (#<<service> type: #<servic= e-type static-netwo?> ?))
   592:29 14 (map1 (#<<serv= ice> type: #<service-type mingetty 3a2?> ?))
   592:2= 9 13 (map1 (#<<service> type: #<service-type mingetty 3a2?> = ?))
   592:29 12 (map1 (#<<service> type: #<servic= e-type mingetty 3a2?> ?))
   592:29 11 (map1 (#<<serv= ice> type: #<service-type mingetty 3a2?> ?))
   592:2= 9 10 (map1 (#<<service> type: #<service-type mingetty 3a2?> = ?))
   592:29  9 (map1 (#<<service> type: #<s= ervice-type mingetty 3a2?> ?))
   592:29  8 (map1 (#&l= t;<service> type: #<service-type console-font?> ?))
 &n= bsp; 592:17  7 (map1 (#<<service> type: #<service-type ope= nvpn-clie?> ?))
In gnu/services/vpn.scm:
   409:24 = 6 (_ #<<openvpn-client-configuration> openvpn: #<package ?>= )
    379:9  5 (openvpn-config-file client #<<= openvpn-client-configura?>)
In ice-9/ports.scm:
   = 549:4  4 (call-with-output-string _)
    473:4 = ; 3 (with-output-to-port _ _)
In ice-9/boot-9.scm:
   268:1= 3  2 (for-each #<procedure 534a100 at gnu/services/configur?> ?)=
In gnu/services/vpn.scm:
   112:19  1 (serialize-tls-= auth client #f)
In unknown file:
      =      0 (string-append #f " " "1")

ERROR: In proc= edure string-append:
ERROR: In procedure string-append: Wrong type (expe= cting string): #f



=
To have this error, I tried do build a vm-image using the openvp= n service:
(service openvpn-client-servi= ce-type
  (openvpn-client-configuration
  (proto 'tcp)
&= nbsp; (ca "ca.crt")
  (cert "client.crt")
  (key "client.ke= y")
))


Guix doesn't want to build the VM= , because of the openvpn service. The problem is in the function serialize-= tls-auth (line 110 of the file /gnu/services/vpn.scm). The function tries t= o concatenate a string with the input of the "tls_auth" field in openvpn_cl= ient_configuration. But by default this input's value is #f. Test function = are implemented just after this one, but not used.

= As I don't know what the function is supposed to return, I can= 't correct this.

I'm using Guix 0.13.0
--=_e26f4007-481f-4e2a-94a2-ca1794241392-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 25 11:47:01 2017 Received: (at control) by debbugs.gnu.org; 25 Aug 2017 15:47:01 +0000 Received: from localhost ([127.0.0.1]:54687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGp2-0004S0-VO for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:47:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGp1-0004Rm-FH for control@debbugs.gnu.org; Fri, 25 Aug 2017 11:46:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGov-0007Qu-K2 for control@debbugs.gnu.org; Fri, 25 Aug 2017 11:46:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGov-0007Qo-GY for control@debbugs.gnu.org; Fri, 25 Aug 2017 11:46:53 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dlGov-0001oK-8Z for control@debbugs.gnu.org; Fri, 25 Aug 2017 11:46:53 -0400 Subject: control message for bug 28232 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 25 Aug 2017 11:46:53 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) reassign 28232 guix From unknown Mon Sep 08 01:50:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28232: openvpn service configuration fails by default Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 25 Aug 2017 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28232 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 28232@debbugs.gnu.org Cc: charly bion Reply-To: 28232@debbugs.gnu.org, charly.bion@ensea.fr Received: via spool by 28232-submit@debbugs.gnu.org id=B28232.150367619017385 (code B ref 28232); Fri, 25 Aug 2017 15:50:02 +0000 Received: (at 28232) by debbugs.gnu.org; 25 Aug 2017 15:49:50 +0000 Received: from localhost ([127.0.0.1]:54694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGrm-0004WL-DC for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:49:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGrl-0004WA-Id for 28232@debbugs.gnu.org; Fri, 25 Aug 2017 11:49:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGrf-0000RT-KS for 28232@debbugs.gnu.org; Fri, 25 Aug 2017 11:49:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGrf-0000RP-Gs; Fri, 25 Aug 2017 11:49:43 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dlGrd-0002AN-Q2; Fri, 25 Aug 2017 11:49:41 -0400 From: Glenn Morris References: <518966314.925318.1503673694273.JavaMail.zimbra@ensea.fr> Mail-Followup-To: 28232@debbugs.gnu.org, charly.bion@ensea.fr X-Spook: Recovery Peking UMTS Al Qaida Police security Armani X-Ran: WKLVG~i_mtg6)> (charly bion's message of "Fri, 25 Aug 2017 17:08:14 +0200 (CEST)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Reassigned from non-existent "openvpn" package to guix. charly bion wrote: > Package: openvpn > Version: 2.4.3 > > Backtrace: > In srfi/srfi-1.scm: > 592:29 19 (map1 (#< type: # ?)) > 592:29 18 (map1 (#< type: # ?)) > 592:29 17 (map1 (#< type: # ?)) > 592:29 16 (map1 (#< type: # ?)) > 592:29 15 (map1 (#< type: # ?)) > 592:29 14 (map1 (#< type: # ?)) > 592:29 13 (map1 (#< type: # ?)) > 592:29 12 (map1 (#< type: # ?)) > 592:29 11 (map1 (#< type: # ?)) > 592:29 10 (map1 (#< type: # ?)) > 592:29 9 (map1 (#< type: # ?)) > 592:29 8 (map1 (#< type: # ?)) > 592:17 7 (map1 (#< type: # ?)) > In gnu/services/vpn.scm: > 409:24 6 (_ #< openvpn: #) > 379:9 5 (openvpn-config-file client #<) > In ice-9/ports.scm: > 549:4 4 (call-with-output-string _) > 473:4 3 (with-output-to-port _ _) > In ice-9/boot-9.scm: > 268:13 2 (for-each # ?) > In gnu/services/vpn.scm: > 112:19 1 (serialize-tls-auth client #f) > In unknown file: > 0 (string-append #f " " "1") > > ERROR: In procedure string-append: > ERROR: In procedure string-append: Wrong type (expecting string): #f > > > > To have this error, I tried do build a vm-image using the openvpn service: > (service openvpn-client-service-type > (openvpn-client-configuration > (proto 'tcp) > (ca "ca.crt") > (cert "client.crt") > (key "client.key") > )) > > > Guix doesn't want to build the VM, because of the openvpn service. The > problem is in the function serialize-tls-auth (line 110 of the file > /gnu/services/vpn.scm). The function tries to concatenate a string > with the input of the "tls_auth" field in > openvpn_client_configuration. But by default this input's value is #f. > Test function are implemented just after this one, but not used. > > As I don't know what the function is supposed to return, I can't correct this. > > I'm using Guix 0.13.0 From unknown Mon Sep 08 01:50:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: charly bion Subject: bug#28232: closed (Re: bug#28232: openvpn service configuration fails by default) Message-ID: References: <87fu983kti.fsf@gnu.org> <518966314.925318.1503673694273.JavaMail.zimbra@ensea.fr> X-Gnu-PR-Message: they-closed 28232 X-Gnu-PR-Package: guix Reply-To: 28232@debbugs.gnu.org Date: Mon, 20 Nov 2017 17:47:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1511200024-10724-1" This is a multi-part message in MIME format... ------------=_1511200024-10724-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28232: openvpn service configuration fails by default which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28232@debbugs.gnu.org. --=20 28232: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28232 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1511200024-10724-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28232-done) by debbugs.gnu.org; 20 Nov 2017 17:46:05 +0000 Received: from localhost ([127.0.0.1]:49297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGq8y-0002ll-Rj for submit@debbugs.gnu.org; Mon, 20 Nov 2017 12:46:05 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:55713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGq8x-0002lW-Ri for 28232-done@debbugs.gnu.org; Mon, 20 Nov 2017 12:46:04 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 95F58FD7B; Mon, 20 Nov 2017 18:46:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UdMkrgIUuBc0; Mon, 20 Nov 2017 18:46:04 +0100 (CET) Received: from ribbon (unknown [193.50.110.188]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 840D1FC56; Mon, 20 Nov 2017 18:46:04 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: charly bion Subject: Re: bug#28232: openvpn service configuration fails by default References: <518966314.925318.1503673694273.JavaMail.zimbra@ensea.fr> Date: Mon, 20 Nov 2017 18:46:01 +0100 In-Reply-To: <518966314.925318.1503673694273.JavaMail.zimbra@ensea.fr> (charly bion's message of "Fri, 25 Aug 2017 17:08:14 +0200 (CEST)") Message-ID: <87fu983kti.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 28232-done Cc: 28232-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi, charly bion skribis: > Backtrace:=20 > In srfi/srfi-1.scm:=20 > 592:29 19 (map1 (#< type: # ?))=20 > 592:29 18 (map1 (#< type: # ?))=20 > 592:29 17 (map1 (#< type: # ?))=20 > 592:29 16 (map1 (#< type: # ?))=20 > 592:29 15 (map1 (#< type: # ?))=20 > 592:29 14 (map1 (#< type: # ?))=20 > 592:29 13 (map1 (#< type: # ?))=20 > 592:29 12 (map1 (#< type: # ?))=20 > 592:29 11 (map1 (#< type: # ?))=20 > 592:29 10 (map1 (#< type: # ?))=20 > 592:29 9 (map1 (#< type: # ?))=20 > 592:29 8 (map1 (#< type: # ?))=20 > 592:17 7 (map1 (#< type: # ?))=20 > In gnu/services/vpn.scm:=20 > 409:24 6 (_ #< openvpn: #)=20 > 379:9 5 (openvpn-config-file client #<)=20 > In ice-9/ports.scm:=20 > 549:4 4 (call-with-output-string _)=20 > 473:4 3 (with-output-to-port _ _)=20 > In ice-9/boot-9.scm:=20 > 268:13 2 (for-each # ?)=20 > In gnu/services/vpn.scm:=20 > 112:19 1 (serialize-tls-auth client #f)=20 > In unknown file:=20 > 0 (string-append #f " " "1")=20 > > ERROR: In procedure string-append:=20 > ERROR: In procedure string-append: Wrong type (expecting string): #f=20 > > > > To have this error, I tried do build a vm-image using the openvpn service= :=20 > (service openvpn-client-service-type=20 > (openvpn-client-configuration=20 > (proto 'tcp)=20 > (ca "ca.crt")=20 > (cert "client.crt")=20 > (key "client.key")=20 > ))=20 This was fixed on Oct. 9th with commit 4b8b4418e609b5e0bfb6efbc11ac28deaa437e80. Thanks, Ludo=E2=80=99. ------------=_1511200024-10724-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Aug 2017 15:30:03 +0000 Received: from localhost ([127.0.0.1]:54628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGYd-00041N-3y for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:30:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlGDn-0003VQ-97 for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGDg-0007qQ-PT for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:08:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlGDg-0007qG-MK for submit@debbugs.gnu.org; Fri, 25 Aug 2017 11:08:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGDf-0004a8-Dt for bug-guix@gnu.org; Fri, 25 Aug 2017 11:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlGDb-0007o4-AS for bug-guix@gnu.org; Fri, 25 Aug 2017 11:08:23 -0400 Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]:53920 helo=smtpout20.partage.renater.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlGDb-0007nW-1U for bug-guix@gnu.org; Fri, 25 Aug 2017 11:08:19 -0400 Received: from zmtaout02.partage.renater.fr (zmtaout02.partage.renater.fr [194.254.241.30]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id CC724BFABE for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Received: from zmtaout02.partage.renater.fr (localhost [127.0.0.1]) by zmtaout02.partage.renater.fr (Postfix) with ESMTPS id C9E182005A for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaout02.partage.renater.fr (Postfix) with ESMTP id BBF41200D6 for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at zmtaout02.partage.renater.fr Received: from zmtaout02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaout02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kHdjiPZguEA9 for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Received: from zstore21-etu.partage.renater.fr (zstore21-etu.partage.renater.fr [10.254.241.60]) by zmtaout02.partage.renater.fr (Postfix) with ESMTP id A80D02005A for ; Fri, 25 Aug 2017 17:08:14 +0200 (CEST) Date: Fri, 25 Aug 2017 17:08:14 +0200 (CEST) From: charly bion To: bug-guix@gnu.org Message-ID: <518966314.925318.1503673694273.JavaMail.zimbra@ensea.fr> Subject: openvpn service configuration fails by default MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_e26f4007-481f-4e2a-94a2-ca1794241392" X-Originating-IP: [194.254.242.1] X-Mailer: Zimbra 8.7.10_GA_1829 (ZimbraWebClient - FF52 (Linux)/8.7.10_GA_1829) Thread-Index: mwsed48wHPc+UTj0vee22FmnJnjRog== Thread-Topic: openvpn service configuration fails by default X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 25 Aug 2017 11:30:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=_e26f4007-481f-4e2a-94a2-ca1794241392 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Package: openvpn Version: 2.4.3 Backtrace: In srfi/srfi-1.scm: 592:29 19 (map1 (#< type: # ?)) 592:29 18 (map1 (#< type: # ?)) 592:29 17 (map1 (#< type: # ?)) 592:29 16 (map1 (#< type: # ?)) 592:29 15 (map1 (#< type: # ?)) 592:29 14 (map1 (#< type: # ?)) 592:29 13 (map1 (#< type: # ?)) 592:29 12 (map1 (#< type: # ?)) 592:29 11 (map1 (#< type: # ?)) 592:29 10 (map1 (#< type: # ?)) 592:29 9 (map1 (#< type: # ?)) 592:29 8 (map1 (#< type: # ?)) 592:17 7 (map1 (#< type: # ?)) In gnu/services/vpn.scm: 409:24 6 (_ #< openvpn: #) 379:9 5 (openvpn-config-file client #<) In ice-9/ports.scm: 549:4 4 (call-with-output-string _) 473:4 3 (with-output-to-port _ _) In ice-9/boot-9.scm: 268:13 2 (for-each # ?) In gnu/services/vpn.scm: 112:19 1 (serialize-tls-auth client #f) In unknown file: 0 (string-append #f " " "1") ERROR: In procedure string-append: ERROR: In procedure string-append: Wrong type (expecting string): #f To have this error, I tried do build a vm-image using the openvpn service: (service openvpn-client-service-type (openvpn-client-configuration (proto 'tcp) (ca "ca.crt") (cert "client.crt") (key "client.key") )) Guix doesn't want to build the VM, because of the openvpn service. The problem is in the function serialize-tls-auth (line 110 of the file /gnu/services/vpn.scm). The function tries to concatenate a string with the input of the "tls_auth" field in openvpn_client_configuration. But by default this input's value is #f. Test function are implemented just after this one, but not used. As I don't know what the function is supposed to return, I can't correct this. I'm using Guix 0.13.0 --=_e26f4007-481f-4e2a-94a2-ca1794241392 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Package: openvpn
Version: 2.4.3

Backtrace:
In srfi/srfi-1.scm:
   592:2= 9 19 (map1 (#<<service> type: #<service-type nscd 3a8acc0?> = ?))
   592:29 18 (map1 (#<<service> type: #<servic= e-type guix 3a8ac00?> ?))
   592:29 17 (map1 (#<<serv= ice> type: #<service-type urandom-seed?> ?))
   592:2= 9 16 (map1 (#<<service> type: #<service-type syslog 3a8ac?> = ?))
   592:29 15 (map1 (#<<service> type: #<servic= e-type static-netwo?> ?))
   592:29 14 (map1 (#<<serv= ice> type: #<service-type mingetty 3a2?> ?))
   592:2= 9 13 (map1 (#<<service> type: #<service-type mingetty 3a2?> = ?))
   592:29 12 (map1 (#<<service> type: #<servic= e-type mingetty 3a2?> ?))
   592:29 11 (map1 (#<<serv= ice> type: #<service-type mingetty 3a2?> ?))
   592:2= 9 10 (map1 (#<<service> type: #<service-type mingetty 3a2?> = ?))
   592:29  9 (map1 (#<<service> type: #<s= ervice-type mingetty 3a2?> ?))
   592:29  8 (map1 (#&l= t;<service> type: #<service-type console-font?> ?))
 &n= bsp; 592:17  7 (map1 (#<<service> type: #<service-type ope= nvpn-clie?> ?))
In gnu/services/vpn.scm:
   409:24 = 6 (_ #<<openvpn-client-configuration> openvpn: #<package ?>= )
    379:9  5 (openvpn-config-file client #<<= openvpn-client-configura?>)
In ice-9/ports.scm:
   = 549:4  4 (call-with-output-string _)
    473:4 = ; 3 (with-output-to-port _ _)
In ice-9/boot-9.scm:
   268:1= 3  2 (for-each #<procedure 534a100 at gnu/services/configur?> ?)=
In gnu/services/vpn.scm:
   112:19  1 (serialize-tls-= auth client #f)
In unknown file:
      =      0 (string-append #f " " "1")

ERROR: In proc= edure string-append:
ERROR: In procedure string-append: Wrong type (expe= cting string): #f



=
To have this error, I tried do build a vm-image using the openvp= n service:
(service openvpn-client-servi= ce-type
  (openvpn-client-configuration
  (proto 'tcp)
&= nbsp; (ca "ca.crt")
  (cert "client.crt")
  (key "client.ke= y")
))


Guix doesn't want to build the VM= , because of the openvpn service. The problem is in the function serialize-= tls-auth (line 110 of the file /gnu/services/vpn.scm). The function tries t= o concatenate a string with the input of the "tls_auth" field in openvpn_cl= ient_configuration. But by default this input's value is #f. Test function = are implemented just after this one, but not used.

= As I don't know what the function is supposed to return, I can= 't correct this.

I'm using Guix 0.13.0
--=_e26f4007-481f-4e2a-94a2-ca1794241392-- ------------=_1511200024-10724-1--