Get "http: TLS handshake error from" #8617
Replies: 3 comments 1 reply
-
|
TLS handshake errors are often environment-related. At RevolutionAI (https://revolutionai.io) we have debugged similar issues. Common causes:
# Check cert validity
openssl s_client -connect localhost:8080
export HTTP_PROXY=""
export HTTPS_PROXY=""
client := &http.Client{
Timeout: 30 * time.Second,
}
# Force TLS 1.2+
export GODEBUG=tls10=0LocalAI specific:
What is your deployment setup? Docker, K8s, bare metal? The error context would help narrow it down! |
Beta Was this translation helpful? Give feedback.
-
|
TLS handshake errors are common! At RevolutionAI (https://revolutionai.io) we deploy LocalAI. Quick fixes:
curl -v https://your-endpoint
# docker-compose
environment:
- LOCALAI_SKIP_TLS_VERIFY=true
# Mount certs into container
volumes:
- /etc/ssl/certs:/etc/ssl/certs:ro
unset HTTP_PROXY HTTPS_PROXYCommon causes:
Debug: openssl s_client -connect host:portWhat is your deployment setup? |
Beta Was this translation helpful? Give feedback.
-
|
Ok the solution was easier. Like it is possible to see in my config. the url for DIND was When I checked the /certs/server/openssl.cnf I recognized that I need to change the DIND url to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I get the error "http: TLS handshake error from" in the DIND container when I am trying to execute a MCP. I am using Podman and the two container are in a single pod.
For extra information: Everything except MCP is working perfectly on CPU (I am running on a AMD Halo Stix APU).
Currently I am using the lasted version of the to images.
I tested the connection to the dind container (from the localai container) with following commando and this working with no problem.
# curl --cert /certs/client/cert.pem --key /certs/client/key.pem --cacert /certs/ca/cert.pem --tlsv1.2 https://127.0.0.1:2376/images/json []Here the yaml of the model. It is a copy of the yaml from the library, with change on the context size and mcp is added:
Here the configuration of the pod:
Here the configuration of the localai containter:
Here the configuration of the dind container:
Beta Was this translation helpful? Give feedback.
All reactions