Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  no connection established

Guest
Posted: Tue May 13, 2008 4:53 pm Reply with quote
Guest
The rabbitmq server runs, it seems, but no connections are being accepted by it,
from the java samples or dotnet sample programs or my own programs.

For three days I have been trying everything imaginable to me to get any client
program to connect to the rabbitmq server. For example I disabled tcpv6 on my
system and tried all manner of user permissions in the rabbitmq server for 'guest'
and my custom account 'ga' which I gave all same permissions as 'guest'.

The web site asks users to send a note to legitimateconcern@rabbitmq.com if it takes
more than 2 minutes to connect. Si I have sent a detailed note. There has been no
response to it.

The web site says Please join our mailing list or send questions to
info@rabbitmq.com. We'd love to hear from you. I've subscribed and sent a detailed
message to the mailing list. My email did not appear in the mailing list, and no
responses came back.

Nothing is working thus far, the mailing list, the feedback email, the rabbitmq
connections. This is my last attempt for anything to happen after which rabbitmq
must be abandoned for lack of anything working. More than three days of time is too
much to spend into something and get nothing from it.

To be clear, this message is solely intended as a reflection on my own inabilities
and oversights, and nothing I am aware of is wrong with rabbitmq.com, the rabbitmq
server, the documentation, the sample code, the mailing list, all of which is
graciously offered at no cost, and works for others on the mailing list. I do not
mean to upset anyone.

My only intent is to ask for a nice person to volunteer their valuable time to share
information with me that helps the rabbitmq server accept a connection from any
client program. Java is OK, dotnet is OK, either one as you like, I'll work with
you. I am a C# 2.0 programmer FWIW. Windows XP-SP2 is the operating system.


Details to demonstrate the RabbitMQ inability to accept a connection. Maybe this
info contains some clue to someone smarter than me, I don't know.


1. Server is launched:

C:\>"C:\rabbitmq\erl5.5.5\lib\rabbitmq_server-1.3.0\sbin\rabbitmq-server.bat"
RabbitMQ 1.3.0 (AMQP 8-0)
Copyright (C) 2007-2008 LShift Ltd., Cohesive Financial Technologies LLC., and
Rabbit Technologies Ltd.
Licensed under the MPL. See http://www.rabbitmq.com/

Logging to "C:/Documents and Settings/ga/rabbitmq//log/rabbit.log"
SASL logging to "C:/Documents and Settings/ga/rabbitmq//log/rabbit-sasl.log"

starting database ...done
starting core processes ...done
starting recovery ...done
starting persister ...done
starting builtin applications ...done
starting TCP listeners ...done

broker running



2. Java sample program "Tracer" is launched:

C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat com.rabbitmq.tools.Tracer
Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
Invoked as: Tracer 5673 localhost 5672
com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false



3. Dotnet sample program is launched:

C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>DeclareQueue.exe alpeduez
testqueue
None of the specified endpoints were reachable
Endpoints attempted:
endpoint=amqp-0-9://alpeduez:5672, attempts=1, outcome=AMQP server protocol
negotiation failure: server version 0-8, t
ransport parameters -1:-1
Stack trace:
at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32 maxRedirects,
AmqpTcpEndpoint[] endpoints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[]
endpoints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(String address)
at RabbitMQ.Client.Examples.DeclareQueue.Main(String[] args)




4. Go look again to see if Tracer saw any traffic:

C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat com.rabbitmq.tools.Tracer
Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
Invoked as: Tracer 5673 localhost 5672
com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false


It seems no traffic was detected during the dotnet sample program execution.


5. Do a netstat command to see if it looks like a server is really listening.

C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>netstat

Active Connections

Proto Local Address Foreign Address State
TCP alpeduez:1800 localhost:4369 ESTABLISHED
TCP alpeduez:4369 localhost:1800 ESTABLISHED
TCP alpeduez:1802 alpeduez:5672 TIME_WAIT

C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>


Yes there is something on alpeduez:5672 which is in a TIME_WAIT. Maybe that's OK,
maybe not. I don't know what a normally working system netstat looks like. Do you
know what a netstat returns on a working rabbitmq system installation?


6. I run my own C# software and attempt connection to rabbitmq.

No connections are working and the error message talks about endpoints or protocols.
Sorry I dont remember exactly, my bad. The CreateConnection method on the factory
is throwing the exception consistently on all input values. I was using
Protocol.GetFromEnviroment and passing in my host name 'alpeduez' to the
CreateConnection method.



7. This is the whole contents of rabbit.log


=INFO REPORT==== 13-May-2008::12:32:09 ===
disk_log: repairing "c:/Documents and
Settings/ga/rabbitmq/db/rabbit-mnesia/rabbit_persister.LOG" ...

=INFO REPORT==== 13-May-2008::12:32:09 ===
Repaired persister log - 1 recovered, 0 bad

=INFO REPORT==== 13-May-2008::12:32:09 ===
Rolling persister log to "c:/Documents and
Settings/ga/rabbitmq/db/rabbit-mnesia/rabbit_persister.LOG.previous"

=INFO REPORT==== 13-May-2008::12:32:09 ===
started TCP listener on 0.0.0.0:5672

=INFO REPORT==== 13-May-2008::12:39:39 ===
accepted TCP connection on 0.0.0.0:5672 from 192.168.1.100:1802

=ERROR REPORT==== 13-May-2008::12:39:39 ===
error on TCP connection from 192.168.1.100:1802
connection_closed_abruptly

=INFO REPORT==== 13-May-2008::12:39:39 ===
closing TCP connection from 192.168.1.100:1802



Thank you for any clues or attempts to help me get a connection to RabbitMQ.


Regards,

Geoffrey









_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Tue May 13, 2008 5:00 pm Reply with quote
Guest
Hey Geoffrey,

If you try:
DeclareQueue.exe localhost testqueue
do you have any more luck?

Although RabbitMQ is listening to 0.0.0.0 there may be some hostname
resolution issues happening.

Dave




Geoffrey Anderson
<mrcoder@yahoo.co
m> To
Sent by: rabbitmq-discuss@lists.rabbitmq.com
rabbitmq-discuss- cc
bounces@lists.rab
bitmq.com Subject
[rabbitmq-discuss] no connection
established
13/05/2008 17:53










The rabbitmq server runs, it seems, but no connections are being accepted
by it,
from the java samples or dotnet sample programs or my own programs.

For three days I have been trying everything imaginable to me to get any
client
program to connect to the rabbitmq server. For example I disabled tcpv6 on
my
system and tried all manner of user permissions in the rabbitmq server for
'guest'
and my custom account 'ga' which I gave all same permissions as 'guest'.

The web site asks users to send a note to legitimateconcern@rabbitmq.com if
it takes
more than 2 minutes to connect. Si I have sent a detailed note. There has
been no
response to it.

The web site says Please join our mailing list or send questions to
info@rabbitmq.com. We'd love to hear from you. I've subscribed and sent a
detailed
message to the mailing list. My email did not appear in the mailing list,
and no
responses came back.

Nothing is working thus far, the mailing list, the feedback email, the
rabbitmq
connections. This is my last attempt for anything to happen after which
rabbitmq
must be abandoned for lack of anything working. More than three days of
time is too
much to spend into something and get nothing from it.

To be clear, this message is solely intended as a reflection on my own
inabilities
and oversights, and nothing I am aware of is wrong with rabbitmq.com, the
rabbitmq
server, the documentation, the sample code, the mailing list, all of which
is
graciously offered at no cost, and works for others on the mailing list. I
do not
mean to upset anyone.

My only intent is to ask for a nice person to volunteer their valuable time
to share
information with me that helps the rabbitmq server accept a connection
from any
client program. Java is OK, dotnet is OK, either one as you like, I'll work
with
you. I am a C# 2.0 programmer FWIW. Windows XP-SP2 is the operating
system.


Details to demonstrate the RabbitMQ inability to accept a connection. Maybe
this
info contains some clue to someone smarter than me, I don't know.


1. Server is launched:

C:\>"C:\rabbitmq\erl5.5.5\lib\rabbitmq_server-1.3.0
\sbin\rabbitmq-server.bat"
RabbitMQ 1.3.0 (AMQP 8-0)
Copyright (C) 2007-2008 LShift Ltd., Cohesive Financial Technologies LLC.,
and
Rabbit Technologies Ltd.
Licensed under the MPL. See http://www.rabbitmq.com/

Logging to "C:/Documents and Settings/ga/rabbitmq//log/rabbit.log"
SASL logging to "C:/Documents and
Settings/ga/rabbitmq//log/rabbit-sasl.log"

starting database ...done
starting core processes ...done
starting recovery ...done
starting persister ...done
starting builtin applications ...done
starting TCP listeners ...done

broker running



2. Java sample program "Tracer" is launched:

C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat com.rabbitmq.tools.Tracer
Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
Invoked as: Tracer 5673 localhost 5672
com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false



3. Dotnet sample program is launched:

C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>DeclareQueue.exe
alpeduez
testqueue
None of the specified endpoints were reachable
Endpoints attempted:
endpoint=amqp-0-9://alpeduez:5672, attempts=1, outcome=AMQP server
protocol
negotiation failure: server version 0-8, t
ransport parameters -1:-1
Stack trace:
at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32
maxRedirects,
AmqpTcpEndpoint[] endpoints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[]
endpoints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(String address)
at RabbitMQ.Client.Examples.DeclareQueue.Main(String[] args)




4. Go look again to see if Tracer saw any traffic:

C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat com.rabbitmq.tools.Tracer
Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
Invoked as: Tracer 5673 localhost 5672
com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false


It seems no traffic was detected during the dotnet sample program
execution.


5. Do a netstat command to see if it looks like a server is really
listening.

C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>netstat

Active Connections

Proto Local Address Foreign Address State
TCP alpeduez:1800 localhost:4369 ESTABLISHED
TCP alpeduez:4369 localhost:1800 ESTABLISHED
TCP alpeduez:1802 alpeduez:5672 TIME_WAIT

C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>


Yes there is something on alpeduez:5672 which is in a TIME_WAIT. Maybe
that's OK,
maybe not. I don't know what a normally working system netstat looks like.
Do you
know what a netstat returns on a working rabbitmq system installation?


6. I run my own C# software and attempt connection to rabbitmq.

No connections are working and the error message talks about endpoints or
protocols.
Sorry I dont remember exactly, my bad. The CreateConnection method on the
factory
is throwing the exception consistently on all input values. I was using
Protocol.GetFromEnviroment and passing in my host name 'alpeduez' to the
CreateConnection method.



7. This is the whole contents of rabbit.log


=INFO REPORT==== 13-May-2008::12:32:09 ===
disk_log: repairing "c:/Documents and
Settings/ga/rabbitmq/db/rabbit-mnesia/rabbit_persister.LOG" ...

=INFO REPORT==== 13-May-2008::12:32:09 ===
Repaired persister log - 1 recovered, 0 bad

=INFO REPORT==== 13-May-2008::12:32:09 ===
Rolling persister log to "c:/Documents and
Settings/ga/rabbitmq/db/rabbit-mnesia/rabbit_persister.LOG.previous"

=INFO REPORT==== 13-May-2008::12:32:09 ===
started TCP listener on 0.0.0.0:5672

=INFO REPORT==== 13-May-2008::12:39:39 ===
accepted TCP connection on 0.0.0.0:5672 from 192.168.1.100:1802

=ERROR REPORT==== 13-May-2008::12:39:39 ===
error on TCP connection from 192.168.1.100:1802
connection_closed_abruptly

=INFO REPORT==== 13-May-2008::12:39:39 ===
closing TCP connection from 192.168.1.100:1802



Thank you for any clues or attempts to help me get a connection to
RabbitMQ.


Regards,

Geoffrey









_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



*********************************************************************
This communication contains confidential information, some or all of which may be privileged. It is for the intended recipient only and others must not disclose, distribute, copy, print or rely on this communication. If an addressing or transmission error has misdirected this communication, please notify the sender by replying to this e-mail and then delete the e-mail. E-mail sent to EDF Trading may be monitored by the company. Thank you.
EDF Trading Limited
80 Victoria Street, 3rd Floor, Cardinal Place, London, SW1E 5JL
A Company registered in England No. 4255974.
Switchboard: 020 7061 4000
EDF Trading Markets Limited is a member of the EDF Trading Limited Group and is authorised and regulated by the Financial Services Authority.
VAT number: GB 735 5479 07
*********************************************************************

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Tue May 13, 2008 5:47 pm Reply with quote
Guest
I am not a RabbitMQ expert, but it seems to me that this message is te key to your problems:

0x6e6562
Posted: Tue May 13, 2008 5:54 pm Reply with quote
User Joined: 12 Jul 2007 Posts: 250
Hi Geoffrey,

Sorry to hear that you have run into difficulties.

On 13 May 2008, at 17:53, Geoffrey Anderson wrote:

> The rabbitmq server runs, it seems, but no connections are being
> accepted by it,
> from the java samples or dotnet sample programs or my own programs.

Can you try with a simple TCP client, e.g.

nc 0.0.0.0 5672

?

What shows up in the server log when you do this?

> For three days I have been trying everything imaginable to me to get
> any client
> program to connect to the rabbitmq server. For example I disabled
> tcpv6 on my
> system and tried all manner of user permissions in the rabbitmq
> server for 'guest'
> and my custom account 'ga' which I gave all same permissions as
> 'guest'.
>


By default Rabbit ships with the user/pass combination guest/guest, so
without further ado that should work.

> The web site asks users to send a note to legitimateconcern@rabbitmq.com
> if it takes
> more than 2 minutes to connect. Si I have sent a detailed note.
> There has been no
> response to it.

Don't want to split hairs but the address is legitimategrievance@rabbitmq.com
, so you probably sent a message to a non-existent mailbox.

>
>
> The web site says Please join our mailing list or send questions to
> info@rabbitmq.com. We'd love to hear from you. I've subscribed and
> sent a detailed
> message to the mailing list. My email did not appear in the mailing
> list, and no
> responses came back.

Here's one Smile

> Nothing is working thus far, the mailing list, the feedback email,
> the rabbitmq
> connections. This is my last attempt for anything to happen after
> which rabbitmq
> must be abandoned for lack of anything working. More than three
> days of time is too
> much to spend into something and get nothing from it.
>
...
>
> 2. Java sample program "Tracer" is launched:
>
> C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat
> com.rabbitmq.tools.Tracer
> Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
> Invoked as: Tracer 5673 localhost 5672
> com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
> com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
> com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
> com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false
>
>
>
> 3. Dotnet sample program is launched:
>
> C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-
> net-2.0\bin>DeclareQueue.exe alpeduez
> testqueue
> None of the specified endpoints were reachable
> Endpoints attempted:
> endpoint=amqp-0-9://alpeduez:5672, attempts=1, outcome=AMQP server
> protocol
> negotiation failure: server version 0-8, t
> ransport parameters -1:-1
> Stack trace:
> at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32
> maxRedirects,
> AmqpTcpEndpoint[] endpoints)
> at
> RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[]
> endpoints)
> at RabbitMQ.Client.ConnectionFactory.CreateConnection(String
> address)
> at RabbitMQ.Client.Examples.DeclareQueue.Main(String[] args)
>

You need to specify the protocol version in your config file (refer to
the .NET client manual).
This client is defaulting to AMQP 0-9 whereas Rabbit currently speaks
0-8.

>
> 4. Go look again to see if Tracer saw any traffic:
>
> C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat
> com.rabbitmq.tools.Tracer
> Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
> Invoked as: Tracer 5673 localhost 5672
> com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
> com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
> com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
> com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false
>
>
> It seems no traffic was detected during the dotnet sample program
> execution.
>

Your client will need to connect to the listen port of the tracer,
i.e. 5673. By default AMQP clients connect to 5672.

HTH,

Ben


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Tue May 13, 2008 6:07 pm Reply with quote
Guest
Hello David,

The DeclareQueue sample dotnet program exhibits the connection problem too. All
programs do. Below is the output. Endpoint problems are indicated as always. The
RabbitMQ server is already running in a different console window.

If hostname resolution issues exist, I should think I would be able to detect the
problem with other programs and systems. I have not seen problems in other programs
yet. 'Yet' is the operative word because something is definitely not working, for
sure. Whether it is limited to RabbitMQ or not is unclear but the only program not
working on this host is RabbitMQ to the limit of my current knowledge so therefore I
will continue to focus on RabbitMQ. I used to use Apache ActiveMQ and Iona's brand
of the same but it had shutdown errors which made too much of a mess with the
message transactions to bear so I abandoned them. Socket connections worked though.
I pushed stuff into those queues OK.


C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>declarequeue localhost
testqueue
None of the specified endpoints were reachable
Endpoints attempted:
endpoint=amqp-0-9://localhost:5672, attempts=1, outcome=AMQP server protocol
negotiation failure: server version 0-8,
transport parameters -1:-1
Stack trace:
at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32 maxRedirects,
AmqpTcpEndpoint[] endpoints)
...



--- David.Corcoran@edftrading.com wrote:

> Hey Geoffrey,
>
> If you try:
> DeclareQueue.exe localhost testqueue
> do you have any more luck?
>
> Although RabbitMQ is listening to 0.0.0.0 there may be some hostname
> resolution issues happening.
>
> Dave
>

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
Guest
Posted: Tue May 13, 2008 6:18 pm Reply with quote
Guest
Geoffrey,

Geoffrey Anderson wrote:

> The web site asks users to send a note to
> legitimateconcern@rabbitmq.com if it takes more than 2 minutes to
> connect. Si I have sent a detailed note. There has been no response
> to it.

I am attaching the replies that a colleague and I sent in response to
your email to legitimategrievance@rabbitmq.com. Did you not receive them?

> I've subscribed and sent a detailed message to the mailing list. My
> email did not appear in the mailing list, and no responses came back.

That is strange. Please forward me the message you sent.

