-
Notifications
You must be signed in to change notification settings - Fork 78
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
Failed to connect to the server: tls: first record does not look like a TLS handshake #310
Comments
my otelcol-contrib config:
|
With this change open-telemetry/opentelemetry-collector-contrib#35363, the |
Hi, could you let me know where I can view my server configuration? I couldn’t find it. I just built and ran the server binary on the server without making any configuration changes. |
Do you have your own server implementation, or do you use the example https://github.com/open-telemetry/opamp-go/tree/main/internal/examples/server as your OpAMP server? |
I built the example server's code locally and run the server binary on my centOS server,the only personal change is that i changed the ui's port in /opamp-go/internal/examples/server/uisrv/ui.go, from 4321 to 9321 |
That explains it. If it's a production, please fix the tls config to use proper certs and update the endpoint to use the |
It works, thanks a lot! |
Hi @srikanthccv I have added the same insecure_skip_verify: true In my config file but still i am getting the error. 2024/11/12 10:05:23 Failed to connect to the server: tls: first record does not look like a TLS handshake My Supervisor file is server: agent: |
Are you using the same example server from here https://github.com/open-telemetry/opamp-go/tree/main/internal/examples/server? |
Yes i am using the same example server |
@srikanthccv is their anything i am missing here, my opamp server is running on ec2 machine with the same above example server |
@priyeshsingh550, you are probably trying to connect to the server using the EC2 instance's public IP/hostname, but the example server's self-signed certificate is only valid for 127.0.0.1 and localhost. This could be solved by regenerating the certs EC2 IP/hostname to the alt_names sections. Please remember that it is an example server and is not meant to be used for anything beyond simple testing. |
What happened:
My supervisor could not connect to the server
env: CentOS 8
opentelemetry-collector-contrib version: v0.112.0
opamp version: build from commit #307
my supervisor config
supervisor log:
The text was updated successfully, but these errors were encountered: