Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: shunichi shinohara
RE: cannot connect to standalone local queue- [ reply ]  
2007-07-13 16:44
>Instead, ACL is only allow IPv4 localhost (127.0.0.1), I feel odd but can't figure out yet.

ACL is hard-coded as "127.0.0.1", in version 1.1.0 http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/reliable-msg/lib/reliable-msg/queue-manager.rb?revision=1.1&root=reliable-msg&view=markup .

This is fixed in the HEAD revision to "localhost".

By: shunichi shinohara
RE: cannot connect to standalone local queue- [ reply ]  
2007-07-13 14:44
In Mac OS X, IPv6 is ready. QueueManager is listen on localhost of IPv6 (::1) in initial settings. You can see this by the command "netstat -an".

Instead, ACL is only allow IPv4 localhost (127.0.0.1), I feel odd but can't figure out yet.

So you can connect to QueueManager either by setting QueueManager's listen address as 127.0.0.1 or by adding ::1 to ACL (this time, you should change some code in reliable-msg lib http://rubyforge.org/forum/forum.php?thread_id=12747&forum_id=4548). If you don't use IPv6, I don't try by myself, you can disable it.

By: Assaf Arkin
RE: cannot connect to standalone local queue- [ reply ]  
2007-07-07 02:38
I've seen it before, I don't remember what it was, either trying to connect on 0.0.0.0, or using IPv6 instead of IPv4. Using 127.0.0.1 seems to be the easy fix.

By: Andrew Kuklewicz
RE: cannot connect to standalone local queue- [ reply ]  
2007-07-05 13:57
Looking at others with this drb error, I found one thing that works -

http://readlist.com/lists/lists.rubyonrails.org/rails/6/33045.html

if I change the queuemanager to use 127.0.01 instead of localhost, then everything works suddenly so it must be some mac osx dns flakiness.

Anyone else getting this?

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