F5F Stay Refreshed Software Operating Systems HAproxy isn't detecting the server, while curl functions on Windows but not on Linux.

HAproxy isn't detecting the server, while curl functions on Windows but not on Linux.

HAproxy isn't detecting the server, while curl functions on Windows but not on Linux.

Pages (2): 1 2 Next
C
captaincorey
Member
51
11-03-2016, 07:43 AM
#1
Hey everyone, I’m trying to figure this out because I’m feeling a bit stuck. I run a home lab where I experiment with various tools, and I use Gitea on a separate port through haproxy for load balancing. Everything seemed normal until now. I recently switched to using Let’s Encrypt via haproxy, but my Git server isn’t responding when I try to connect. I know the server works fine when I ping it directly, but when I use the proxy settings, it just hangs. I also noticed the health checks keep returning success codes, yet the Git port isn’t getting through. Could you help me understand what might be going wrong?
C
captaincorey
11-03-2016, 07:43 AM #1

Hey everyone, I’m trying to figure this out because I’m feeling a bit stuck. I run a home lab where I experiment with various tools, and I use Gitea on a separate port through haproxy for load balancing. Everything seemed normal until now. I recently switched to using Let’s Encrypt via haproxy, but my Git server isn’t responding when I try to connect. I know the server works fine when I ping it directly, but when I use the proxy settings, it just hangs. I also noticed the health checks keep returning success codes, yet the Git port isn’t getting through. Could you help me understand what might be going wrong?

S
subsky
Junior Member
44
11-06-2016, 10:23 PM
#2
The port is set to 443, not 80. It seems you might be linking to the incorrect port.
S
subsky
11-06-2016, 10:23 PM #2

The port is set to 443, not 80. It seems you might be linking to the incorrect port.

S
Sv3tnetS
Member
193
11-08-2016, 09:58 PM
#3
The issue is with the Git server running on port 3000.
S
Sv3tnetS
11-08-2016, 09:58 PM #3

The issue is with the Git server running on port 3000.

