![]() | ![]() | ![]() | ![]() |
When you use the User Activity report in SAS Environment Manager for SAS Viya, the report might not show any audit data. When this happens, an error similar to the following is displayed:
In addition, when you manually execute the genAudit program (which resides in /opt/sas/viya/home/bin/ev-genaudit), the execution might fail. When it does fail, the following error is generated:
These errors occur when a file named credentials.json exists under SAS installer ID (sas) home directory ($HOME/.sas/credentials.json) and that file contains an expired token. The authentication step for the sas-admin command-line interface creates a token in a file that is stored in the user’s home directory. This token is valid for 12 hours only, by default. The EMI_OAUTH_TOKEN environment variable is ignored if credentials.json exists. So when the token expires, audit data cannot be loaded into CAS.
To resolve this issue, rename the credentials.json file in $HOME/.sas/ if the file exists under the SAS installer ID. Note that when the credentials.json file is 0 bytes, the token in that file is not used. As a result, audit data is loaded into CAS.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Viya | Linux for x64 | 3.4 | 3.5 | Viya |