Need a help for Post "https://api.crowdsec.net/v3/watchers": net/http: TLS handshake timeout
Hi, CrowdSec,
I got this problem after restart my crowdsec container last week.
And then, I try to re-contruct the container like a new installation with following steps:
1)
I run the crowdsec container following the crowdsec's docker compose file. The first time I start the container, the following problem occurs:
level=warning msg="can't load CAPI credentials from “/etc/crowdsec//online_api_credentials.yaml” (missing login field)’
Error: api client register (‘https://api.crowdsec.net/’): api register (https://api.crowdsec.net/): Post ‘https://api.crowdsec.net/v3/ watchers": net/http: TLS handshake timeout
2)
I tried to start the container for the second time and it worked.
I then went into the container and used the cscli capi register command to register, and encountered the TLS handshake timeout issue many times.
After successfully registering, I continue to use the cscli console enroll -e context ... --overwrite, which also encountered several timeouts before it succeeded, and then I restarted the container.
*** Before rebooting, I noticed one of the container's messages, not sure if it's related to solving the problem: time=’...’ level=info msg=‘127.0.0.1 - [Mon, 02 Jun 2025 ... CST] ’POST /v1/watchers/login HTTP/1.1 200 317.608723ms "crowdsec/v1.6.9-rc2-83d54e98- docker‘ ’’
3)
I then restarted the container for the third time and continued to do so indefinitely.
I get this error.
time=’...’ level=fatal msg="api server init: unable to run local API: authenticate watcher (...) : Post ‘https://api.crowdsec.net/v3/watchers/login\’: performing jwt auth: net/http: TLS handshake timeout’
Thank you very much if you have any suggestion.
I got this problem after restart my crowdsec container last week.
And then, I try to re-contruct the container like a new installation with following steps:
1)
I run the crowdsec container following the crowdsec's docker compose file. The first time I start the container, the following problem occurs:
level=warning msg="can't load CAPI credentials from “/etc/crowdsec//online_api_credentials.yaml” (missing login field)’
Error: api client register (‘https://api.crowdsec.net/’): api register (https://api.crowdsec.net/): Post ‘https://api.crowdsec.net/v3/ watchers": net/http: TLS handshake timeout
2)
I tried to start the container for the second time and it worked.
I then went into the container and used the cscli capi register command to register, and encountered the TLS handshake timeout issue many times.
After successfully registering, I continue to use the cscli console enroll -e context ... --overwrite, which also encountered several timeouts before it succeeded, and then I restarted the container.
*** Before rebooting, I noticed one of the container's messages, not sure if it's related to solving the problem: time=’...’ level=info msg=‘127.0.0.1 - [Mon, 02 Jun 2025 ... CST] ’POST /v1/watchers/login HTTP/1.1 200 317.608723ms "crowdsec/v1.6.9-rc2-83d54e98- docker‘ ’’
3)
I then restarted the container for the third time and continued to do so indefinitely.
I get this error.
time=’...’ level=fatal msg="api server init: unable to run local API: authenticate watcher (...) : Post ‘https://api.crowdsec.net/v3/watchers/login\’: performing jwt auth: net/http: TLS handshake timeout’
Thank you very much if you have any suggestion.