unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Catonano <catonano@gmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: wrong type of agument... where ?
Date: Mon, 1 Jan 2018 11:54:50 +0100	[thread overview]
Message-ID: <CAJ98PDzmu4o1wn_qzuWKv5OToCXPqTnZ6xevnmRtDumonSCGog@mail.gmail.com> (raw)
In-Reply-To: <20180101003918.501ab0c3@scratchpost.org>

[-- Attachment #1: Type: text/plain, Size: 2348 bytes --]

Danny,

2018-01-01 0:39 GMT+01:00 Danny Milosavljevic <dannym@scratchpost.org>:

> Try this:
>
> diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
> index 4dd740174..810a0d63f 100644
> --- a/gnu/build/linux-boot.scm
> +++ b/gnu/build/linux-boot.scm
> @@ -507,7 +507,14 @@ to it are lost."
>               (switch-root "/root")
>               (format #t "loading '~a'...\n" to-load)
>
> -             (primitive-load to-load)
> +             (catch #t
> +               (lambda ()
> +                 (primitive-load to-load))
> +               (lambda (key . args)
> +                 (format (current-error-port) "Error: ~a: ~a\n" key args)
> +                 (reboot))
> +               (lambda (key . args)
> +                 (display-backtrace (make-stack #t)
> (current-error-port))))
>
>               (format (current-error-port)
>                       "boot program '~a' terminated, rebooting~%"
>

thank you so much for this !

I don't know if it' s current anymore, though

In fact, I have discovered some errors I made in the code

Now the trytond test succeeds (yay !) and I don't get ushered in a REPL
anymore

There wee seveal problems

First, I hadn't pdated gnulocal.mk with my new files

gnu/services/trytond.scm
gnu/tests/trytond.scm

Also the Gexpression used in my trytond activation was garbled, so the
shepherd serrvice coldn't run

As a consequence, in the test definition this piece of code

            (marionette-eval
             '(begin
                (use-modules (gnu services herd))
                (match (start-service 'trytond)
                  (#f #f)
                  (('service response-parts ...)
                   (match (assq-ref response-parts 'running)
                     ((pid) (number? pid))))))
             marionette))


didn't succeed. In the match clause, the (#f #f) case ensued (I suppose)

I discovered all this by creating a virtual machine based on my trytond
branch and running it manually

After I fixed all these glitches, the system test run as a charm

So now I'm a bit overwhelmed and I don't know if your suggestion is still
currrent

I can tell you, though, that I feel very reassured by the fact that someone
tried to help me out !

I'll keep your suggestion in mind, should I have any further problems with
the marionette service

Happy New Year !
Ciao
Cato

[-- Attachment #2: Type: text/html, Size: 3949 bytes --]

  reply	other threads:[~2018-01-01 10:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-31 11:39 wrong type of agument... where ? Catonano
2017-12-31 12:23 ` Danny Milosavljevic
2017-12-31 13:04   ` Catonano
2017-12-31 14:35     ` Danny Milosavljevic
2017-12-31 14:48       ` Catonano
2017-12-31 23:03         ` Catonano
2017-12-31 23:39         ` Danny Milosavljevic
2018-01-01 10:54           ` Catonano [this message]
2018-01-01 14:01             ` Danny Milosavljevic
2018-01-07  1:46           ` Chris Marusich
2018-01-07 10:46             ` Danny Milosavljevic
2018-01-07 23:22               ` Danny Milosavljevic
2018-01-08 18:36                 ` Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ98PDzmu4o1wn_qzuWKv5OToCXPqTnZ6xevnmRtDumonSCGog@mail.gmail.com \
    --to=catonano@gmail.com \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).