 |
Forums |
Admin Start New Thread
By: Andrew Kuklewicz
cannot connect to standalone local queue-mgr [ reply ] 2007-07-05 12:42
|
hello,
I've been trying to use reliable-messaging for a few dats now on my mac, running ruby 1.8.5, reliable-msg gem 1.1.0, but whenever I try to run an example, I cannot connect to the standalone running queue manager.
All I did was follow the instructions on the wiki.
Installed the gem, then start the server as:
sudo queues manager start
Created queues configuration file in: /usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/queues.cfg
Using message store: disk
Accepting requests at: druby://localhost:6438
Then in another terminal window, I ran irb, but when I called 'put' on a Queue, I get:
DRb::DRbConnError: connection closed
Likewise, if I have the standalone qm running and use the cli I get the same error:
sudo queues list foobar
Cannot access queue manager: is it running?
that message is what the same DRbConnError causes t be displayed.
If instead of running standalone, I create and start a QueueManager in the irb session, then in the same irb session create a Queue and put to it - that works.
If I try the same irb sequence and do a put while the queue manager is not running at all, I get a different error -
DRb::DRbConnError: druby://localhost:6438 - #<Errno::ECONNREFUSED: Connection refused - connect(2)>
...which implies to me that there is some attempt at communication, but for some reason it always fails.
So I'm at a loss - any ideas why I cannot connect?
Am I missing something?
Here is the output of the irb session that produces the error:
[08:30:10][akuklewicz][~]> irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'reliable-msg'
=> true
irb(main):003:0> q = ReliableMsg::Queue.new 'foobar'
=> #<ReliableMsg::Queue:0x281c6ec @queue="foobar">
irb(main):004:0> q.put 'test'
connection closed
/usr/local/lib/ruby/1.8/drb/drb.rb:570:in `load'/usr/local/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'/usr/local/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1170:in `open'/usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'/usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `call'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `repeated'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'(irb):4:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52
connection closed
/usr/local/lib/ruby/1.8/drb/drb.rb:570:in `load'/usr/local/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'/usr/local/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1170:in `open'/usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'/usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `call'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `repeated'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'(irb):4:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52
connection closed
/usr/local/lib/ruby/1.8/drb/drb.rb:570:in `load'/usr/local/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'/usr/local/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1170:in `open'/usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'/usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `call'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `repeated'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'(irb):4:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52
connection closed
/usr/local/lib/ruby/1.8/drb/drb.rb:570:in `load'/usr/local/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'/usr/local/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1170:in `open'/usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'/usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `call'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `repeated'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'(irb):4:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52
connection closed
/usr/local/lib/ruby/1.8/drb/drb.rb:570:in `load'/usr/local/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'/usr/local/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'/usr/local/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1170:in `open'/usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'/usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'/usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `call'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `repeated'/usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'(irb):4:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'/usr/local/lib/ruby/1.8/irb/workspace.rb:52
DRb::DRbConnError: connection closed
from /usr/local/lib/ruby/1.8/drb/drb.rb:570:in `load'
from /usr/local/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'
from /usr/local/lib/ruby/1.8/drb/drb.rb:921:in `recv_reply'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1195:in `send_message'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1086:in `method_missing'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1170:in `open'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
from /usr/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'
from /usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/client.rb:128:in `repeated'
from /usr/local/lib/ruby/gems/1.8/gems/reliable-msg-1.1.0/lib/reliable-msg/queue.rb:147:in `put'
from (irb):4
|
|
 |