From owner-freebsd-questions@FreeBSD.ORG Mon Sep 26 14:14:15 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B15D106564A for ; Mon, 26 Sep 2011 14:14:15 +0000 (UTC) (envelope-from vikashjin@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1C25B8FC1A for ; Mon, 26 Sep 2011 14:14:14 +0000 (UTC) Received: by gwj18 with SMTP id 18so5654243gwj.13 for ; Mon, 26 Sep 2011 07:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Or+a6dNBJGdDIkSNkfPPG0Fvj21I9HUia5XV+iBuCe0=; b=X9tvyqcJaoL7bjXybUjkYvj0jSIIfmYstPI7A8lLHzwkjmxyBH1sH3nRkwQBjU5e6d TFGYXlCYyRlD+QkSkQhpc3lV5KtUD5gbU6018xpxkEt+KMC9HVInXTPQ6CnwrggU04lc Pj+opSrnxWXUMYORGmILFr/UPof+ahP2NUj64= MIME-Version: 1.0 Received: by 10.101.184.5 with SMTP id l5mr5903268anp.80.1317046454319; Mon, 26 Sep 2011 07:14:14 -0700 (PDT) Received: by 10.100.228.7 with HTTP; Mon, 26 Sep 2011 07:14:14 -0700 (PDT) In-Reply-To: <4E8086AC.9080107@ulb.ac.be> References: <4E807EDC.6080101@ulb.ac.be> <4E8086AC.9080107@ulb.ac.be> Date: Mon, 26 Sep 2011 19:44:14 +0530 Message-ID: From: Vikash Jain To: Julien Cigar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Error: servname not supported for ai_socktype X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 14:14:15 -0000 Hi Julien, Yes i had builded python with SEM option. -Vikash On Mon, Sep 26, 2011 at 7:35 PM, Julien Cigar wrote: > I don't know if POSIX-style semaphores have something to do with > ai_socktype, but don't forget to compile your Python version with it too > (SEM "Use POSIX semaphores (experimental)") > > (btw aio has nothing to do, I replied too fast, it's for async io) > > On 09/26/2011 15:56, Vikash Jain wrote: >> >> Hi Julien/All, >> >> It didn't helped. I had builded kernel with support for POSIX >> Semaphores. I added the following line while building: >> =A0 =A0 options P1003_1B_SEMAPHORES # POSIX-style semaphores >> >> - Vikash >> >> On Mon, Sep 26, 2011 at 7:02 PM, Julien Cigar =A0wrote= : >>> >>> try to $> =A0kldload aio >>> >>> On 09/26/2011 14:50, Vikash Jain wrote: >>>> >>>> Hi, >>>> >>>> While running celeryd on my freebsd system, i am getting >>>> error"servname not supported for ai_socktype". Can somebody help me >>>> out with this? >>>> >>>> python manage.py celeryd -l info >>>> >>>> [2011-09-26 00:49:42,540: WARNING/MainProcess] >>>> =A0-------------- cel...@FreebsdEsca.Workgroup v2.3.3 >>>> ---- **** ----- >>>> --- * *** =A0* -- [Configuration] >>>> -- * - **** --- =A0 . broker: >>>> =A0amqp://rab...@127.0.0.1:5672/FreebsdEsca >>>> - ** ---------- =A0 . loader: =A0 =A0 =A0djcelery.loaders.DjangoLoader >>>> - ** ---------- =A0 . logfile: =A0 =A0 [stderr]@INFO >>>> - ** ---------- =A0 . concurrency: 1 >>>> - ** ---------- =A0 . events: =A0 =A0 =A0OFF >>>> - *** --- * --- =A0 . beat: =A0 =A0 =A0 =A0OFF >>>> -- ******* ---- >>>> --- ***** ----- [Queues] >>>> =A0-------------- =A0 . celery: =A0 =A0 =A0exchange:celery (direct) >>>> binding:celery >>>> [Tasks] >>>> =A0 . celery_test.tasks.MyTask >>>> [2011-09-26 00:49:42,567: INFO/PoolWorker-1] child process calling >>>> self.run() >>>> [2011-09-26 00:49:42,577: WARNING/MainProcess] >>>> cel...@FreebsdEsca.Workgroup has started. >>>> [2011-09-26 00:49:42,582: ERROR/MainProcess] Consumer: Connection >>>> Error: [Errno 9] servname not supported for ai_socktype. Trying again >>>> in 2 seconds... >>>> >>>> OS: FreeBSD6.3 >>>> Python version: 2.7 >>>> >>>> I am able to connect to 127.0.0.1 5672 through telnet. >>>> >>>> My /etc/services i have configured these ports for the brooker >>>> (RabbitMQ). >>>> [vikashj@FreebsdEsca ~]$ cat /etc/services =A0| grep 5672 >>>> amqp =A0 =A0 =A0 =A0 =A0 =A0 5672/tcp >>>> amqp =A0 =A0 =A0 =A0 =A0 =A0 5672/udp >>>> amqp =A0 =A0 =A0 =A0 =A0 =A0 5672/sctp >>>> [vikashj@FreebsdEsca ~]$ >>>> >>>> - Vikash J >>>> _______________________________________________ >>>> freebsd-questions@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>> To unsubscribe, send any mail to >>>> "freebsd-questions-unsubscribe@freebsd.org" >>> >>> >>> -- >>> No trees were killed in the creation of this message. >>> However, many electrons were terribly inconvenienced. >>> >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > > > -- > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >