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

Error while using consul on azure Virtual machine #2745

Closed
worksamp opened this issue Feb 15, 2017 · 4 comments
Closed

Error while using consul on azure Virtual machine #2745

worksamp opened this issue Feb 15, 2017 · 4 comments

Comments

@worksamp
Copy link

While running command "consul agent -dev" on any of the azure virtual machine with windows server 2012 r2 operating system I am getting following error:
Failed to start Consul server: Failed to start RPC layer: listen tcp 127.0.0.1:8300: bind: An attempt was made to access a socket in a way forbidden by its access permission.

Even after opening port 8300,8301,8302,8303,8304, I am getting the same error. I have tried many options but none is working . I have even opened port 127.0.0.1:8300 separately, still it's not working.

@slackpad
Copy link
Contributor

Hi @worksamp did you figure this out? It looks like possibly a permissions error for the user Consul is running as?

@slackpad
Copy link
Contributor

slackpad commented May 2, 2017

Closing this since we didn't hear back. Please let us know if you still need help.

@slackpad slackpad closed this as completed May 2, 2017
@BvdVen
Copy link

BvdVen commented Nov 2, 2018

I've the same problem with Consul v1.3.0, on my local machine it works fine but when I try to run consul on a Windows Virtual Machine (not on Azure) I get the same error.

I tried to run the cmd.exe and powershell as administrator, but it doesn't make any difference.

@jsprojects2
Copy link

Hi,

I am trying to run the consul service in windows 2012 server, I ran the following command from command prompt

sc create "Consul_Service" binPath="C:\Microservices Tool\consul\consul.exe agent -config-dir=C:\Microservices Tool\consul\consul_configA.json" start=auto

the consul.exe is installed in the window sercive.

after that i am running the following command

sc start consul_service

the consul service is unable to run, it is throwing an error

Windows could not start the Consul_Service service on Local Computer.

Error 1067: The process terminated unexpectedly.

Please kindly give us a suggestion to make it working. or do i missed something during installation or any other info.

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

4 participants