-
Notifications
You must be signed in to change notification settings - Fork 619
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
Fabio config help with TCP #485
Comments
What do you have in your KV at |
Are you referring to the KV store in consul? attaching the consul KV |
Yes, but what is inside the |
I'm sorry would you be able to guide me where to find this? |
Navigate to |
Sorry, that was just an example ... you're actual path might be different depending on your datacenter name. Really I was just wanting to know if you had anything in your consul KV store under
|
Ohh, I think I may see the issue ... can you try leaving |
Currently I was trying to get it working on my dev box which is Windows operating system and I have both Consul and Fabio running on the same box but I'm using my machine IP instead of localhost (127.0.0.1) |
You should be able to start |
Literally... Window 1:
Window 2:
|
You are right we can start consul agent -dev but that will use localhost right, but I want to use my machine IP |
Am I missing any configuration here, any help is highly appreciated |
@satishviswanathan I think you need to start with a known clean state and then add as you progress. The errors you are seeing don't make sense with a clean configuration. |
I've now started clean
fabio-1.5.8-go1.10-windows_amd64.exe -proxy.addr :2302;proto=tcp fabio-1.5.8-go1.10-windows_amd64.exe -proxy.addr :2302;proto=tcp -registry.consul.tagprefix urlprefix-:2302 |
Ahh, okay so ... what do your service registrations look like? What is your |
Thank you for your support. This is the config I've used for service registration. |
You don’t need to set the registry.consul.urlprefix option. That is only necessary if the tags do not start with ‘urlprefix-‘
|
Other than that this looks fine. Probably a good idea to print out the bad line as well. I’ll make a change.
|
When I remove the option registry.consul.urlprefix I get the following error. syntax error: 'route add' invalid |
Yeah. I don’t know. I’ll update the error reporting. If you are comfortable building fabio from source you can do that as well.
https://github.com/fabiolb/fabio/blob/master/route/parse_new.go#L85
Then run ‘make’ or ‘go build’ to build fabio
|
Thank you. I added the log and identified that while registering the consul service I had a "space" in the name. eg: "Service Check 1" which was causing the issue. Now when i start fabio i can see the routes getting added. But when i access from my client application I'm getting the following error.
|
Try |
My consul service registration is having urlprefix
while running fabio do I need to get this same option too? |
Now when I access |
This is still starting the HTTP listener instead of the TCP.
This is most likely an issue with semicolon in the Try this:
and you should see
|
@satishviswanathan Thanks for being patient and persistent! |
I'm using the following command where I've mentioned the proto as tcp But still the log shows Not sure what I'm missing |
Got it, my mistake I was missing the quotes 10.203.xxx.xx:8500 -proxy.addr : '2302;proto=tcp' Now trying to get the client connected via fabio |
Now when my client application try to connect to fabio @ port 2302, I'm getting the following error. tcp: read tcp 10.xxx.x.xx:50690->10.xxx.x.xx:11111: wsarecv: An existing connection was forcibly closed by the remote host. One of my service is running @ 10.xxx.x.xx:11111 and it is also listed in fabio routing table. Please advice what can be done to resolve this issue. |
I'm new to Fabio and trying to set with following configuration but getting warning "syntax error: 'route add' invalid"
This is the command I've used in windows.
fabio-1.5.8-go1.10-windows_amd64.exe -registry.consul.addr 10.208.x.xx:8500 -proxy.addr :2302;proto=tcp
Fabi log Fabio-log.txt
The text was updated successfully, but these errors were encountered: