From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: weird errors Date: Mon, 22 Jan 2018 13:42:26 +0100 Message-ID: References: <87a7xhmpht.fsf@gnu.org> <20180114114346.78977872@scratchpost.org> <20180122115908.588a1d06@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11c0007c3cdc6e05635cc391" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edbQj-0000n3-HM for guix-devel@gnu.org; Mon, 22 Jan 2018 07:42:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edbQi-0003xL-7I for guix-devel@gnu.org; Mon, 22 Jan 2018 07:42:29 -0500 Received: from mail-yb0-x243.google.com ([2607:f8b0:4002:c09::243]:46162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edbQi-0003wP-31 for guix-devel@gnu.org; Mon, 22 Jan 2018 07:42:28 -0500 Received: by mail-yb0-x243.google.com with SMTP id y77so3151254ybe.13 for ; Mon, 22 Jan 2018 04:42:27 -0800 (PST) In-Reply-To: <20180122115908.588a1d06@scratchpost.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: Danny Milosavljevic Cc: guix-devel --001a11c0007c3cdc6e05635cc391 Content-Type: text/plain; charset="UTF-8" 2018-01-22 11:59 GMT+01:00 Danny Milosavljevic : > > isn't invoke returning an exact integer ? > > No. "invoke" raises an exception if the child's exit code != 0. > Otherwise you get #t. > > "system*" returns the exit code - might want to use that instead. > (just replace the text "invoke" by "system*") > > > Maybe tryton-admin insn't seeing the env var and promtping to ask for its > > interaction ? > > > > > > How am I supposed to use setenv, exactly ? > > Looks fine to me. > > Just exit with (primitive-exit 0) in the end :) > Thank you Danny The virtual machine boots successfully now The trytond service is running in it But the postgres role doesn't exist so the connection to postgres fails and trytond attempts to connect to a sqlite database that doesn't exist I'm not gonna keep working on this It's not fun anymore Should anyone want to observe the relic, it's here https://gitlab.com/humanitiesNerd/failed_tryton_service Thank you all people --001a11c0007c3cdc6e05635cc391 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2018-01-22 11:59 GMT+01:00 Danny Milosavljevic <da= nnym@scratchpost.org>:
> isn= 't invoke returning an exact integer ?

No.=C2=A0 "invoke" raises an exception if the child's = exit code !=3D 0.
Otherwise you get #t.

"system*" returns the exit code - might want to use that instead.=
(just replace the text "invoke" by "system*")

> Maybe tryton-admin insn't seeing the env var and promtping to ask = for its
> interaction ?
>
>
> How am I supposed to use setenv, exactly ?

Looks fine to me.

Just exit with (primitive-exit 0) in the end :)


Thank you Danny=

The virtual machine boots successf= ully now

The trytond service is running in it

But the postgres ro= le doesn't exist so the connection to postgres fails and trytond attemp= ts to connect to a sqlite database that doesn't exist

I= 9;m not gonna keep working on this
It's not fun anymore

Should anyone want to observe the relic, it'= ;s here
https://gitlab.com/humanitiesNerd/failed_tryton_service

Thank you all people
--001a11c0007c3cdc6e05635cc391--