EOF/RPC error when use https in external service

Description:

Hi guys,

I’m using PMM version 2.42.0 and when adding an external service using https on port 8443 an RPC error occurs:

pmm-managed.log:time="2024-10-09T15:34:32.415+00:00" level=info msg="CheckConnection response: error:\"Get \\\"http://aws-ec2-ra-sidecar.servers:8443/v1/metrics/counters\\\": EOF\"." request=fb0c6c5f-8653-11ef-98fb-0242ac110002
pmm-managed.log:time="2024-10-09T15:34:32.415+00:00" level=warning msg="RPC /management.External/AddExternal done in 8.026244ms with gRPC error: rpc error: code = FailedPrecondition desc = Connection check failed: Get \"http://aws-ec2-ra-sidecar.servers:8443/v1/metrics/counters\": EOF." request=fb0c6c5f-8653-11ef-98fb-0242ac110002

The log shows metrics_scheme=http instead of metrics_scheme=https

Is it possible to add an external service that is an https url?

Thanks in advance!

Steps to Reproduce:

PMM >> Add Service >> External Service: (Schema: HTTPS)

Version:

2.42.0

Logs:

pmm-managed.log:time="2024-10-09T15:34:32.415+00:00" level=info msg="CheckConnection response: error:\"Get \\\"http://aws-ec2-ra-sidecar.servers:8443/v1/metrics/counters\\\": EOF\"." request=fb0c6c5f-8653-11ef-98fb-0242ac110002
pmm-managed.log:time="2024-10-09T15:34:32.415+00:00" level=warning msg="RPC /management.External/AddExternal done in 8.026244ms with gRPC error: rpc error: code = FailedPrecondition desc = Connection check failed: Get \"http://aws-ec2-ra-sidecar.servers:8443/v1/metrics/counters\": EOF." request=fb0c6c5f-8653-11ef-98fb-0242ac110002

Hi Edi,

Could you make sure that it was select HTTPS Schema?
Screenshot 2024-10-10 at 12.20.01

Hi Vadim

First of all, thank you very much for your interaction.

Yes, I am sure I am using HTTPS, but the log output shows that I am not using it.

It’s as if something internal is always redirecting https to http.

Tks

In such could you create a ticket in “Percona Monitoring and Management” project?
https://jira.percona.com/

Hi Vadim!

I accessed the URL https://jira.percona.com/ and when I tried to create a ticket, the following message appeared: “You are not logged in, and do not have the necessary permissions to create an item in this project as a guest.”

Do I need to create a registration to create the ticket?

Best regards,

Hi Edi,

Yes, please.