Given that *this* message *did* appear on the mailing list, your
subscription appears to be working fine now.

> More than three days of time is too
> much to spend into something and get nothing from it.

I totally agree, which is why we have the legitimategrievance hotline Smile

Hopefully the answers in the attached emails get you going. If not
please mail back.


Matthias.


Post received from mailinglist
Guest
Posted: Tue May 13, 2008 7:16 pm Reply with quote
Guest
--- Ben Hood <0x6e6562@gmail.com> wrote:

> Hi Geoffrey,
>
> Sorry to hear that you have run into difficulties.
>
> On 13 May 2008, at 17:53, Geoffrey Anderson wrote:
>
> > The rabbitmq server runs, it seems, but no connections are being
> > accepted by it,
> > from the java samples or dotnet sample programs or my own programs.
>
> Can you try with a simple TCP client, e.g.
>
> nc 0.0.0.0 5672
>
> ?
>
> What shows up in the server log when you do this?


C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>nc
'nc' is not recognized as an internal or external command,
operable program or batch file.


C:\Documents and Settings\ga>telnet 0.0.0.0 5672
Connecting To 0.0.0.0...Could not open connection to the host, on port 5672: Connect
failed

Thank you for the interesting suggestion. I imagine telnet is just as good as 'nc'
for this purpose although I don't know what 'nc' is.

Seems like no process is listening on port 5672 doesn't it?

OTOH netstat suggests there really IS a process listening there, if I am reading it
correctly:

C:\Documents and Settings\ga>netstat -a

Active Connections

Proto Local Address Foreign Address State
TCP alpeduez:epmap alpeduez:0 LISTENING
TCP alpeduez:microsoft-ds alpeduez:0 LISTENING
TCP alpeduez:1227 alpeduez:0 LISTENING
TCP alpeduez:4369 alpeduez:0 LISTENING
TCP alpeduez:5672 alpeduez:0 LISTENING
TCP alpeduez:1229 localhost:4369 ESTABLISHED
TCP alpeduez:4369 localhost:1229 ESTABLISHED


>
> > For three days I have been trying everything imaginable to me to get
> > any client
> > program to connect to the rabbitmq server. For example I disabled
> > tcpv6 on my
> > system and tried all manner of user permissions in the rabbitmq
> > server for 'guest'
> > and my custom account 'ga' which I gave all same permissions as
> > 'guest'.
> >
>
>
> By default Rabbit ships with the user/pass combination guest/guest, so
> without further ado that should work.
>

I agree. Unfortunately guest/guest really does not work at the moment if the sample
programs are an indication. I shall remove the guest account's permissions for host
security purposes later after this problem is resoloved. Default accounts that ship
with server programs are typical attack targets for malware and script kiddies.

> > The web site asks users to send a note to legitimateconcern@rabbitmq.com
> > if it takes
> > more than 2 minutes to connect. Si I have sent a detailed note.
> > There has been no
> > response to it.
>
> Don't want to split hairs but the address is legitimategrievance@rabbitmq.com
> , so you probably sent a message to a non-existent mailbox.
>

What I didn't tell you until now -- your answer is actually reasonable given what
you knew -- was that I pulled that email address from (human) memory as I was
writing, really only meant as an approximation to get the idea across of what I had
done. It's not the email address I really used, which was copied from the web page
at rabbitmq.com into the clipboard memory and then pasted into the mail program
verbatim. And lo, just a few minutes ago, another person has confirmed receipt of
the original email message, so it's known to be the correct address which I had used
the other day.

> >
> >
> > The web site says Please join our mailing list or send questions to
> > info@rabbitmq.com. We'd love to hear from you. I've subscribed and
> > sent a detailed
> > message to the mailing list. My email did not appear in the mailing
> > list, and no
> > responses came back.
>
> Here's one Smile


Very much appreciated.


> > C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-
> > net-2.0\bin>DeclareQueue.exe alpeduez
> > testqueue
> > None of the specified endpoints were reachable
> > Endpoints attempted:
> > endpoint=amqp-0-9://alpeduez:5672, attempts=1, outcome=AMQP server
> > protocol
> > negotiation failure: server version 0-8, t
> > ransport parameters -1:-1
> > Stack trace:
> > at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32
> > maxRedirects,
> > AmqpTcpEndpoint[] endpoints)
> > at
> > RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[]
> > endpoints)
> > at RabbitMQ.Client.ConnectionFactory.CreateConnection(String
> > address)
> > at RabbitMQ.Client.Examples.DeclareQueue.Main(String[] args)
> >
>
> You need to specify the protocol version in your config file (refer to
> the .NET client manual).
> This client is defaulting to AMQP 0-9 whereas Rabbit currently speaks
> 0-8.
>


