From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: weird errors Date: Sun, 14 Jan 2018 08:21:10 +0100 Message-ID: References: <87a7xhmpht.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0821fecc8bd1e10562b75720" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eacbT-0007l4-AE for guix-devel@gnu.org; Sun, 14 Jan 2018 02:21:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eacbS-0001mU-0K for guix-devel@gnu.org; Sun, 14 Jan 2018 02:21:15 -0500 In-Reply-To: <87a7xhmpht.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel --089e0821fecc8bd1e10562b75720 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2018-01-13 22:13 GMT+01:00 Ludovic Court=C3=A8s : > Heya, > > Catonano skribis: > > > In execvp of TRYTONPASSFILE =3D > > /gnu/store/3qpvdgkagkqyzpaw65c0plzd9zqp44v6-passfile > > /gnu/store/144hjm67pzq9x0v47hwfiabwqq219aya-trytond-4.6.2/bin/trytond- > admin: > > No such file or directory > > ERROR: In procedure scm-error: > > ERROR: program "TRYTONPASSFILE =3D > > /gnu/store/3qpvdgkagkqyzpaw65c0plzd9zqp44v6-passfile > > /gnu/store/144hjm67pzq9x0v47hwfiabwqq219aya-trytond-4.6.2/bin/trytond- > admin" > > exited with non-zero code 32512 > > It=E2=80=99s trying to execute a program named =E2=80=9CTRYTONPASSFILE = =3D =E2=80=A6/=E2=80=A6=E2=80=9D. This > initial =E2=80=9CTRYTONPASSFILE =3D=E2=80=9D string is bogus, it=E2=80=99= s not the name of the > program. > TRYTONPASSFILE is supposed to be an environment variable forr trytond-admin to consume If TRYTONPASSFILE isn't set, tytond-admin will prompt the user and require some interaction the line is supposed to be like TRYTOPASSILE =3D /path/to/some/passfile trytond-admin -c trytond-conf-file.conf that is TRYTOPASSILE =3D /gnu/store/some-hash-passfile /gnu/store/some-hash-trytond-admin -c /gnu/stor/some-hash-trytond-conf-file.conf The problem seesm to be that a call to some .trytond-admin-real can't be satisfied > Respawning trytond. > > Service trytond has been started. > > Backtrace: > > 3 (primitive-load "/gnu/store/dh2mm0hk37q4cr4g390psp5y7jl?") > > In ice-9/eval.scm: > > 182:19 2 (proc #(# #("tryt?" ?) ?)) > > 142:16 1 (compile-top-call _ (7 . invoke) ((11 0 . 1) (10 # # ?))) > > In unknown file: > > 0 (%resolve-variable (7 . invoke) #) > > > > ERROR: In procedure %resolve-variable: > > ERROR: Unbound variable: invoke > > =E2=80=98invoke=E2=80=99 is in (guix build utils), so you need (use-modul= es (guix build > utils)) somewhere. > > Specifically, in the =E2=80=98tryton-shepherd-service=E2=80=99 procedure = you posted, you > need to define =E2=80=98start-script=E2=80=99 like this: > > (program-file "start-trytond" > (with-imported-modules '((guix build utils)) > #~(begin > (use-modules (guix build utils)) > > (let ((user =E2=80=A6)) > ;; =E2=80=A6 > (invoke =E2=80=A6))))) > Ah, ok, I missed this > > > warning: failed to load '(gnu tests install)': > > In procedure allocate-struct: Wrong type argument in position 2: 13 > > This suggests an ABI mismatch; run =E2=80=98make clean-go && make=E2=80= =99. > > Ok > HTH, looks like you=E2=80=99re almost there! :-) > Thankks you Ludo ! Admittedly I'm a bit tired ;-) I'll do this last turn of tries If it doesn't work afer this, I'll abandon it and move on I'll keep you posted ! --089e0821fecc8bd1e10562b75720 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2018-01-13 22:13 GMT+01:00 Ludovic Court=C3=A8s <<= a href=3D"mailto:ludo@gnu.org" target=3D"_blank">ludo@gnu.org>:
Heya,

