qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Lee <robinlee.s...@gmail.com>
Subject Re: How to run the hello world example? Or we may need a minimal and throughout Getting Started steps.
Date Mon, 31 Dec 2012 12:31:51 GMT
It seems the issue only reproducible when the computer has two configured
network interfaces.

And when the computer has only one configured network interface, every
thing looks great, even goes through local loopback.

But, when the computer has no configured network interface, i.e. has only
local loopback, every thing will not run since at SocketAddress.cpp[1] line
133,  AI_ADDRCONFIG flag is set. Is is necessary that Qpid is prohibited
from running on computer has only local loopback?

[1]
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/posix/SocketAddress.cpp?view=markup

robin

On Mon, Dec 31, 2012 at 6:14 PM, Pavel Moravec <pmoravec@redhat.com> wrote:

> Hi Robin,
> what Cyrus SASL libraries do you have installed? I.e. what is output of
>
> rpm -qa | grep sasl
>
 $ rpm -qa \*sasl\*
cyrus-sasl-2.1.23-36.fc18.x86_64
cyrus-sasl-devel-2.1.23-36.fc18.x86_64
cyrus-sasl-plain-2.1.23-36.fc18.x86_64
cyrus-sasl-lib-2.1.23-36.fc18.x86_64
cyrus-sasl-lib-2.1.23-36.fc18.i686

>
> command?
>
> Per the qpidd traces:
>
> 2012-12-28 09:24:03 [Protocol] trace SENT [127.0.0.1:5672-127.0.0.1:54004]:
> Frame[BEbe; channel=0; {ConnectionStartBody:
> server-properties={qpid.federation_tag:V2:36:str16(f4df1e6b-6d61-4522-94de-ade72447fa86)};
> mechanisms=str16{V2:9:str16(ANONYMOUS), V2:5:str16(PLAIN)};
> locales=str16{V2:5:str16(en_US)}; }]
> 2012-12-28 09:24:03 [Protocol] trace RECV [127.0.0.1:5672-127.0.0.1:54004]:
> Frame[BEbe; channel=0; {ConnectionCloseBody: reply-code=501;
> reply-text=internal-error: Sasl error: SASL(0): successful result:
>  (qpid/SaslFactory.cpp:223); }]
>
> the broker properly sent to the client connection.start AMQP method
> requiring to authenticate using either ANONYMOUS or PLAIN mechanism (that
> is implied by auth=no), but the client closed the connection due to some
> internal error..
>
> Also how did you compile your C++ example?
>
g++ ${CXXFLAGS} `pkg-config --libs --cflags qpid` simple_qpid_client.cpp -o
simple_qpid_client

>
> Kind regards,
> Pavel
>
>
> ----- Original Message -----
> > From: "Robin Lee" <robinlee.sysu@gmail.com>
> > To: users@qpid.apache.org
> > Sent: Friday, December 28, 2012 2:49:04 AM
> > Subject: Re: How to run the hello world example? Or we may need a
> minimal and throughout Getting Started steps.
> >
> > I just ran the Python version of Hello-world[1], and it just worked
> > with
> > broker started as "qpidd --auth=no".
> >
> > Any trick or bug in C++ client?
> >
> >
> > [1]
> >
> http://qpid.apache.org/books/0.18/Programming-In-Apache-Qpid/html/ch02s02.html
> >
> > robin
> >
> >
> > On Fri, Dec 28, 2012 at 9:30 AM, Robin Lee <robinlee.sysu@gmail.com>
> > wrote:
> >
> > > Still not work with --no-data-dir option.
> > >
> > > qpidd -t ouput:
> > > http://paste.stg.fedoraproject.org/2790
> > >
> > >
> > > robin
> > >
> > >
> > > On Fri, Dec 28, 2012 at 1:24 AM, Chuck Rolke <crolke@redhat.com>
> > > wrote:
> > >
> > >> Hello Robin Lee,
> > >>
> > >> You may have some persistent configuration working against you.
> > >> Try the
> > >> command
> > >>
> > >> qpidd --auth no --no-data-dir
> > >>
> > >> to disable persistent configuration.
> > >>
> > >> If that fails please post the results of broker trace by using
> > >> switch
> > >> '-t' on the command line.
> > >>
> > >> -Chuck
> > >>
> > >> ----- Original Message -----
> > >> > From: "Robin Lee" <robinlee.sysu@gmail.com>
> > >> > To: users@qpid.apache.org
> > >> > Sent: Tuesday, December 25, 2012 5:08:28 AM
> > >> > Subject: Fwd: How to run the hello world example? Or we may need
> > >> > a
> > >> minimal and throughout Getting Started steps.
> > >> >
> > >> > Hi, all!
> > >> >
> > >> > I am getting started Qpid today and failed to run the hello
> > >> > world
> > >> > example.
> > >> >
> > >> > I install qpid-cpp-server on Feodra 18 through Yum. Current
> > >> > version
> > >> > is
> > >> > qpid-cpp-server-0.18-6.fc18.x86_64.
> > >> >
> > >> > Then I run server with the command "qpidd".
> > >> >
> > >> > Then I compiled and ran the hello world example[1]. But it
> > >> > showed:
> > >> > 2012-12-25 17:18:55 [Client] warning Connection
> > >> > [127.0.0.1:40303-localhost:5672]
> > >> > closed
> > >> > Failed to connect (reconnect disabled)
> > >> >
> > >> > Then if I ran the server with "qpidd --auth=no" and ran the
> > >> > example
> > >> > again.
> > >> > The client showed:
> > >> > 2012-12-25 17:20:27 [Client] warning Closing connection due to
> > >> > internal-error: Sasl error: SASL(0): successful result:
> > >> > (qpid/SaslFactory.cpp:223)
> > >> > internal-error: Sasl error: SASL(0): successful result:
> > >> > (qpid/SaslFactory.cpp:223)
> > >> >
> > >> > So I think the Getting Started page is not so comprehensive.
> > >> >
> > >> > We, or I, may need a Getting Started instruction with minimal
> > >> > steps
> > >> > that
> > >> > make things just work, but meanwhile cover the setup of both
> > >> > server
> > >> > and
> > >> > client.
> > >> >
> > >> >
> > >> > After all, I am too new for Qpid. Sorry for my brute request.
> > >> >
> > >> >
> > >> > Cheers,
> > >> > robin
> > >> >
> > >> > [1]
> > >> >
> > >>
> http://qpid.apache.org/books/0.18/Programming-In-Apache-Qpid/html/ch02.html#id2531116
> > >> >
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > >> For additional commands, e-mail: users-help@qpid.apache.org
> > >>
> > >>
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message