-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Service advertising behavior differs on Windows vs. Linux #177
Comments
The problem may be related to this: Linux~$ curl -X PUT http://localhost:8500/v1/agent/service/register -d '{"name": "test2","port": 9002,"check" Windows~$ curl -X PUT http://localhost:8500/v1/agent/service/register -d '{"name": "test2","port": 9002,"check" |
Are you running the latest version for both? The decoding error was fixed in 0.2 I believe. |
I thought I was running latest but it turns out that the Windows binary built for v0.2.1 contains the wrong version: |
Oh yikes! I will try to get a new binary uploaded today. I'll bug @mitchellh since he has a windows machine. |
I compiled consul from source and that version functions properly on Windows. |
@webcoyote The download for 0.2.1 should be fixed now! Thanks for reporting! |
The Windows and Linux versions of consul behave differently: the Windows version is >not< advertising a service in catalog/services though it is listed in agent/services, whereas it >is< advertising in both on Linux. This issue is 100% reproducible on my computers, not random behavior.
The key difference in the output is:
Linux: ~$ time curl localhost:8500/v1/catalog/services
{"consul":[],"test":["blah"]}
Windows: ~$ time curl localhost:8500/v1/catalog/services
{"consul":null}
Note also the long time it takes for Windows to respond to queries compared to Linux.
In command shell 1, run consul
In command shell 2, run tests
Linux test output
Windows test output
Linux consul output
Windows consul output
The text was updated successfully, but these errors were encountered: