CAS connection to viya could not be established

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

CAS connection to viya could not be established

Hi,

 

I'm trying to set up a CAS connection to the Python client as mentioned in this tutorial https://communities.sas.com/t5/SAS-Viya-Coders-Library/Your-First-CAS-Connection-from-Python/ta-p/26...


however, after meeting all the installation requirements on my linux machine. I encountered error when trying to create CAS session as shown in the figure below.

 Screenshot from 2018-02-04 23_29_40.pngErrror code in creating new session

 

* P.S: I can create new session in SAS studio using command below, but when I tried on python it's unsuccessful.

cas my_session; 

and it's connected to my Cas server and provided me wyth UUID etc.

 

 

Having said that, anyone know the solution or workarounds for this problem?

 

 

Thanks


Accepted Solutions
Solution
‎02-12-2018 03:22 AM
SAS Employee
Posts: 524

Re: CAS connection to viya could not be established

@Zhteh,

 

 

Are you trying to connect to SAS Viya 3.2 or 3.3? Do you have a firewall that can block the outside connection requests?

View solution in original post


All Replies
Learner
Posts: 1

Re: CAS connection to viya could not be established

Hi, I faced same issue when connecting postgresql to sas visual analytics, maybe your server host is not operational or the hostname is invalid (even it mapped to a valid ip address).

 

Solution
‎02-12-2018 03:22 AM
SAS Employee
Posts: 524

Re: CAS connection to viya could not be established

@Zhteh,

 

 

Are you trying to connect to SAS Viya 3.2 or 3.3? Do you have a firewall that can block the outside connection requests?

Occasional Contributor
Posts: 10

Re: CAS connection to viya could not be established

@alexal@leonardchin2017

 

It is solved! I open the port 5570 and changed the hostname to my localhost.

 

Thanks for helping

SAS Employee
Posts: 524

Re: CAS connection to viya could not be established

@Zhteh,

 

You are welcome!

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 330 views
  • 0 likes
  • 3 in conversation