Wednesday, July 12, 2023

SAS VIYA The SAS CAS Management service is unavailable or could not be found.

 sas-viya --output text cas caslibs list --su --limit 200 

sas-viya --output text cas servers list

These commands gave me : 

"The SAS CAS Management service is unavailable or could not be found."


After some research I found out that my sas-endpoint url contained a "/" at the end.

Removing the / was the solution.


For example : 

$ sas-viya --profile dikpater profile init

Enter configuration options:

Service Endpoint> https://sasviya.example.nl      !!!!NOSLASHATTHEEND!!!

Output type (text|json|fulljson)> text

Enable ANSI colored output (y/n)?>

Saved 'dikpater' profile to /appl/homedir/sas/.sas/config.json.

$ sas-viya --profile dikpater profile show

Current settings for the [dikpater] profile:

Setting               Current Value

oauth-client-id       sas.cli

output                text

sas-endpoint          https://sasviya.example.nl

ansi-colors-enabled   false