Error: servname not supported for ai_socktype

Vikash Jain vikashjin at gmail.com
Mon Sep 26 13:20:22 UTC 2011


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]
 -------------- cel... at FreebsdEsca.Workgroup v2.3.3
---- **** -----
--- * ***  * -- [Configuration]
-- * - **** ---   . broker:      amqp://rab...@127.0.0.1:5672/FreebsdEsca
- ** ----------   . loader:      djcelery.loaders.DjangoLoader
- ** ----------   . logfile:     [stderr]@INFO
- ** ----------   . concurrency: 1
- ** ----------   . events:      OFF
- *** --- * ---   . beat:        OFF
-- ******* ----
--- ***** ----- [Queues]
 --------------   . celery:      exchange:celery (direct)
binding:celery
[Tasks]
  . 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... at 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 at FreebsdEsca ~]$ cat /etc/services  | grep 5672
amqp             5672/tcp
amqp             5672/udp
amqp             5672/sctp
[vikashj at FreebsdEsca ~]$

- Vikash J


More information about the freebsd-questions mailing list