BookmarkSubscribeRSS Feed
Nunna
Calcite | Level 5

Create a SAS VIya instance using azure but once i login with admin and open SAS studio it give errorThe SAS session is no longer valid. Try resetting the session, or you might need to contact your administrator. SAS  Compute context failing to connect. 

4 REPLIES 4
cj_blake
SAS Employee

Hi @Nunna, I am sorry that you're having this issue. I noticed that this was a problem with one of my deployments too. The fix for me was to run the steps from this page: SAS Help Center: Add and Configure Users with one modification: during step 3, before running the final move command, run the following:

 

sed -i 's#(read input; printf "%s==" "$input") |##g' /tmp/create_homedir.sh

Also, as a pre-requisite to those steps, I did have to run "sudo mount -a"  so that the share where the home directories exist as mounted. I was then able to reset/properly start a SAS Studio session for the viya_admin user.

Nunna
Calcite | Level 5

@cj_blake we tried the fix you suggested but still getting the same error. Is there licensing needed for this ? We created the instance directly from Azure portal.

cj_blake
SAS Employee

@Nunna nope, there are no additional licensing things you need for this. Can you share the output of what happens when you run the commands? For example, on deployment that I did today (that has the issue), I see:

 

jumpuser@my-viya-jump-vm:~$ /tmp/create_homedir.sh -d /viya-share/sas-viya/homes -b https://mysasviya.eastus2.cloudapp.azure.com
NOTE: Setting bash options errexit and pipefail
NOTE: Checking if jq is sudo installed.
jq is sudo installed, continuing...
NOTE: Attempting to log in to https://mysasviya.eastus2.cloudapp.azure.com
Enter username: viya_admin
Enter password:
NOTE: Successfully logged in.
NOTE: Pulling users into file /tmp/tmp.5tSLx2mZOq.
NOTE: Found 1 users defined.
NOTE: Created directory /viya-share/sas-viya/homes/viya_admin with ownership 122880476:122880476

After running this, I clicked "reset" in Studio, and I get a working compute session.