Problem Note 66305: A connection failure between SAS® Enterprise Guide® and SAS® Viya® workspace server can occur when a firewall exists
A connection attempt to a SAS Viya workspace server from SAS Enterprise Guide fails with the following error if a firewall exists between them:
Unable to connect to the server named "server_name".
The connection could not be established to a SAS Workspace Server named 'server_name' running on port 8591 on host 'machine_name'.
Server response: Connection timed out. A connection attempt failed because the SAS Server did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
As a workaround, disable SSL for the object-spawner connection by completing these steps:
- Stop the spawner:
sudo systemctl stop sas-viya-spawner-default
- Create a backup copy of the /opt/sas/viya/config/etc/spawner/default/spawner.sh file.
-
Remove the following line in the spawner.sh script:
if [[ ! -z "${sslPrivateKeyFile}" ]]; then
spawner_options="${spawner_options} -sslpvtkeyloc ${sslPrivateKeyFile} -sslcertloc ${sslCertificateFile} -sslpvtkeypassfile ${sslPrivateKeyPasswordFile} -sslcalistloc ${sslCAListFile}"
fi
-
Insert the following line where you removed the previous line:
if [[ ! -z "${sslPrivateKeyFile}" ]]; then
spawner_options="${spawner_options}"
fi
-
Start the spawner:
sudo systemctl start sas-viya-spawner-default
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
Post Hot-Fix Installation Steps:
-
Add the sasServicePorts variable to the spawner definition located in the /opt/sas/viya/config/etc/spawner/default/spawner.sh file. This variable contains a comma-separated list of port values. Only one port is needed, but multiple ports are supported. The port values are used as listen ports for the launched servers. The ports need to be opened via the firewall:
# Spawner Definition
#
dn: StudioSpawner
objectClass: sasSpawner
sasSpawnercn: mySASObjectSpawner
sasMachineDNSName: localhost
sasServicePorts: 8801
sasVerbose: True
description: SAS Object Spawner
- Restart the object spawner:
Red Hat Enterprise Linux 7.x (or an equivalent distribution) and SUSE Linux Enterprise Server 12.x:
sudo systemctl restart sas-viya-spawner-default
Red Hat Enterprise Linux 6.x (or an equivalent distribution):
sudo service sas-viya-spawner-default restart
Operating System and Release Information
SAS System | SAS Viya | Linux for x64 | 3.5 | 3.5 | Viya | Viya |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In this scenario, you see this message: "Unable to connect to the server named 'server_name'.
The connection could not be established to a SAS Workspace Server named 'server_name' running on port 8591 on host 'machine_name'. Server response: Connection timed out. A connection attempt failed..."
Type: | Problem Note |
Priority: | high |
Date Modified: | 2020-11-24 09:37:06 |
Date Created: | 2020-07-10 13:52:34 |