WebAPI does not start - "tcp connect error: No connection could be made because the target machine actively refused it. (os error 10061)

The error message appears in the nymi_agent.log file when the Nymi Agent service starts. The Nymi Agent also stops running.

The nymi_agent.log file also contains the following messages:

 
                I -- Logging in to NES using Basic and encrypted credentials. NES Settings: #NymiCore.NesLogin<cacertfile: nil, credentials_location: "certs/", directory_service_id: "nes", nes_url: "https://hostname", verify: :verify_peer, ...></cacertfile:>
                I -- Decrypting credentials using RSA key: c:/Nymi/NymiAgent/certs/key.der
                I -- Logging in to NES using service account with username: username
                E -- Error logging in to NES: "Basic Authentication error: \"Perform basic auth with username and password.: Generate request for basic auth query.: error sending request for url (https://hostname/nes/api/BasicLoginWithToken): 
                error trying to connect: tcp connect error: No connection could be made because the target machine actively refused it. (os error 10061)
                
            

Cause

The Nymi Agent cannot connect to IIS.

Resolution

To resolve this issue, perform the following steps:

  1. Log into the NES machine and start the IIS service.
  2. Start the Nymi Agent service on the centralized Nymi Agent server.
  3. Review the nymi_agent.log file to confirm that the WebAPI starts without error.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.