tj3d functionality issue (unable to load projects)

116 views
Skip to first unread message

Octavian G.

unread,
Apr 5, 2013, 3:57:41 AM4/5/13
to taskjugg...@googlegroups.com
Hello,

    This is my first message here, so, nice to meet you all. I have a problem with tj3d. Specifically, I can't load projects in it. I have this problem on 3 Gentoo machines. On all 3, I tried all possible combinations of versions for libyaml (0.1.2 and 0.1.4), the taskjuggler gem (3.4.0 and 3.3.0), and ruby19 (1.9.3_p125 1.9.3_p194-r1 (~)1.9.3_p286 (~)1.9.3_p385 1.9.3_p392). Soo. I'm scratching my head now. I'll paste the symptoms below, but I'll start with .taskjugglerrc:

_global:
authKey: secret
_log:
logLevel: 4
outputLevel: 4

(they're properly indented)

tj3d -c .taskjugglerrc --debug -d -c .taskjugglerrc
TaskJuggler v3.4.0 - A Project Management Software

Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
by Chris Schlaeger <ch...@linux.com>

This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
Free Software Foundation.

Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "global"
Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "log"
Info: TaskJuggler daemon is listening on druby://127.0.0.1:8474
Exception `DRb::DRbConnError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:570 - connection closed

The last line is because I issued:

tj3client --debug status
TaskJuggler v3.4.0 - A Project Management Software

Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
by Chris Schlaeger <ch...@linux.com>

This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
Free Software Foundation.

Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "global"
Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "log"
No projects registered

Now, if I try to add a project:

tj3client --debug add tutorial.tjp
TaskJuggler v3.4.0 - A Project Management Software

Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012
by Chris Schlaeger <ch...@linux.com>

This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
Free Software Foundation.

Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "global"
Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "log"
Exception `TypeError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:557 - can't dump IO
Exception `TypeError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:521 - can't dump IO
Exception `TypeError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:521 - can't dump IO
Exception `TypeError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:521 - can't dump IO
Exception `SecurityError' at /usr/local/lib64/ruby/gems/1.9.1/gems/taskjuggler-3.4.0/lib/taskjuggler/UTF8String.rb:130 - Insecure operation - encode
Warning: Projects(s) tutorial.tjp could not be added

Which generates (in the server console):

Exception `DRb::DRbConnError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:570 - connection closed
Warning: Loading of project failed: connection closed
Exception `DRb::DRbConnError' at /usr/lib64/ruby/1.9.1/drb/drb.rb:570 - connection closed

P.S. I do have the UTF8 locale.

Chris Schlaeger

unread,
Apr 7, 2013, 11:27:03 AM4/7/13
to taskjugg...@googlegroups.com

On Fri, Apr 5, 2013 at 9:57 AM, Octavian G. <octav...@gmail.com> wrote:
Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "global"
Exception `ArgumentError' at /usr/lib64/ruby/1.9.1/psych/scalar_scanner.rb:91 - invalid value for Integer(): "log"

That smells like you are having problems with your YAML library. Can you post the output of 

  ruby -r yaml -e "YAML::load_file('.taskjugglerrc')"

Execute this command in a shell in the directory where the .taskjugglerrc file is located. Normal result would be no error.

Chris

Octavian G.

unread,
Apr 8, 2013, 5:42:28 AM4/8/13
to taskjugg...@googlegroups.com

Hello. Thanks for the answer. No errors, no results, nothing happened.


--
You received this message because you are subscribed to the "TaskJuggler Users" group.
To post to this group, send email to taskjugg...@googlegroups.com
To unsubscribe from this group, send email to
taskjuggler-us...@googlegroups.com
For more information about TaskJuggler visit http://www.taskjuggler.org
---
You received this message because you are subscribed to the Google Groups "TaskJuggler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taskjuggler-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Chris Schlaeger

unread,
Apr 8, 2013, 1:13:36 PM4/8/13
to taskjugg...@googlegroups.com
Please run tj3 with the -d command line option. This should give us more details.

Chris

Octavian G.

unread,
Apr 9, 2013, 3:29:38 AM4/9/13
to taskjugg...@googlegroups.com
Hello Chris,

     Could you please be a bit more specific ? In my initial email I used tj3d and tj3client (both with --debug and tj3d with -d), not tj3. Is there any specific command you want me to run ?

Octavian G.

unread,
Apr 12, 2013, 9:34:24 AM4/12/13
to taskjugg...@googlegroups.com

Any ideas ?

Johan Ekh

unread,
Feb 4, 2015, 5:56:43 PM2/4/15
to taskjugg...@googlegroups.com, octav...@gmail.com
Hi Octavian

I experience the same problem. Did you find a solution?
BR / Johan
Reply all
Reply to author
Forward
0 new messages