Tyrantmanager - undefined method `instances' for nil:NilClass

Hi,

I installed Tyrant Manager 1.6.0 successful and it works at the
beginning steps, such as: setup a home, create a new instance:

tyrantmanager setup /data/tyrant
/usr/lib64/ruby/gems/1.8/gems/loquacious-1.6.4/lib/loquacious/undefined.rb:87:
warning: parenthesize argument(s) for future version
19:21:51 INFO : Creating directory /data/tyrant
19:21:51 INFO : Creating default config file /data/tyrant/config.rb
19:21:51 INFO : Creating directory /data/tyrant/instances
19:21:51 INFO : Creating directory /data/tyrant/log
19:21:51 INFO : Creating directory /data/tyrant/tmp

tyrantmanager create-instance my_soha
/usr/lib64/ruby/gems/1.8/gems/loquacious-1.6.4/lib/loquacious/undefined.rb:87:
warning: parenthesize argument(s) for future version
19:22:11 INFO : Creating instance directory
/data/tyrant/instances/my_soha
19:22:11 INFO : Creating directory /data/tyrant/instances/my_soha
19:22:11 INFO : Creating default config file
/data/tyrant/instances/my_soha/config.rb
19:22:11 INFO : Creating directory /data/tyrant/instances/my_soha/ulog
19:22:11 INFO : Creating directory /data/tyrant/instances/my_soha/data
19:22:11 INFO : Creating directory /data/tyrant/instances/my_soha/lua
19:22:11 INFO : Creating directory /data/tyrant/instances/my_soha/log

But I got the following error when listing or controlling instances:

/usr/lib64/ruby/gems/1.8/gems/loquacious-1.6.4/lib/loquacious/undefined.rb:87:
warning: parenthesize argument(s) for future version
19:37:23 ERROR : while running list : undefined method instances’ for
nil:NilClass
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/lib/tyrant_manager.rb:192:ininstances’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/lib/tyrant_manager.rb:225:in
each_instance’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/lib/tyrant_manager/commands/list.rb:10:inrun’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/lib/tyrant_manager/runner.rb:22:in
run’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/lib/tyrant_manager/cli.rb:197:inrun_command_with_params’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/lib/tyrant_manager/cli.rb:109:in
run’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:147:inrun!’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:147:in
run’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:136:incatch’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/main-4.2.0/lib/main/program/class_methods.rb:136:in
run’
19:37:23 WARN :
/usr/lib64/ruby/gems/1.8/gems/tyrantmanager-1.6.0/bin/tyrantmanager:11
19:37:23 WARN : /usr/bin/tyrantmanager:19:inload’
19:37:23 WARN : /usr/bin/tyrantmanager:19

Can you help me solve this error and make the warning about loquacious
disappear?

Below is my details version:

gem list
*** LOCAL GEMS ***

arrayfields (4.7.4)
fattr (2.2.0)
ffi (1.0.0, 0.6.3)
little-plugger (1.1.2)
logging (1.4.3)
loquacious (1.6.4)
main (4.4.0, 4.2.0)
rake (0.8.7)
rufus-tokyo (1.0.7)
tyrantmanager (1.6.0)

tyrant_manager.rb: http://pastebin.com/6av2PYxr

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs