-
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
Consul on Windows 7 Cannot Create an Agent After Installation #2843
Comments
Issue is with Chocolatey, not Consul. I'll bring the issue up with the package managers. |
Any solution on this ? |
@dlarr Are you also using chocolatey to install consul? Have you tried just downloading it from here: https://www.consul.io/downloads.html. |
Hello, thanks for answering back here. Actually, yes I am using chocolatey and yes, I did try this direct download. But I reported my issue here : sous-chefs/consul#236 (although the place was not the good one) The consul.exe for windows never succeded to launch :( that's the reason why I went for chocolatey. I have a very quick window showing up and closing right away, but nothing more happens. |
@dlarr I believe whats happening for you is that you are launching consul.exe via the GUI. The window that opens temporarily is a shell output window that if it stayed around long enough would be showing you the consul command line usage. You will need to run with some arguments in another shell. First open either powershell or cmd.exe and then try running
|
Ok, I will try it when my client has budget for this matter (he doesn't want me to spend more time on the subject) I'll keep you posted. Thanks again for info ;) |
Matt Keeler, PS D:\WORKSPACE\consul-course> consul.exe agent -dev |
@gudiseva your excecute powershell as Adminsitrator? |
@gudiseva Given that error message I could see a few potential problems. First you should try what @Javo-rj suggested. If that works then the problem is that the firewall or security policy for your system is not allowing your user to bind to that port. The next potential problem is that the port is already in use. Verify that there are no other processes bound to the port somehow by running |
Maybe it will help someone in future: |
consul version
for both Client and ServerClient: Consul v0.7.5
Server: N/A
consul info
for both Client and ServerClient:
Server:
Operating system and Environment details
OS Version: (Windows 7) 6.1.7601 Service Pack 1 Build 7601
Description of the Issue (and unexpected/desired result)
The UI gives a 500 error when starting up. I tried to use
consul agent -dev
but this gives the error:==> Error starting agent: Failed to start Consul server: Failed to start lan serf: Failed to create memberlist: Failed to start TCP listener. Err: listen tcp 127.0.0.1:8301: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Adding a server myself gives this error:
==> Error starting agent: Failed to start Consul server: Failed to start lan serf: Failed to create memberlist: Failed to start TCP listener. Err: listen tcp 0.0.0.0:8301: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
Note that this error is usually caused by something occupying that port. I've confirmed that only the Consul instance is on 8301. In the Resource Monitor, there are TCP and UDT ports with IPv4 and IPv6 addresses for each. These ports are all open and not restricted at all by the firewall.
Reproduction steps
consul agent -dev
in the command prompt.Log Fragments or Link to gist
These two messages are logged repeatedly after Consul installation is completed and the client agent is up and running.
The text was updated successfully, but these errors were encountered: