Re: weird errors; shepherd

2018-01-28 Thread Catonano
2018-01-23 23:43 GMT+01:00 Danny Milosavljevic : > The attached file is gnu/services/trytond.scm which successfully runs > trytond. > I run it and I confirm it works I couldn't attemp at installing a couple of Tryton modules (on top of the base ones) because in the vm the keyboard layout is mess

Re: weird errors; shepherd

2018-01-24 Thread Ludovic Courtès
Danny Milosavljevic skribis: > On Wed, 24 Jan 2018 15:47:16 +0100 > l...@gnu.org (Ludovic Courtès) wrote: > >> I’m not sure what you mean. There’s no notion of dependencies among >> activation snippets, let alone between activation snippets and service >> starts (when booting, activation snippet

Re: weird errors; shepherd

2018-01-24 Thread Danny Milosavljevic
Hi Ludo, On Wed, 24 Jan 2018 15:47:16 +0100 l...@gnu.org (Ludovic Courtès) wrote: > I’m not sure what you mean. There’s no notion of dependencies among > activation snippets, let alone between activation snippets and service > starts (when booting, activation snippets run *before* shepherd is >

Re: weird errors; shepherd

2018-01-24 Thread Ludovic Courtès
Hello, Danny Milosavljevic skribis: > Everyone: > > After I've tried writing some shepherd service I have to say that writing a > shepherd "start" action is way too difficult. > > Even now, I've not gotten to work: > > * Having the activation depend on any other service. I’m not sure what you m

Re: weird errors; shepherd

2018-01-24 Thread Catonano
2018-01-24 13:46 GMT+01:00 Danny Milosavljevic : > Hi Catonano, > > > With "successfully"" you mean that it connects to postgres and it shhows > te > > proper screens in the client ? > > Yes. > > I invoked "tryton" which pops up a GUI. Then I edited the profiles there, > adding "localhost" and th

Re: weird errors; shepherd

2018-01-24 Thread Danny Milosavljevic
Hi Catonano, > With "successfully"" you mean that it connects to postgres and it shhows te > proper screens in the client ? Yes. I invoked "tryton" which pops up a GUI. Then I edited the profiles there, adding "localhost" and then I logged into the client GUI via login "admin" and password "try

Re: weird errors; shepherd

2018-01-24 Thread Catonano
2018-01-23 23:43 GMT+01:00 Danny Milosavljevic : > The attached file is gnu/services/trytond.scm which successfully runs > trytond. > With "successfully"" you mean that it connects to postgres and it shhows te proper screens in the client ? Sometimes the trytond daemon does run but it fails to c

Re: weird errors; shepherd

2018-01-23 Thread Danny Milosavljevic
The attached file is gnu/services/trytond.scm which successfully runs trytond. Everyone: After I've tried writing some shepherd service I have to say that writing a shepherd "start" action is way too difficult. Even now, I've not gotten to work: * Having the activation depend on any other servi

Re: weird errors

2018-01-22 Thread Catonano
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

Re: weird errors

2018-01-22 Thread 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

Re: weird errors

2018-01-22 Thread Catonano
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 "sy

Re: weird errors

2018-01-22 Thread 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 pr

Re: weird errors

2018-01-22 Thread Catonano
2018-01-14 12:00 GMT+01:00 Catonano : > Hi Danny, > > thanks for your help > > > 2018-01-14 11:43 GMT+01:00 Danny Milosavljevic : > >> Hi Catonano, >> >> On Sun, 14 Jan 2018 08:21:10 +0100 >> Catonano wrote: >> >> > Ah, the spaces :-/ > > >> >> TRYTOPASSILE = /gnu/store/some-hash-passfile >>

Re: weird errors

2018-01-14 Thread Alex Vong
Hello Catonano, Danny Milosavljevic writes: >> So were the spaces the only problem ? > > In > https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/services/trytond.scm > , you don't invoke a shell (example: "sh", "bash", "csh" etc) so the > "VARIABLE=VALUE" syntax will not be eval

Re: weird errors

2018-01-14 Thread Catonano
2018-01-14 17:38 GMT+01:00 Ricardo Wurmus : > > Catonano writes: > > >> I'd just call (setenv "/gnu/store/some-hash-passfile") instead of > >> starting a whole shell (it's a waste and increases the attach surface > for > >> no reason to use a shell here). > >> > > > > I can certainly do like you

Re: weird errors

2018-01-14 Thread Catonano
2018-01-14 17:45 GMT+01:00 Danny Milosavljevic : > > So were the spaces the only problem ? > > In https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/ > services/trytond.scm , you don't invoke a shell (example: "sh", "bash", > "csh" etc) so the "VARIABLE=VALUE" syntax will not be e

Re: weird errors

2018-01-14 Thread Danny Milosavljevic
> So were the spaces the only problem ? In https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/services/trytond.scm , you don't invoke a shell (example: "sh", "bash", "csh" etc) so the "VARIABLE=VALUE" syntax will not be evaluated by the shell and the kernel will try to start a

Re: weird errors

2018-01-14 Thread Ricardo Wurmus
Catonano writes: >> I'd just call (setenv "/gnu/store/some-hash-passfile") instead of >> starting a whole shell (it's a waste and increases the attach surface for >> no reason to use a shell here). >> > > I can certainly do like you suggest. It's cleaner > > But "trytond-admin" has to be called

Re: weird errors

2018-01-14 Thread Catonano
Hi Danny, thanks for your help 2018-01-14 11:43 GMT+01:00 Danny Milosavljevic : > Hi Catonano, > > On Sun, 14 Jan 2018 08:21:10 +0100 > Catonano wrote: > > > the line is supposed to be like > > > > TRYTOPASSILE = /path/to/some/passfile trytond-admin -c > > trytond-conf-file.conf > firstable I

Re: weird errors

2018-01-14 Thread Danny Milosavljevic
On Sun, 14 Jan 2018 11:43:46 +0100 Danny Milosavljevic wrote: > Hi Catonano, > > On Sun, 14 Jan 2018 08:21:10 +0100 > Catonano wrote: > > > the line is supposed to be like > > > > TRYTOPASSILE = /path/to/some/passfile trytond-admin -c > > trytond-conf-file.conf > > > > that is > > > > TRYTO

Re: weird errors

2018-01-14 Thread Danny Milosavljevic
Hi Catonano, On Sun, 14 Jan 2018 08:21:10 +0100 Catonano wrote: > the line is supposed to be like > > TRYTOPASSILE = /path/to/some/passfile trytond-admin -c > trytond-conf-file.conf > > that is > > TRYTOPASSILE = /gnu/store/some-hash-passfile > /gnu/store/some-hash-trytond-admin -c > /gnu/sto

Re: weird errors

2018-01-13 Thread Catonano
2018-01-13 22:13 GMT+01:00 Ludovic Courtès : > Heya, > > Catonano skribis: > > > In execvp of TRYTONPASSFILE = > > /gnu/store/3qpvdgkagkqyzpaw65c0plzd9zqp44v6-passfile > > /gnu/store/144hjm67pzq9x0v47hwfiabwqq219aya-trytond-4.6.2/bin/trytond- > admin: > > No such file or directory > > ERROR: In p

Re: weird errors

2018-01-13 Thread Ludovic Courtès
Heya, Catonano skribis: > In execvp of TRYTONPASSFILE = > /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 = > /gnu/sto

weird errors

2018-01-13 Thread Catonano
Ok, I'm trying to build this tryton service In running a VM like this /gnu/store/9qcwl2vl8lnfbiid31irj92ffcagrc45-run-vm.sh --serial stdio -m 2G I run into this error: ... In execvp of TRYTONPASSFILE = /gnu/store/3qpvdgkagkqyzpaw65c0plzd9zqp44v6-passfile /gnu/store/144hjm67pzq9x0v47hwfiabwqq219