Discussion:
wrong type of agument... where ?
Add Reply
Catonano
2017-12-31 11:39:07 UTC
Reply
Permalink
Raw Message
In attempting to test my trytond service wit hthhis line

make check-system TESTS="trytond"

I get this errror

[...]
adding user 'guixbuilder08'...
adding user 'guixbuilder09'...
adding user 'guixbuilder10'...
adding user 'trytond'...
adding user 'postgres'...
registering public key
'/gnu/store/94y24as2zk3n3n39602vlanqb1g5j0c0-guix-0.13.0-12.0a154c1/share/guix/hydra.gnu.org.pub'...
ERROR: In procedure append:
ERROR: In procedure append: Wrong type argument in position 1 (expecting
empty list): "-c en_US.utf8"

Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)>


Where does this -c en_US.utf8 string come from ?
Where is append being called ?

Could I have a slighhtly more verbose error message ?

Thanks
Danny Milosavljevic
2017-12-31 12:23:21 UTC
Reply
Permalink
Raw Message
Hi Catonano,

On Sun, 31 Dec 2017 12:39:07 +0100
Post by Catonano
In attempting to test my trytond service wit hthhis line
make check-system TESTS="trytond"
I get this errror
[...]
adding user 'guixbuilder08'...
adding user 'guixbuilder09'...
adding user 'guixbuilder10'...
adding user 'trytond'...
adding user 'postgres'...
registering public key
'/gnu/store/94y24as2zk3n3n39602vlanqb1g5j0c0-guix-0.13.0-12.0a154c1/share/guix/hydra.gnu.org.pub'...
ERROR: In procedure append: Wrong type argument in position 1 (expecting
empty list): "-c en_US.utf8"
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
Where does this -c en_US.utf8 string come from ?
Where is append being called ?
Could I have a slighhtly more verbose error message ?
Write ,bt (including the comma)

I agree, the error message could be better. Let's see where it comes from.

Or is that not an interactive REPL?
Catonano
2017-12-31 13:04:50 UTC
Reply
Permalink
Raw Message
Post by Danny Milosavljevic
Hi Catonano,
On Sun, 31 Dec 2017 12:39:07 +0100
Post by Catonano
In attempting to test my trytond service wit hthhis line
make check-system TESTS="trytond"
I get this errror
[...]
adding user 'guixbuilder08'...
adding user 'guixbuilder09'...
adding user 'guixbuilder10'...
adding user 'trytond'...
adding user 'postgres'...
registering public key
'/gnu/store/94y24as2zk3n3n39602vlanqb1g5j0c0-guix-0.13.0-12.0a154c1/
share/guix/hydra.gnu.org.pub'...
Post by Catonano
ERROR: In procedure append: Wrong type argument in position 1 (expecting
empty list): "-c en_US.utf8"
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
Where does this -c en_US.utf8 string come from ?
Where is append being called ?
Could I have a slighhtly more verbose error message ?
Write ,bt (including the comma)
I agree, the error message could be better. Let's see where it comes from.
Or is that not an interactive REPL?
Yes, there iis a REPL but

,bt

doesn't return a prrompt. It remains suspended, like this


[...]
adding user 'guixbuilder08'...
adding user 'guixbuilder09'...
adding user 'guixbuilder10'...
adding user 'trytond'...
adding user 'postgres'...
registering public key
'/gnu/store/94y24as2zk3n3n39602vlanqb1g5j0c0-guix-0.13.0-12.0a154c1/share/guix/hydra.gnu.org.pub'...
ERROR: In procedure append:
ERROR: In procedure append: Wrong type argument in position 1 (expecting
empty list): "-c en_US.utf8"

Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
GNU Guile 2.2.2
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,bt
Danny Milosavljevic
2017-12-31 14:35:03 UTC
Reply
Permalink
Raw Message
Is the tryton test using marionette-operating-system ?

marionette-shepherd-service seems to already try to remote-control the system - but it seems that this case has not been handled?

Check out marionette-shepherd-service in gnu/tests.scm for the general mechanism. Maybe add some (display "XXX") in there in order to find out where it goes off the deep end.
Catonano
2017-12-31 14:48:11 UTC
Reply
Permalink
Raw Message
Post by Danny Milosavljevic
Is the tryton test using marionette-operating-system ?
I believe it is

Anyway, here's the definition of the service
https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/services/trytond.scm

And here's the test
https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/tests/trytond.scm
Post by Danny Milosavljevic
marionette-shepherd-service seems to already try to remote-control the
system - but it seems that this case has not been handled?
Check out marionette-shepherd-service in gnu/tests.scm for the general
mechanism. Maybe add some (display "XXX") in there in order to find out
where it goes off the deep end
I'll take a look
Thanks
Catonano
2017-12-31 23:03:41 UTC
Reply
Permalink
Raw Message
I made it

the first trytond test (to check if trytond is running) passed successfully

make check-system TESTS="trytond"

And it's exactly midnight !
Happy New Year !
Post by Catonano
Post by Danny Milosavljevic
Is the tryton test using marionette-operating-system ?
I believe it is
Anyway, here's the definition of the service
https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/
services/trytond.scm
And here's the test
https://gitlab.com/humanitiesNerd/guix-hacks/blob/trytonservice/gnu/tests/
trytond.scm
Post by Danny Milosavljevic
marionette-shepherd-service seems to already try to remote-control the
system - but it seems that this case has not been handled?
Check out marionette-shepherd-service in gnu/tests.scm for the general
mechanism. Maybe add some (display "XXX") in there in order to find out
where it goes off the deep end
I'll take a look
Thanks
Danny Milosavljevic
2017-12-31 23:39:18 UTC
Reply
Permalink
Raw Message
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~%"

Loading...