Question

Error from performRequest

  • 23 March 2022
  • 4 replies
  • 134 views

Badge

I’m testing the installation of an agent on a linux system (redhat 7), the system is behind a proxy...so proxy variables are in place per documentation.

 

After I start the service, I see its connected to our proxy but it fails to perform the request (see below). Any idea why?

 

[root@xxxxxxx amagent]# ./amagent -c

2022/03/22 14:31:58 HTTP Client Starting

2022/03/22 14:31:59 NeedsInstall.

2022/03/22 14:31:59 No certificate found, generating new keypair and CSR

2022/03/22 14:31:59 NeedsInstall.

2022/03/22 14:31:59 No certificate found, generating new keypair and CSR

2022/03/22 14:31:59 ERROR: client.DoInstall(): Not installing on diag thread.

2022/03/22 14:31:59 Posting /install: {"access_key":"xxxxxxxxxxxxxxx","csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICdzCCAV8CAQAwIzELMAkGA1UEBhMCVVMxFDASBgNVBAoTC1BhdGNoU2ltcGxl\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw9qMmL0NCGKz46DuHpZJ\niodbRUeUxVf2P4BwBwMSIBt9ZB1rHHtw+MFo7Sn+87X953RArfroqq/u5pS9Xtqa\nU2GmGss+NyL8kiyu2Lv0bmY7aVuYYYxCJFnBBdxrFh75yWvVHQrSHeM73T3qtf+F\nvcTHy2A0slsfFlnu+6vD2Coe/vFvZjXuhin9Z/NBWhEwHG/Cuctc1q0J3EmZpKBR\nUyXP/usoNNjW/QQfz7HDzwYNiciyXkFZ9Dhk0uerQP1D0KUCKo+sttb1eX4jWStV\nss6bTtMB7Mz/DEP5Ieh6P4wr3SHEiBzYq73teWvWcpjreLtGadjBNP7AQJft/qjJ\n5wIDAQABoA8wDQYJKoZIhvcNAQkOMQAwDQYJKoZIhvcNAQELBQADggEBAKb8c29m\nUSOONqT/CjjxHF1HIJnYh1ytADtxMlwSKboHMAy2UVq+z95s/m1r3TIk8y9XyY4y\nyE9MwHGmtz8kAImPJs7w1OyYyDuBfS4GH5LcoTw5VhK4YyS9X855nfLNNLpzcB0T\nsrxMV4LOBd5WxMnOhHGSwtR9p/TsnB069RyEih3o6slAaRq0pS6E6gCdUqkSAh+o\nf6SHvYKMKLPQcRA0Mv4lQEwwcEkyrZd2UurtnExmgUJRPvgEhBdRkt8GRBX4Jh2P\nXCDYyUW+CN02PuXfKigfaz7u1sesT9DbZxIvuFNHpC1ithf5eY0sBfI2EU55ES2C\nMs0fincBzhh/0Xo=\n-----END CERTIFICATE REQUEST-----\n","os_family":"Linux","group":"","fingerprint":{"bios-hash":"sxfMtK43RrAImwQV/FA+1SXlosw6wjgC9KUuXWcsb1c=","disk-info":"PVLDOqc8poG0DRx9KzP0RbKAokgHaPeF54WIyeYYmOY=","hostname-info":"xxxxxxx","ipaddress-info":"xxxxxxx","macaddr-info":"00:50:56:9b:17:d6","machine-id":"4c1e0ed2e56c4259a45f3fba1767a3a8","memory-hash":"YVoN95h+uQX71MHzTW1Q1f0bnEcb8QEVSD1z+mrCJlc=","processor-hash":"j8MjXWXkbV1tpWphqAykK/7tC7tc+agzIgk57T5GFZ8=","system-hash":"gPqv5GgpMrxrMNSe+qNdKdseRg7wp7lkBbIZqcKoLJU="},"hostname":"xxxxxxxx"}

2022/03/22 14:31:59 POST https://api.automox.com/install

2022/03/22 14:31:59 CheckProxyConnect method=ProxyFromEnvironment proxy=xxxxxxxxxxxxx:8080 err=<nil> timeout=5s request=https://api.automox.com/install

2022/03/22 14:31:59 Successfully connected to proxy=xxxxxxxxxxxx:8080

2022/03/22 14:32:01 Error from performRequest("install", body): Post "https://api.automox.com/install": proxyconnect tcp: EOF

2022/03/22 14:32:01 ERROR: client.DoInstall(): Post "https://api.automox.com/install": proxyconnect tcp: EOF


4 replies

Hi, @Raul_MLB - welcome to the Community! Sorry you’re getting that error. Right off-hand, it definitely looks like something’s not getting past that proxy. If you haven’t already, let’s get Support involved so they can take a look (they’ll have remote access/etc. unlike me). 

@Raul_MLB Did you ever figure this out? i’m having a similar issue. 

 

Badge

I recall having to edit the install script, where curl commands weren’t using the proxy to fetch file and such. I had to either add the “-x” (for proxy option) parameter for curl or edit curl conf file to use proxy globally. 

Do you recall the location of the script? 

Reply