Your idea is intriguing... I have a good expectation about it.

You may well be correct. It's interesting though, that the .Net client would be
defaulting to a version of the protocol which is more advanced than the RabbitMQ
server. I wonder how the author developed the .Net client libs in advance of the
server. He's a pretty advanced developer. Wink

More specifically, in my own programs, I had been trying to use a construct like
this:

IProtocol protocol = Protocols.FromEnvironment();
IConnection conn = factory.CreateConnection(protocol, hostName);

To my surprise it didn't work. Now, I am looking at the .NET client user guide
sections 2.2 and 2.3.

It says there is (or expected to be) an environment variable where it gets its
information:

"If no argument is passed to FromEnvironment() or FromConfiguration(), the value of
Protocols.DefaultAppSettingsKey is used. (At the time of writing, the default
appSettings key is
AMQP_PROTOCOL, the same as the name of the shell environment variable scanned.)"


Well the reality is that my system is telling me there really isn't any such shell
environment variable defined:

C:\rabbitmq\librabbitmq-java-1.3.0>echo %AMQP_PROTOCOL%
%AMQP_PROTOCOL%

Maybe this missing envoronment variable is why Protocols.FromEnvironment() is not
useful on my system.

Tyring to follow along with your suggestion, I guess there are two ways to get the
sample .NET programs working with the 0.8 protocol rather than 0.9 protocol.

1 - Change the environment variable AMQP_PROTOCOL. However, my system is reporting
that I don't have this environment variable defined anywhere, so I don't know for
sure what to do. Should I define one now? I guess I could try to create one and
see what happens. I guess I will set AMQP_PROTOCOL to the value "AMQP_0_8".

2 - Change the .config file for every client application. Seeing as they don't have
config files out of the box, I would need to create config files for each one I
guess.

3 - If I am programming my own code, rather than working with the sample programs, I
could also specify my client to use just the desired protocol in a line of code like
this, per User Guide section 2.2:

Given the following App.config snippet,

<appSettings>
<add key="my-protocol" value="AMQP_0_8"/>
</appSettings>

the following code will also bind p to the 0-8 IProtocol implementation:

ConnectionFactory factory = new ConnectionFactory();
//IProtocol protocol = Protocols.FromEnvironment();
IProtocol p = Protocols.FromConfiguration("my-protocol");
IConnection conn = factory.CreateConnection(p, hostName);

Hopefully my own code will run if I write something like the above. And I can try
to get the sample programs working later if I have time.


I guess I would ask you to cut to the chase if that's OK. What did you or other
people actually do specifically on your own systems to get the .NET sample programs
working? Did you manually create the environment variable AMQP_PROTOCOL and set it
to the value "AMQP_0_8"?


> >
> > 4. Go look again to see if Tracer saw any traffic:
> >
> > C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat
> > com.rabbitmq.tools.Tracer
> > Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
> > Invoked as: Tracer 5673 localhost 5672
> > com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
> > com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
> > com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
> > com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false
> >
> >
> > It seems no traffic was detected during the dotnet sample program
> > execution.
> >
>
> Your client will need to connect to the listen port of the tracer,
> i.e. 5673. By default AMQP clients connect to 5672.
>
> HTH,
>
> Ben
>
>


OK that makes some sense. Tracer is a simple proxy server then.

Thank you for the insightful responses.

Geoffrey

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
alexis
Posted: Thu May 15, 2008 2:02 pm Reply with quote
User Joined: 06 Sep 2007 Posts: 80 Location: London
Geoffrey

How are you getting on? Have all your questions been answered
satisfactorily? Let people know Smile

One thing - you asked about how we tested against different AMQP spec
versions. To quote from http://www.rabbitmq.com/dotnet.html -

"The client library implements AMQP specifications version 0-8, 0-8bis
(0-8 as modified by QPid for their M2 release) and 0-9 (omitting
sections of the specification marked "work in progress", i.e. the
Message content-class). A single binary copy of the library contains
support for all three protocol variants, and code can select a variant
to use at runtime. The library has been tested against

* RabbitMQ 1.2.x (AMQP 0-Cool
* QPid M2 (AMQP 0-8bis, 0-9 (in the M2.1 branch))
* OpenAMQ 1.2c4 (AMQP 0-9)"

alexis





On Tue, May 13, 2008 at 8:16 PM, Geoffrey Anderson <mrcoder@yahoo.com> wrote:
>
> --- Ben Hood <0x6e6562@gmail.com> wrote:
>
>> Hi Geoffrey,
>>
>> Sorry to hear that you have run into difficulties.
>>
>> On 13 May 2008, at 17:53, Geoffrey Anderson wrote:
>>
>> > The rabbitmq server runs, it seems, but no connections are being
>> > accepted by it,
>> > from the java samples or dotnet sample programs or my own programs.
>>
>> Can you try with a simple TCP client, e.g.
>>
>> nc 0.0.0.0 5672
>>
>> ?
>>
>> What shows up in the server log when you do this?
>
>
> C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-net-2.0\bin>nc
> 'nc' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> C:\Documents and Settings\ga>telnet 0.0.0.0 5672
> Connecting To 0.0.0.0...Could not open connection to the host, on port 5672: Connect
> failed
>
> Thank you for the interesting suggestion. I imagine telnet is just as good as 'nc'
> for this purpose although I don't know what 'nc' is.
>
> Seems like no process is listening on port 5672 doesn't it?
>
> OTOH netstat suggests there really IS a process listening there, if I am reading it
> correctly:
>
> C:\Documents and Settings\ga>netstat -a
>
> Active Connections
>
> Proto Local Address Foreign Address State
> TCP alpeduez:epmap alpeduez:0 LISTENING
> TCP alpeduez:microsoft-ds alpeduez:0 LISTENING
> TCP alpeduez:1227 alpeduez:0 LISTENING
> TCP alpeduez:4369 alpeduez:0 LISTENING
> TCP alpeduez:5672 alpeduez:0 LISTENING
> TCP alpeduez:1229 localhost:4369 ESTABLISHED
> TCP alpeduez:4369 localhost:1229 ESTABLISHED
>
>
>>
>> > For three days I have been trying everything imaginable to me to get
>> > any client
>> > program to connect to the rabbitmq server. For example I disabled
>> > tcpv6 on my
>> > system and tried all manner of user permissions in the rabbitmq
>> > server for 'guest'
>> > and my custom account 'ga' which I gave all same permissions as
>> > 'guest'.
>> >
>>
>>
>> By default Rabbit ships with the user/pass combination guest/guest, so
>> without further ado that should work.
>>
>
> I agree. Unfortunately guest/guest really does not work at the moment if the sample
> programs are an indication. I shall remove the guest account's permissions for host
> security purposes later after this problem is resoloved. Default accounts that ship
> with server programs are typical attack targets for malware and script kiddies.
>
>> > The web site asks users to send a note to legitimateconcern@rabbitmq.com
>> > if it takes
>> > more than 2 minutes to connect. Si I have sent a detailed note.
>> > There has been no
>> > response to it.
>>
>> Don't want to split hairs but the address is legitimategrievance@rabbitmq.com
>> , so you probably sent a message to a non-existent mailbox.
>>
>
> What I didn't tell you until now -- your answer is actually reasonable given what
> you knew -- was that I pulled that email address from (human) memory as I was
> writing, really only meant as an approximation to get the idea across of what I had
> done. It's not the email address I really used, which was copied from the web page
> at rabbitmq.com into the clipboard memory and then pasted into the mail program
> verbatim. And lo, just a few minutes ago, another person has confirmed receipt of
> the original email message, so it's known to be the correct address which I had used
> the other day.
>
>> >
>> >
>> > The web site says Please join our mailing list or send questions to
>> > info@rabbitmq.com. We'd love to hear from you. I've subscribed and
>> > sent a detailed
>> > message to the mailing list. My email did not appear in the mailing
>> > list, and no
>> > responses came back.
>>
>> Here's one Smile
>
>
> Very much appreciated.
>
>
>> > C:\rabbitmq\rabbitmq-dotnet-1.2.8025.1832-
>> > net-2.0\bin>DeclareQueue.exe alpeduez
>> > testqueue
>> > None of the specified endpoints were reachable
>> > Endpoints attempted:
>> > endpoint=amqp-0-9://alpeduez:5672, attempts=1, outcome=AMQP server
>> > protocol
>> > negotiation failure: server version 0-8, t
>> > ransport parameters -1:-1
>> > Stack trace:
>> > at RabbitMQ.Client.ConnectionFactory.CreateConnection(Int32
>> > maxRedirects,
>> > AmqpTcpEndpoint[] endpoints)
>> > at
>> > RabbitMQ.Client.ConnectionFactory.CreateConnection(AmqpTcpEndpoint[]
>> > endpoints)
>> > at RabbitMQ.Client.ConnectionFactory.CreateConnection(String
>> > address)
>> > at RabbitMQ.Client.Examples.DeclareQueue.Main(String[] args)
>> >
>>
>> You need to specify the protocol version in your config file (refer to
>> the .NET client manual).
>> This client is defaulting to AMQP 0-9 whereas Rabbit currently speaks
>> 0-8.
>>
>
>
> Your idea is intriguing... I have a good expectation about it.
>
> You may well be correct. It's interesting though, that the .Net client would be
> defaulting to a version of the protocol which is more advanced than the RabbitMQ
> server. I wonder how the author developed the .Net client libs in advance of the
> server. He's a pretty advanced developer. Wink
>
> More specifically, in my own programs, I had been trying to use a construct like
> this:
>
> IProtocol protocol = Protocols.FromEnvironment();
> IConnection conn = factory.CreateConnection(protocol, hostName);
>
> To my surprise it didn't work. Now, I am looking at the .NET client user guide
> sections 2.2 and 2.3.
>
> It says there is (or expected to be) an environment variable where it gets its
> information:
>
> "If no argument is passed to FromEnvironment() or FromConfiguration(), the value of
> Protocols.DefaultAppSettingsKey is used. (At the time of writing, the default
> appSettings key is
> AMQP_PROTOCOL, the same as the name of the shell environment variable scanned.)"
>
>
> Well the reality is that my system is telling me there really isn't any such shell
> environment variable defined:
>
> C:\rabbitmq\librabbitmq-java-1.3.0>echo %AMQP_PROTOCOL%
> %AMQP_PROTOCOL%
>
> Maybe this missing envoronment variable is why Protocols.FromEnvironment() is not
> useful on my system.
>
> Tyring to follow along with your suggestion, I guess there are two ways to get the
> sample .NET programs working with the 0.8 protocol rather than 0.9 protocol.
>
> 1 - Change the environment variable AMQP_PROTOCOL. However, my system is reporting
> that I don't have this environment variable defined anywhere, so I don't know for
> sure what to do. Should I define one now? I guess I could try to create one and
> see what happens. I guess I will set AMQP_PROTOCOL to the value "AMQP_0_8".
>
> 2 - Change the .config file for every client application. Seeing as they don't have
> config files out of the box, I would need to create config files for each one I
> guess.
>
> 3 - If I am programming my own code, rather than working with the sample programs, I
> could also specify my client to use just the desired protocol in a line of code like
> this, per User Guide section 2.2:
>
> Given the following App.config snippet,
>
> <appSettings>
> <add key="my-protocol" value="AMQP_0_8"/>
> </appSettings>
>
> the following code will also bind p to the 0-8 IProtocol implementation:
>
> ConnectionFactory factory = new ConnectionFactory();
> //IProtocol protocol = Protocols.FromEnvironment();
> IProtocol p = Protocols.FromConfiguration("my-protocol");
> IConnection conn = factory.CreateConnection(p, hostName);
>
> Hopefully my own code will run if I write something like the above. And I can try
> to get the sample programs working later if I have time.
>
>
> I guess I would ask you to cut to the chase if that's OK. What did you or other
> people actually do specifically on your own systems to get the .NET sample programs
> working? Did you manually create the environment variable AMQP_PROTOCOL and set it
> to the value "AMQP_0_8"?
>
>
>> >
>> > 4. Go look again to see if Tracer saw any traffic:
>> >
>> > C:\rabbitmq\librabbitmq-java-1.3.0>runjava.bat
>> > com.rabbitmq.tools.Tracer
>> > Usage: Tracer [<listenport> [<connecthost> [<connectport>]]]
>> > Invoked as: Tracer 5673 localhost 5672
>> > com.rabbitmq.tools.Tracer.WITHHOLD_INBOUND_HEARTBEATS = false
>> > com.rabbitmq.tools.Tracer.WITHHOLD_OUTBOUND_HEARTBEATS = false
>> > com.rabbitmq.tools.Tracer.NO_ASSEMBLE_FRAMES = false
>> > com.rabbitmq.tools.Tracer.NO_DECODE_FRAMES = false
>> >
>> >
>> > It seems no traffic was detected during the dotnet sample program
>> > execution.
>> >
>>
>> Your client will need to connect to the listen port of the tracer,
>> i.e. 5673. By default AMQP clients connect to 5672.
>>
>> HTH,
>>
>> Ben
>>
>>
>
>
> OK that makes some sense. Tracer is a simple proxy server then.
>
> Thank you for the insightful responses.
>
> Geoffrey
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss@lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>



--
Alexis Richardson
+44 20 7617 7339 (UK)
+44 77 9865 2911 (cell)
+1 650 206 2517 (US)

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message Yahoo Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum