From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: weird errors Date: Mon, 22 Jan 2018 21:37:10 +0100 Message-ID: References: <87a7xhmpht.fsf@gnu.org> <20180114114346.78977872@scratchpost.org> <20180122115908.588a1d06@scratchpost.org> <20180122200146.545ef7f6@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114d8b22fed0c205636364f5" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ediq8-0007Ho-Og for guix-devel@gnu.org; Mon, 22 Jan 2018 15:37:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ediq7-0007jW-Pr for guix-devel@gnu.org; Mon, 22 Jan 2018 15:37:12 -0500 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]:46565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ediq7-0007jH-K8 for guix-devel@gnu.org; Mon, 22 Jan 2018 15:37:11 -0500 Received: by mail-yw0-x22b.google.com with SMTP id c78so3707927ywb.13 for ; Mon, 22 Jan 2018 12:37:11 -0800 (PST) In-Reply-To: <20180122200146.545ef7f6@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 --001a114d8b22fed0c205636364f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2018-01-22 20:01 GMT+01:00 Danny Milosavljevic : > Hi Catonano, > > On Mon, 22 Jan 2018 13:42:26 +0100 > Catonano wrote: > > > The virtual machine boots successfully now > > > > The trytond service is running in it > > Cool! > > > But the postgres role doesn't exist so the connection to postgres fails > and > > Your db-creation already invokes createdb. Try passing -O trytond, > maybe everything works then. > > So in gnu/services/trytond.scm: > > (createdb-script (string-append #$postgresql > "/bin/createdb") > "-O" "trytond" > #$database-name) > > And later > > (apply invoke createdb-script) > > > trytond attempts to connect to a sqlite database that doesn't exist > > Probably a fallback, hmm. > > > I'm not gonna keep working on this > > It's not fun anymore > > Too bad. I can understand it though. > > For the part I had in the frustration by shitty VM error reporting, I'm > sorry. > > I've now merged the tryton packages from your repository into guix master= . > > (I've applied small stylistic fixes) > > Since it's snowing outside and cold as hell, I'll also try to get a minim= al > trytond service to work, starting from your work. > > I have no idea what the program is supposed to do - so I'll stop when it > starts > up. > You are way too kind =F0=9F=98=83 Thank you ! --001a114d8b22fed0c205636364f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2018-01-22 20:01 GMT+01:00 Danny Milosavljevic <da= nnym@scratchpost.org>:
Hi Catonano,

On Mon, 22 Jan 2018 13:42:26 +0100
Catonano <catonano@gmail.com&g= t; wrote:

> The virtual machine boots successfully now
>
> The trytond service is running in it

Cool!

> But the postgres role doesn't exist so the connection to postgres = fails and

Your db-creation already invokes createdb.=C2=A0 Try passing -O tryt= ond,
maybe everything works then.

So in gnu/services/trytond.scm:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(createdb-script (st= ring-append #$postgresql "/bin/createdb")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "-O" "trytond" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #$database-name)

And later

=C2=A0 (apply invoke createdb-script)

> trytond attempts to connect to a sqlite database that doesn't exis= t

Probably a fallback, hmm.

> I'm not gonna keep working on this
> It's not fun anymore

Too bad.=C2=A0 I can understand it though.

For the part I had in the frustration by shitty VM error reporting, I'm= sorry.

I've now merged the tryton packages from your repository into guix mast= er.

(I've applied small stylistic fixes)

Since it's snowing outside and cold as hell, I'll also try to get a= minimal
trytond service to work, starting from your work.

I have no idea what the program is supposed to do - so I'll stop when i= t starts
up.

You are way too kin= d =F0=9F=98=83
Thank you !
--001a114d8b22fed0c205636364f5--