Catonano <catonano@gmail.com&g= t; skribis:

> In execvp of TRYTONPASSFILE =3D
> /gnu/store/3qpvdgkagkqyzpaw65c0plzd9zqp44v6-passfile
> /gnu/store/144hjm67pzq9x0v47hwfiabwqq219aya-trytond-4.6.2/bi= n/trytond-admin:
> No such file or directory
> ERROR: In procedure scm-error:
> ERROR: program "TRYTONPASSFILE =3D
> /gnu/store/3qpvdgkagkqyzpaw65c0plzd9zqp44v6-passfile
> /gnu/store/144hjm67pzq9x0v47hwfiabwqq219aya-trytond-4.6.2/bi= n/trytond-admin"
> exited with non-zero code 32512

It=E2=80=99s trying to execute a program named =E2=80=9CTRYTONPASSFI= LE =3D =E2=80=A6/=E2=80=A6=E2=80=9D.=C2=A0 This
initial =E2=80=9CTRYTONPASSFILE =3D=E2=80=9D string is bogus, it=E2=80=99s = not the name of the
program.

TRYTONPASSFILE is supposed to = be an environment variable forr trytond-admin to consume

= If TRYTONPASSFILE isn't set, tytond-admin will prompt the user and requ= ire some interaction

the line is supposed to be like
<= br>
TRYTOPASSILE =3D /path/to/some/passfile trytond-admin -c= trytond-conf-file.conf

that is

TRYTOPASSILE =3D /gnu/s= tore/some-hash-passfile /gnu/store/some-hash-trytond-admin -c /gnu/stor/som= e-hash-trytond-conf-file.conf
=C2=A0
The problem seesm to = be that a call to some .trytond-admin-real can't be satisfied
<= br>
> Respawning trytond.
> Service trytond has been started.
> Backtrace:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 3 (primitive-load "/gnu/= store/dh2mm0hk37q4cr4g390psp5y7jl?")
> In ice-9/eval.scm:
>=C2=A0 =C2=A0 182:19=C2=A0 2 (proc #(#<directory (guile-user) 276714= 0> #("tryt?" ?) ?))
>=C2=A0 =C2=A0 142:16=C2=A0 1 (compile-top-call _ (7 . invoke) ((11 0 . = 1) (10 # # ?)))
> In unknown file:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 (%resolve-variable (7 . inv= oke) #<directory (guile-user?>)
>
> ERROR: In procedure %resolve-variable:
> ERROR: Unbound variable: invoke

=E2=80=98invoke=E2=80=99 is in (guix build utils), so you need (use-= modules (guix build
utils)) somewhere.

Specifically, in the =E2=80=98tryton-shepherd-service=E2=80=99 procedure yo= u posted, you
need to define =E2=80=98start-script=E2=80=99 like this:

=C2=A0 (program-file "start-trytond"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (with-imported-modu= les '((guix build utils))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #~(begin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (use-modules (guix build utils))

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (let ((user =E2=80=A6))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;; =E2=80=A6
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (invoke =E2=80=A6)))))

Ah, o= k, I missed this

=C2=A0

> warning: failed to load '(gnu tests install)':
> In procedure allocate-struct: Wrong type argument in position 2: 13
This suggests an ABI mismatch; run =E2=80=98make clean-go &&= make=E2=80=99.


Ok
=C2=A0
HTH, looks like you=E2=80=99re almost there!=C2=A0 :-)

Thankks you Ludo !

Admittedly I'm a b= it tired ;-)

I'll do this last turn of tries

<= /div>
If it doesn't work afer this, I'll abandon it and move on=

I'll keep you posted !
--089e0821fecc8bd1e10562b75720--