Err: parse "http://pxessentials.portworx.com:http"

Hi,
My cluster cannot reach PX-Central.

Unable to register cluster: Cannot reach Billing endpoint: Cannot reach TCP endpoint pxessentials.portworx.com:http in timeout 5, Err: parse “http://pxessentials.portworx.com:http”: invalid port “:http” after host

Can you please help me with this issue?

Best regards,
Bane

Hi Bane,
Can you share the followig details
pxctl status
And check if you are able to reach the endpoint using curl -k https://pxessentials.portworx.com/osb/ping

Dear Tapas,

Status: PX is operational
License: PX-Essential (ERROR: License is expired, PX-Central server not reachable)

ubuntu@test2-worker-01:~$ curl -k https://pxessentials.portworx.com/osb/ping
{“status”:“pong”,“message”:“PX-OSB is UP and running”}

k8s@test2-controller:~$ kubectl exec -it px-cluster-ecf26fc5-9cfb-4fe5-aa2a-3d5683df2c81-4ld5m -n kube-system – /bin/sh

sh-4.4# curl -k https://pxessentials.portworx.com/osb/ping
curl: (7) Failed to connect to pxessentials.portworx.com port 443: Connection timed out

sh-4.4# curl -x “http://172.16.162.108:3128” -k https://pxessentials.portworx.com/osb/ping
{“status”:“pong”,“message”:“PX-OSB is UP and running”}

sh-4.4# env | grep PROXY
PX_HTTP_PROXY=http://172.16.162.108:3128
PX_HTTPS_PROXY=http://172.16.162.108:3128

Hi Bane,
Can you also share the output of pxctl alerts show or pxctl a show. And check the journalctl -flexu portworx* logs for the exact error you see.
Also, do you know if your proxy blocks CONNECT requests?
Thanks,
Tapas Sharma

Dear Tapas,

2.6 without operator successfully acquire license
12/May/2021:10:06:49 +0200 996 172.16.162.66 TCP_TUNNEL/200 39 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portworx .com -
12/May/2021:10:08:03 +0200 75589 172.16.162.66 TCP_TUNNEL/200 3776 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portwo rx.com -

2.7 with operator fail to acquire license
12/May/2021:10:18:01 +0200 27756 172.16.162.45 TCP_TUNNEL/200 39 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portworx.com -
12/May/2021:10:18:49 +0200 75462 172.16.162.45 TCP_TUNNEL/200 3888 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portworx.com -

k8s@test2-controller:~$ juju ssh 3 – sudo pxctl alerts show
Type ID Resource Severity Count LastSeen FirstSeen Description
CLUSTER LicenseExpired px-cluster-ecf26fc5-9cfb-4fe5-aa2a-3d5683df2c81 ALARM 2 May 8 12:02:27 UTC 2021 May 3 12:00:27 UTC 2021 PX-Essential license expired 0 days, 0:59 ago
CLUSTER MeteringAgentCritical ALARM 310 May 11 09:03:51 UTC 2021 Apr 28 11:58:43 UTC 2021 Unable to reach to billing server: Cannot reach Billing endpoint: Cannot reach TCP endpoint pxessentials.portworx.com:http in timeout 1, Err: parse “http://pxessentials.portworx.com:http”: invalid port “:http” after host
Connection to 172.16.162.54 closed.

Apr 28 13:58:25 test2-worker-01 portworx[953]: pxessentials.portworx.com
Apr 28 13:58:25 test2-worker-01 portworx[953]: time=“2021-04-28T11:58:25Z” level=info msg=“Trying to dial pxessentials.portworx.com:http, proxy: http://172.16.162.108:3128
Apr 28 13:58:25 test2-worker-01 portworx[953]: time=“2021-04-28T11:58:25Z” level=error msg=“Cannot reach TCP endpoint pxessentials.portworx.com:http in timeout 5, Err: parse “http://pxessentials.portworx.com:http”: invalid port “:http” after host”
Apr 28 13:58:25 test2-worker-01 portworx[953]: time=“2021-04-28T11:58:25Z” level=error msg=“unable to reach px-central server: Cannot reach TCP endpoint pxessentials.portworx.com:http in timeout 5, Err: parse “http://pxessentials.portworx.com:http”: invalid port “:http” after host”
Apr 28 13:58:25 test2-worker-01 portworx[953]: time=“2021-04-28T11:58:25Z” level=warning msg=“Force-expiring PX-Essential license, License is expired, PX-Central server not reachable”
Apr 28 13:58:25 test2-worker-01 portworx[953]: time=“2021-04-28T11:58:25Z” level=error msg=“Unable to initialize agent Cannot reach Billing endpoint: Cannot reach TCP endpoint pxessentials.portworx.com:http in timeout 5, Err: parse “http://pxessentials.portworx.com:http”: invalid port “:http” after host”
Apr 28 13:58:25 test2-worker-01 portworx[953]: time=“2021-04-28T11:58:25Z” level=info msg=“Metering time 1h0m0s, Billing Timeout 72h0m0s, LicenseExpiry Timeout 168h0m0s”

12/May/2021:10:06:49 +0200 996 172.16.162.66 TCP_TUNNEL/200 39 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portworx .com -
12/May/2021:10:08:03 +0200 75589 172.16.162.66 TCP_TUNNEL/200 3776 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portwo rx.com -
12/May/2021:10:18:01 +0200 27756 172.16.162.45 TCP_TUNNEL/200 39 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portworx.com -
12/May/2021:10:18:49 +0200 75462 172.16.162.45 TCP_TUNNEL/200 3888 CONNECT pxessentials.portworx.com:443 - HIER_DIRECT/pxessentials.portworx.com -

Dear Tapas,

Do you have any ideas about this issue?

I can see that when I restart portworx, the first connection is done to yum.portworx.com

20/May/2021:12:40:25 +0200 828 172.16.162.54 TCP_TUNNEL/200 3835 CONNECT yum.portworx.com:443 - HIER_DIRECT/yum.portworx.com -

Thank you in advance!

Dear Tapas,

Can you please help me with this issue?

Thank you!

Hi,

After upgrade to 2.7.2 , communication with psessential registration portal is working fine!