From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: a Trytond service Date: Fri, 8 Sep 2017 21:42:24 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043e6bf4c19e640558b2c621" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqPAb-0004mT-LF for guix-devel@gnu.org; Fri, 08 Sep 2017 15:42:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqPAa-0004Q3-HH for guix-devel@gnu.org; Fri, 08 Sep 2017 15:42:29 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:45206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqPAa-0004NU-AQ for guix-devel@gnu.org; Fri, 08 Sep 2017 15:42:28 -0400 Received: by mail-wm0-x22b.google.com with SMTP id f199so10271500wme.0 for ; Fri, 08 Sep 2017 12:42:26 -0700 (PDT) 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: guix-devel --f403043e6bf4c19e640558b2c621 Content-Type: text/plain; charset="UTF-8" I'm trying to write a service for Trytond There are tons of things i don't know/understand But this is the first one: The Tryton manual states that I need to indicate a "data directory" to the daemon and that such directory should be: "The directory where Tryton stores files and so the user running trytond must have write access on this directory. Default: The db folder under the user home directory running trytond." See here (notice that this is in the "database" section of te configuration) http://doc.tryton.org/4.4/trytond/doc/topics/configuration.html#database My idea was that Tryton would have used a postgres managed by the omonimous service, so my user and my home folder shouldn't be concerned, here I don't know enough of the Unix assumptions here Any hint appreciated Thanks in advance --f403043e6bf4c19e640558b2c621 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm trying to write a service for = Trytond

There are tons of things i don't know/understand

= But this is the first one:

The Tryton manual states that I need to i= ndicate a "data directory" to the daemon and that such directory = should be:

"The directory where Tryton stores files and so the = user running trytond must have write access on this directory.
Default: = The db folder under the user home directory running trytond."

S= ee here (notice that this is in the "database" section of te conf= iguration)

http://doc.tryton.org/4.4/trytond/doc/topics/co= nfiguration.html#database

My idea was that Tryton would ha= ve used a postgres managed by the omonimous service, so my user and my home= folder shouldn't be concerned, here

I don't know enou= gh of the Unix assumptions here

Any hint appreciated
= Thanks in advance
--f403043e6bf4c19e640558b2c621-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: a Trytond service Date: Sat, 9 Sep 2017 09:38:41 +0200 Message-ID: <0a5f037f-4472-08c3-1a47-b3d84cd0347c@crazy-compilers.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqaLo-0004Nn-R0 for guix-devel@gnu.org; Sat, 09 Sep 2017 03:38:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqaLl-0005It-Ow for guix-devel@gnu.org; Sat, 09 Sep 2017 03:38:48 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:48413) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqaLl-0005HX-Iy for guix-devel@gnu.org; Sat, 09 Sep 2017 03:38:45 -0400 In-Reply-To: Content-Language: de-DE 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: Catonano , guix-devel Am 08.09.2017 um 21:42 schrieb Catonano: > "The directory where Tryton stores files and so the user running > trytond must have write access on this directory. > Default: The db folder under the user home directory running trytond." I assume this "path" is for the sqlite database. Did you ask the tryton community? They are quite helpful (I did a lot of work for openerp/tryton back in the 0.x/1.x ages). -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: a Trytond service Date: Sat, 9 Sep 2017 09:41:58 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqaOz-0005O6-TX for guix-devel@gnu.org; Sat, 09 Sep 2017 03:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqaOw-0000V9-S4 for guix-devel@gnu.org; Sat, 09 Sep 2017 03:42:05 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:39242) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqaOw-0000Sq-Kr for guix-devel@gnu.org; Sat, 09 Sep 2017 03:42:02 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3xq5k11lKKz1qsCd for ; Sat, 9 Sep 2017 09:42:01 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3xq5k11JRcz3hjlG for ; Sat, 9 Sep 2017 09:42:01 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id DUFuijlcwjjT for ; Sat, 9 Sep 2017 09:42:00 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-93-104-75-36.dynamic.mnet-online.de [93.104.75.36]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 9 Sep 2017 09:42:00 +0200 (CEST) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9FC4F60937 for ; Sat, 9 Sep 2017 09:41:59 +0200 (CEST) In-Reply-To: Content-Language: en-GB 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: guix-devel@gnu.org Am 08.09.2017 um 21:42 schrieb Catonano: > My idea was that Tryton would have used a postgres managed by the > omonimous service, so my user and my home folder shouldn't be > concerned, here I suggest making the service more flexible to allow using a sqlite database, as this would be far enough for samll installations. (Well, one may argue that "small installations" don't need Tryton, but I one likes it, why not? There has been a server-less version of tryton until about a year ago.) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: a Trytond service Date: Sat, 9 Sep 2017 11:39:39 +0100 Message-ID: <20170909113939.5be805ec@cbaines.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/qqHaifsdATY35YXdEuNJTWA"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqdB4-0001y4-Ke for guix-devel@gnu.org; Sat, 09 Sep 2017 06:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqdB1-0005z8-HW for guix-devel@gnu.org; Sat, 09 Sep 2017 06:39:54 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:37982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqdB1-0005yf-Au for guix-devel@gnu.org; Sat, 09 Sep 2017 06:39:51 -0400 In-Reply-To: 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: Catonano Cc: guix-devel --Sig_/qqHaifsdATY35YXdEuNJTWA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 8 Sep 2017 21:42:24 +0200 Catonano wrote: > I'm trying to write a service for Trytond >=20 > There are tons of things i don't know/understand >=20 > But this is the first one: >=20 > The Tryton manual states that I need to indicate a "data directory" > to the daemon and that such directory should be: >=20 > "The directory where Tryton stores files and so the user running > trytond must have write access on this directory. > Default: The db folder under the user home directory running trytond." >=20 > See here (notice that this is in the "database" section of te > configuration) >=20 > http://doc.tryton.org/4.4/trytond/doc/topics/configuration.html#database >=20 > My idea was that Tryton would have used a postgres managed by the > omonimous service, so my user and my home folder shouldn't be > concerned, here >=20 > I don't know enough of the Unix assumptions here Some users for services use some /var/run directory as there home directory, which works if the data doesn't need to survive reboots. Otherwise, the data should go in to /var/lib. The Tryton documentation isn't very clear to me either, Using PostgreSQL sounds like a good place to start, and ideally it would be flexible enough that any of the options are available when using the Guix service. --Sig_/qqHaifsdATY35YXdEuNJTWA Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlmzxOtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XfehQ//Z91QsS8+abWgL00Gs1UaKcWgUxESCSVsFpXdxKpNHrPcbKCyIkJlAwxl k4GXTRXEfbeLQmW3z5GxKP2yZW/ineYs7Mim3ZDj5IuVaOo+bOJZRz67f3cm6ZzO 63d1hs5K19/E+suRMT7NZsUqqgeBOyy3TONAD34cb1izQmRbJgoXU9coSMKIZZk9 5Y3A7/wyj125BWJuND1QiIgT37qeNcyh+UhyZyYf973VCs9ciOaywUFQGl5aLIei nr4YzDUPYz0zEp0DIZ+pW6+8FsSILbZJ6Eu1y6H9i+DZ2Syr8N5Qxkfq90iJmS3e 17ZbrdihdBNhVHaNeS49EAZzn4L28j7aOV3WuN6lu1ZpVpYRTLUHfvPeT2JhDFOk 3jPt9DCWAFCw5PxHptUcIdSTESheu6r+XOf0ct9rqutqhbiPWQzNxXGZDTR31xoZ 8NPuuLDW4Vd42G2PpH/Nt7hSwaaTi98/jKWE8Oxc3bCN0XT8RidkhLEItdT1yNs5 r4QSN/39wbmTtOs8BLOUyuv5eKI6D2zwfU/dwJcUE+74VyTvQ4BhcA0FRrJExdg1 hRYC5maNISTEmnyC3BygZmyrXcRChlAYI0ibnHgXRotR4sClZ3d83yUc3LdwftcI eJkDfWxtVgVWYs1IJA14T4MHsIt2/9+s1ABcsL7Lr7BLypUDB4o= =8fPz -----END PGP SIGNATURE----- --Sig_/qqHaifsdATY35YXdEuNJTWA-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: a Trytond service Date: Sun, 10 Sep 2017 19:30:58 +0200 Message-ID: References: <20170909113939.5be805ec@cbaines.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1aebac598a470558d92c7a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr64U-0006np-Qm for guix-devel@gnu.org; Sun, 10 Sep 2017 13:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dr64T-0004RJ-IZ for guix-devel@gnu.org; Sun, 10 Sep 2017 13:31:02 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:46761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dr64T-0004Q0-7f for guix-devel@gnu.org; Sun, 10 Sep 2017 13:31:01 -0400 Received: by mail-wm0-x22e.google.com with SMTP id i189so26261482wmf.1 for ; Sun, 10 Sep 2017 10:30:59 -0700 (PDT) In-Reply-To: <20170909113939.5be805ec@cbaines.net> 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: Christopher Baines , Hartmut Goebel Cc: guix-devel --94eb2c1aebac598a470558d92c7a Content-Type: text/plain; charset="UTF-8" 2017-09-09 12:39 GMT+02:00 Christopher Baines : > On Fri, 8 Sep 2017 21:42:24 +0200 > Catonano wrote: > > > I'm trying to write a service for Trytond > > > > There are tons of things i don't know/understand > > > > But this is the first one: > > > > The Tryton manual states that I need to indicate a "data directory" > > to the daemon and that such directory should be: > > > > "The directory where Tryton stores files and so the user running > > trytond must have write access on this directory. > > Default: The db folder under the user home directory running trytond." > > > > See here (notice that this is in the "database" section of te > > configuration) > > > > http://doc.tryton.org/4.4/trytond/doc/topics/configuration.html#database > > > > My idea was that Tryton would have used a postgres managed by the > > omonimous service, so my user and my home folder shouldn't be > > concerned, here > > > > I don't know enough of the Unix assumptions here > > Some users for services use some /var/run directory as there home > directory, which works if the data doesn't need to survive reboots. > Otherwise, the data should go in to /var/lib. > > The Tryton documentation isn't very clear to me either, Using PostgreSQL > sounds like a good place to start, and ideally it would be flexible > enough that any of the options are available when using the Guix > service. > Thank you Christopher Hartmut, good to know that there is a fellow trytonista here ;-) I asked on their mailing list and the answer I got is that the data older could be used for attachments, for example. So I think we are in the situation where the folder has to be writable to trytond AND its contents should be resilient to reboots. That is clarified, so far Their mailing list is hosted on google groups so I can only point you there, for reference https://groups.google.com/forum/#!topic/tryton/KEeGDBNjXBs --94eb2c1aebac598a470558d92c7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017-09-09 12:39 GMT+02:00 Christopher Baines <mail@cbaine= s.net>:
On Fri, 8 Sep 2017 21:4= 2:24 +0200
Catonano <catonano@gmail.com&g= t; wrote:

> I'm trying to write a service for Trytond
>
> There are tons of things i don't know/understand
>
> But this is the first one:
>
> The Tryton manual states that I need to indicate a "data director= y"
> to the daemon and that such directory should be:
>
> "The directory where Tryton stores files and so the user running<= br> > trytond must have write access on this directory.
> Default: The db folder under the user home directory running trytond.&= quot;
>
> See here (notice that this is in the "database" section of t= e
> configuration)
>
> http://doc.tryton.org/4= .4/trytond/doc/topics/configuration.html#database
>
> My idea was that Tryton would have used a postgres managed by the
> omonimous service, so my user and my home folder shouldn't be
> concerned, here
>
> I don't know enough of the Unix assumptions here

Some users for services use some /var/run directory as there home directory, which works if the data doesn't need to survive reboots.
Otherwise, the data should go in to /var/lib.

The Tryton documentation isn't very clear to me either, Using PostgreSQ= L
sounds like a good place to start, and ideally it would be flexible
enough that any of the options are available when using the Guix
service.

Thank you Christoph= er

Hartmut, good to know that there= is a fellow trytonista here ;-)

I = asked on their mailing list and the answer I got is that the data older cou= ld be used for attachments, for example.

So I think we are in the situation where the folder has to be writabl= e to trytond AND its contents should be resilient to reboots.

=
That is clarified, so far

Their mailing list is hosted on google groups so I can on= ly point you there, for reference
https://groups.google.com/forum/#!topic/tr= yton/KEeGDBNjXBs
--94eb2c1aebac598a470558d92c7a--