Pbm agent kept failing

i am trying to start agent on secondary servers on mongodb and when i do agent check it says:

[agentCheckup] check storage connection: storage check failed with: get S3 object header: RequestError: send request failed

pbm version
Version: 2.1.0
Platform: linux/amd64
GitCommit: 342b5b9c996e8bd17a678ea0cecbf2eaaf9704ab
GitBranch: release-2.1.0
BuildTime: 2023-04-14_12:25_UTC
GoVersion: go1.19

mongodb version : 4.4

The agent on primary server working fine but secondary server kept failing…
pbm status reports below:

sf-preprod-cl1-rs0:

  • xyz_secondary.org [S]: pbm-agent FAILED status:

    ERROR with ERROR: lost agent, last heartbeat: 1684264984
    - xyz_primary_server pbm-agent v2.1.0 OK

  • xyz_secondary_server: pbm-agent v2.1.0 FAILED status:

    ERROR with storage: storage check failed with: get S3 object header: RequestError: send request failed
    caused by: Head “storage.org./bucket/.pbm.init”: dial tcp 192.168.39.20:9020: i/o timeout

Hi, the error means the secondary nodes are not able to access the configured S3 storage. You might want to double check the configuration, and also validate access to the S3 bucket from the secondary server using an external tool like aws CLI.

hello thanks for information. but have installed aws cli and configured properly. My next question is there any way we can include export proxy_setting in to pbm_agent.config file?