T
teunknip99
Junior Member
30
11-09-2016, 08:01 PM
#4
Windows to WebServer C:\Users\Thomas>curl -v 192.168.4.200:80 * Updated path to: 192.168.4.200:80/ * Attempting 192.168.4.200... * TCP_NODELAY enabled * Linked to 192.168.4.200 (192.168.4.200) port 80 (#0) > GET / HTTP/1.1 > Host: 192.168.4.200 > User-Agent: curl/7.55.1 > Accept: */* > < HTTP/1.1 200 OK < Timestamp: Thu, 30 Jan 2020 21:51:47 GMT < Server: Apache < Last-Modified: Mon, 11 Nov 2019 22:43:15 GMT < ETag: "2-59719db6ec6c0" < Accept-Ranges: bytes < Content-Length: 2 < Content-Type: text/html < Start-Refresh>Connection #0 to host 192.168.4.200 remains stable</Server> > GET / HTTP/1.1 > Host: 192.168.4.200 > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 200 OK < Date: Thu, 30 Jan 2020 21:51:49 GMT < Server: Apache < Last-Modified: Mon, 11 Nov 2019 22:43:15 GMT < ETag: "2-59719db6ec6c0" < Accept-Ranges: bytes < Content-Length: 2 < Content-Type: text/html><Content>Linux to WebServer root@D-LoadBalancer:/home/administrator</Content></Start-Refresh>
T
teunknip99
11-09-2016, 08:01 PM #4

Windows to WebServer C:\Users\Thomas>curl -v 192.168.4.200:80 * Updated path to: 192.168.4.200:80/ * Attempting 192.168.4.200... * TCP_NODELAY enabled * Linked to 192.168.4.200 (192.168.4.200) port 80 (#0) > GET / HTTP/1.1 > Host: 192.168.4.200 > User-Agent: curl/7.55.1 > Accept: */* > < HTTP/1.1 200 OK < Timestamp: Thu, 30 Jan 2020 21:51:47 GMT < Server: Apache < Last-Modified: Mon, 11 Nov 2019 22:43:15 GMT < ETag: "2-59719db6ec6c0" < Accept-Ranges: bytes < Content-Length: 2 < Content-Type: text/html < Start-Refresh>Connection #0 to host 192.168.4.200 remains stable</Server> > GET / HTTP/1.1 > Host: 192.168.4.200 > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 200 OK < Date: Thu, 30 Jan 2020 21:51:49 GMT < Server: Apache < Last-Modified: Mon, 11 Nov 2019 22:43:15 GMT < ETag: "2-59719db6ec6c0" < Accept-Ranges: bytes < Content-Length: 2 < Content-Type: text/html><Content>Linux to WebServer root@D-LoadBalancer:/home/administrator</Content></Start-Refresh>

W
waderlax
Junior Member
43
11-10-2016, 12:37 PM
#5
Run the curl command locally to test connectivity.
W
waderlax
11-10-2016, 12:37 PM #5

Run the curl command locally to test connectivity.

C
CAMOOO
Member
225
11-15-2016, 10:54 PM
#6
Administrator@server:~$ curl -v localhost:3000 * Updated address to: localhost:3000/ * Attempting ::1... * Connected to localhost (::1) port 3000 (#0) > GET / HTTP/1.1 > Host: localhost:3000 > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 302 Found < Content-Type: text/html; charset=utf-8 < Location: /explore < Set-Cookie: lang=en-US; Path=/; Max-Age=2147483647 < Set-Cookie: i_like_gitea=ec85572f80d33bbe; Path=/; HttpOnly < Set-Cookie: _csrf=Np3J33SmZkolOPfsidXXNRovLX46MTU4MDQyMTU0MjUwNzYyOTkwNw%3D%3D; Path=/; Expires=Fri, 31 Jan 2020 21:59:02 GMT; HttpOnly < X-Frame-Options: SAMEORIGIN < Date: Thu, 30 Jan 2020 21:59:02 GMT < Content-Length: 31 < <a href="/explore">Found</a>. * Connection #0 to host localhost remains unchanged
C
CAMOOO
11-15-2016, 10:54 PM #6

Administrator@server:~$ curl -v localhost:3000 * Updated address to: localhost:3000/ * Attempting ::1... * Connected to localhost (::1) port 3000 (#0) > GET / HTTP/1.1 > Host: localhost:3000 > User-Agent: curl/7.47.0 > Accept: */* > < HTTP/1.1 302 Found < Content-Type: text/html; charset=utf-8 < Location: /explore < Set-Cookie: lang=en-US; Path=/; Max-Age=2147483647 < Set-Cookie: i_like_gitea=ec85572f80d33bbe; Path=/; HttpOnly < Set-Cookie: _csrf=Np3J33SmZkolOPfsidXXNRovLX46MTU4MDQyMTU0MjUwNzYyOTkwNw%3D%3D; Path=/; Expires=Fri, 31 Jan 2020 21:59:02 GMT; HttpOnly < X-Frame-Options: SAMEORIGIN < Date: Thu, 30 Jan 2020 21:59:02 GMT < Content-Length: 31 < <a href="/explore">Found</a>. * Connection #0 to host localhost remains unchanged

L
LorrenK
Senior Member
703
11-16-2016, 03:29 AM
#7
It looks like the proxy settings might be off. Check the HTTP response for clues about the proxy software in use. Ensure the Apache server is configured to listen on all interfaces (0.0.0.0). Verify the firewall isn’t blocking traffic from specific IP addresses. Also confirm your Linux client is on the same network as the server.
L
LorrenK
11-16-2016, 03:29 AM #7

It looks like the proxy settings might be off. Check the HTTP response for clues about the proxy software in use. Ensure the Apache server is configured to listen on all interfaces (0.0.0.0). Verify the firewall isn’t blocking traffic from specific IP addresses. Also confirm your Linux client is on the same network as the server.

M
Mister_Geolin
Junior Member
6
12-04-2016, 04:02 AM
#8
Right now I’m not relying on a proxy. I’m trying to fix things by using curl with my Apache server and Gitea, both running on the same physical machine. There’s no firewall between the proxy I’m connecting from and the web/server where I’m accessing it. Both are on the same network, so I can reach them easily. The issue seems to be somewhere in the configuration. I notice curl works fine at port 80 but fails at 3000. If it were just a proxy, I’d treat it like a regular Linux server.
M
Mister_Geolin
12-04-2016, 04:02 AM #8

Right now I’m not relying on a proxy. I’m trying to fix things by using curl with my Apache server and Gitea, both running on the same physical machine. There’s no firewall between the proxy I’m connecting from and the web/server where I’m accessing it. Both are on the same network, so I can reach them easily. The issue seems to be somewhere in the configuration. I notice curl works fine at port 80 but fails at 3000. If it were just a proxy, I’d treat it like a regular Linux server.

Z
zMadeus
Posting Freak
755
12-17-2016, 01:12 AM
#9
It means apache server is not returning any response. It might be it is not listening on that port or that you block it. For first case, any other machine should get the same error including windows and when you are curling on the server machine itself. Print the terminal output using this command. sudo netstat -tulpn
Z
zMadeus
12-17-2016, 01:12 AM #9

It means apache server is not returning any response. It might be it is not listening on that port or that you block it. For first case, any other machine should get the same error including windows and when you are curling on the server machine itself. Print the terminal output using this command. sudo netstat -tulpn

F
Fire_Ferrete
Member
52
12-17-2016, 04:10 AM
#10
Apache functions properly, but Gitea isn't responding (uncertain backend used). It appears to fail only from your other Linux machine, while it works on Windows. The output shown suggests connections are being accepted on the web/git server, not from local machines. Active Internet links detected (servers only). Protocols: TCP, UDP. PIDs and addresses vary across services.
F
Fire_Ferrete
12-17-2016, 04:10 AM #10

Apache functions properly, but Gitea isn't responding (uncertain backend used). It appears to fail only from your other Linux machine, while it works on Windows. The output shown suggests connections are being accepted on the web/git server, not from local machines. Active Internet links detected (servers only). Protocols: TCP, UDP. PIDs and addresses vary across services.

Pages (2): 1 2 Next