docker-socket-proxy icon indicating copy to clipboard operation
docker-socket-proxy copied to clipboard

Seeing a warning when starting the container

Open ovizii opened this issue 2 years ago • 10 comments

docker-socket-proxy  | [WARNING] 017/082756 (1) : Can't open global server state file '/var/lib/haproxy/server-state': No such file or directory     
docker-socket-proxy  | Proxy dockerbackend started.                                                                                                  
docker-socket-proxy  | Proxy dockerfrontend started.                                                                                                 
docker-socket-proxy  | [NOTICE] 017/082756 (1) : New worker #1 (8) forked

everything works I just wanted toreport this.

ovizii avatar Jan 18 '23 08:01 ovizii

I see a similar warning but it also seems to work just fine.

socket-proxy-telegraf  | [WARNING] 073/185645 (1) : Can't open server state file '/var/lib/haproxy/server-state': No such file or directory
socket-proxy-telegraf  | [NOTICE] 073/185645 (1) : New worker #1 (7) forked

NicolasGoeddel avatar Mar 15 '23 18:03 NicolasGoeddel

I also see the same warning line : [WARNING] 137/002946 (1) : Can't open global server state file '/var/lib/haproxy/server-state': No such file or directory Proxy dockerbackend started. Proxy dockerfrontend started. [NOTICE] 137/002946 (1) : New worker #1 (8) forked

kevinberthiaume avatar May 18 '23 00:05 kevinberthiaume

Same here on a Synology DS220+

poudenes avatar Jun 04 '23 15:06 poudenes

Still an issue on the latest edge release as well:

[WARNING] 267/211702 (1) : config : missing timeouts for backend 'docker-events'.
   | While not properly invalid, you will certainly encounter various problems
   | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
[WARNING] 267/211702 (1) : Can't open global server state file '/var/lib/haproxy/server-state': No such file or directory
[NOTICE] 267/211702 (1) : New worker #1 (8) forked

sammcj avatar Sep 25 '23 21:09 sammcj

Still an issue on the latest edge release as well:

[WARNING] 267/211702 (1) : config : missing timeouts for backend 'docker-events'.
   | While not properly invalid, you will certainly encounter various problems
   | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
[WARNING] 267/211702 (1) : Can't open global server state file '/var/lib/haproxy/server-state': No such file or directory
[NOTICE] 267/211702 (1) : New worker #1 (8) forked

I can confirm.

ovizii avatar Oct 04 '23 15:10 ovizii

Ah, came to log this as well, is this something we're configuring wrong or a bug?

Stopping backend dockerbackend in 0 ms.
[WARNING] 280/032546 (8) : Proxy dockerbackend stopped (cumulated conns: FE: 0, BE: 26).
Stopping backend docker-events in 0 ms.
[WARNING] 280/032546 (8) : Proxy docker-events stopped (cumulated conns: FE: 0, BE: 1).
Stopping frontend dockerfrontend in 0 ms.
[WARNING] 280/032546 (8) : Proxy dockerfrontend stopped (cumulated conns: FE: 1, BE: 0).
Proxy dockerbackend stopped (cumulated conns: FE: 0, BE: 26).
Proxy docker-events stopped (cumulated conns: FE: 0, BE: 1).
Proxy dockerfrontend stopped (cumulated conns: FE: 1, BE: 0).
[WARNING] 280/032546 (8) : Proxy GLOBAL stopped (cumulated conns: FE: 0, BE: 0).
[WARNING] 280/032557 (1) : config : missing timeouts for backend 'docker-events'.
   | While not properly invalid, you will certainly encounter various problems
   | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
[NOTICE] 280/032557 (1) : New worker #1 (8) forked

sammcj avatar Oct 08 '23 21:10 sammcj

Same issue here

mrvalterhugo avatar Nov 24 '23 12:11 mrvalterhugo

I got around that issue by under volumes: /var/lib/haproxy/server-state:/var/lib/haproxy/server-state

and just prepare a 0 byte file sudo mkdir -p /var/lib/haproxy && sudo touch /var/lib/haproxy/server-state

vvstubbs avatar Apr 07 '24 22:04 vvstubbs

What did anyone do about: |To fix this, please ensure that all following | timeouts are set to a non-zero value: 'client', 'connect', 'server'. entries in environment: I presume

vvstubbs avatar Apr 07 '24 22:04 vvstubbs