-
Notifications
You must be signed in to change notification settings - Fork 70
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
TCPServer Error: Cannot assign requested address - bind(2) for "::1" port #79
Comments
What's your
but it's less than desirable... |
Try setting an explicit |
@dursk I have tried your option, it works, but the mock service is not accessible from outside the container. netstat results after applying both options ATM the second option is not viable for me as I'm using a wrapper library is there is a way to achieve the same netstat results but without passing --host flag? I'm already working with the consumer library to have that option open in the API. Thanks very much and appreciate your time. |
Neil should be able to get the fix out pretty quickly. The only other option is to do a small hack to the ruby file. Somewhere inside the .net code will be the ruby-standalone package. You'll have to do some exploring because I don't know where that is. Open up Find the line with I believe the .net impl might actually be using the |
Hi,
I have followed the instructions mentioned here https://github.com/pact-foundation/pact-ruby-standalone/releases for the Linux x64 platform.
When I run the this command ./pact-mock-service start
I get the following message
INFO WEBrick 1.3.1
INFO ruby 2.2.2 (2015-04-13) [x86_64-linux]
WARN TCPServer Error: Cannot assign requested address - bind(2) for "::1" port 9222
INFO WEBrick::HTTPServer#start: pid=671 port=9222
I see this warning "TCPServer Error" only on the Linux Platform, I have tried Windows and OSX and both are working fine.
In the message it says it is a warning but in reality the server is not up or not accessible.
Steps to reproduce
docker run -it -p 9222:9222 microsoft/aspnetcore-build /bin/bash
curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.18.0/pact-1.18.0-linux-x86_64.tar.gz
tar xzf pact-1.18.0-linux-x86_64.tar.gz
cd pact/bin
./pact-mock-service start
Can you please shed some light on this issue.
Thanks
The text was updated successfully, but these errors were encountered: