Okta Advanced Server Access Server Sync Job For AD-Joined Fails Despite Successful Test Results
Last Updated:
Overview
A malformed parameter in the Gateway YAML file causes the sft-gatewayd service to fail, which prevents Okta Advanced Server Access (ASA) from importing Active Directory (AD)-joined servers into a project. Correcting the syntax in the Gateway YAML file resolves the issue.
When setting up a Server Sync Job to import AD-joined servers into ASA, Okta fails to import the servers to the specified project. The user interface omits errors or indications about the failed run of the Server Sync Job. The Server Sync Job test run indicates successful discovery of servers, which confirms valid AD connectivity and service account credentials.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Advanced Server Access (ASA)
- Active Directory (AD)-joined feature
Cause
Malformed quotes within the ListenAddress parameter of the Gateway YAML file cause broken communication with the ScaleFT platform. This places the sft-gatewayd service in an unhealthy status and causes it to continuously fail. Even though the Lightweight Directory Access Protocol (LDAP) query from the Gateway to the domain controller (DC) succeeds, the Gateway remains in an unhealthy state and fails to process and sync the results. The following errors appear in the logs:
"MESSAGE" : "2024-07-23T13:48:12.717-0500\u0009ERROR\u0009couldn't create listening socket for gateway agent\u0009{\"listenAddr\": \"“0.0.0.0”:7234\", \"error\": \"listen tcp: lookup “0.0.0.0”: no such host\"}"
"MESSAGE" : "2024-07-23T13:48:12.717-0500\u0009WARN\u0009Gateway sync failed, retrying\u0009{\"error\": \"GatewaySync failed making HTTP request: Post \\\"https://app.scaleft.com/v1/gateway_sync\\\": context canceled\", \"GatewaySyncType\": \"GatewaySyncRegular\"}"
"MESSAGE" : "2024-07-23T13:48:12.717-0500\u0009ERROR\u0009Initial sync failed\u0009{\"error\": \"GatewaySync failed making HTTP request: Post \\\"https://app.scaleft.com/v1/gateway_sync\\\": context canceled\"}"
"MESSAGE" : "2024-07-23T13:48:12.717-0500\u0009DEBUG\u0009transitioning to state 0"
"MESSAGE" : "2024-07-23T13:48:12.717-0500\u0009ERROR\u0009Service entering failed state, shutting down"
"MESSAGE" : "2024-07-23T13:48:12.717-0500\u0009ERROR\u0009sft-gatewayd service failed, automatically retrying\u0009{\"version\": \"1.82.0\", \"retry_in\": \"9m17.018624138s\"}"Solution
How is the Server Sync Job failure resolved?
Correct the syntax of the ListenAddress parameter in the Gateway YAML file and restart the service by following these steps.
- Open the Gateway YAML file.
- Locate the
ListenAddressparameter and correct any malformed quotes or syntax errors. - Save the file and restart the
sft-gatewaydservice.
Collect a support bundle from the Gateway server.
Collect a support bundle from the Gateway server and open a Support case by following these steps.
- Follow the instructions in the Okta Advanced Server Access Support Documentation to collect a support bundle from the Gateway server.
- Open a Support case and provide the collected bundle.
