nsqlookup error no such host

617 views
Skip to first unread message

miki haiat

unread,
Apr 12, 2017, 10:31:11 AM4/12/17
to nsq-users
Hi  ,
I'm trying to play around with NSQ but i have some issues to read messages via nsqlookup

I used the docker compose file in order to create all the components using-docker-compose

I can read messages by connecting directly to NSQD .

thanks for the help.



2017/04/12 15:41:23 INF    1 [write_test/ch] querying nsqlookupd http://0.0.0.0:32773/lookup?to
pic=write_test
2017/04/12 15:41:23 INF    1 [write_test/ch] (cea7880cdf1c:4150) connecting to nsqd
2017/04/12 15:41:23 ERR    1 [write_test/ch] (cea7880cdf1c:4150) error connecting to nsqd - dia
l tcp: lookup cea7880cdf1c on 127.0.1.1:53: no such host




kaka_nsqadmin_1    
/nsqadmin --lookupd-http-a ...   Up      4150/tcp, 4151/tcp, 4160/tcp, 4161/tcp, 4170/tcp, 0.0.0.0:32775->4171/tcp                
kaka_nsqd_1        
/nsqd --lookupd-tcp-addres ...   Up      0.0.0.0:32777->4150/tcp, 0.0.0.0:32776->4151/tcp, 4160/tcp, 4161/tcp, 4170/tcp, 4171/tcp
kaka_nsqlookupd_1  
/nsqlookupd                      Up      4150/tcp, 4151/tcp, 0.0.0.0:32774->4160/tcp, 0.0.0.0:32773->4161/tcp, 4170/tcp, 4171/tcp


Oliver Germann

unread,
Aug 26, 2017, 11:06:27 AM8/26/17
to nsq-users
+1

Pierce Lopez

unread,
Aug 26, 2017, 12:11:35 PM8/26/17
to Oliver Germann, nsq-users
"0.0.0.0" is not a valid ip address for nsqd or a consumer to reach nsqlookupd. It's only to be used as a "listen" address (in which case it means all interfaces). If it was used for lookup address or "broadcast" address (which nsqd and nsqlookupd use to tell other nodes where to reach them), that won't work, you'll have to specify something else, maybe 127.0.0.1, maybe a hostname ...

- Pierce
Reply all
Reply to author
Forward
0 new messages