The following error might occur when logging on to SAS Studio when you specify a machine name alias for the workspace server definition in the metadata:
Connection Error to Workspace Server
Unable to connect to the current workspace server. Select a different workspace server.
The application could not log on to the server "machinename:port". No server is available
at that port on that machine.
In the error above, the machinename is the actual host name of the workspace server rather than the alias that is specified in the workspace server definition in the metadata.
The problem occurs after SAS Studio enables reconnect on the workspace server, disconnects, and then attempts to reconnect using connection information from a URI provided by the object spawner. By default, the object spawner passes the actual host name provided by the operating system in the URI instead of the alias.
To circumvent the issue, complete the following steps:
- Add the following string to the CMD_OPTIONS line in the ObjectSpawner.sh/.bat file and restart the object spawner:
-dnsname machinename-alias
In the string above, machinename-alias refers the machine name that you specified in the workspace server definition in the metadata.
- Reinstall the object spawner service on Windows by executing the following:
ObjectSpawner.bat -reinstall