Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to specify loaclhost or IP on Mac for a nsqd, or messages cannot be consumed. #68

Open
denis-trofimov opened this issue Nov 26, 2019 · 1 comment

Comments

@denis-trofimov
Copy link

denis-trofimov commented Nov 26, 2019

first of all I really enjoy reading @matryer book and praise Mat`s effort on making it, big thanks!

Problem

Followed the book recipe I run nslookupd, nsqd, twittervotes,

nsq_tail --topic="votes" --lookupd-http-address=localhost:4161

resulted in this:

$ nsq_tail --topic=votes --lookupd-http-address=localhost:4161
2019/11/26 19:14:29 Adding consumer for topic: votes
2019/11/26 19:14:29 INF    1 [votes/tail818577#ephemeral] querying nsqlookupd http://localhost:4161/lookup?topic=votes
2019/11/26 19:14:29 ERR    1 [votes/tail818577#ephemeral] error querying nsqlookupd (http://localhost:4161/lookup?topic=votes) - got response 404 Not Found "{\"message\":\"TOPIC_NOT_FOUND\"}"

Due to issue nsqio/nsq#400 "nsqd tcp timeout on osx when bonjour is not active (localhost dev)"
and all bonjour sharing options on new Mac are off. (I have no idea about why all bonjour sharing options on my Mac are off, and I am new to OSX.)

Solution

I specified IP address for a nsqd:

nsqd --lookupd-tcp-address=127.0.0.1:4160

This was sufficient to make chapter 5 program twittervotes working.

P.S. Also I saw that #59 have another understanding of a problem and a way to solve it that I personally don't like to do since I am worried about security of allowing filesharing for my work`s Mac.

@denis-trofimov denis-trofimov changed the title Need to specify loaclhost or IP on Mac for a nsqd start command, or messages cannot be consumed.. Need to specify loaclhost or IP on Mac for a nsqd, or messages cannot be consumed. Nov 27, 2019
@liq19ch
Copy link

liq19ch commented Jul 31, 2022

just want to tell you thanks! you really give a big help!! thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants