If a SAS® stored process request requires more than 5 minutes to complete execution, then it might not be able to publish a permanent package to the SAS® Content Server's WebDAV repository.
A SAS stored process request, by default, uses a One-Time-Password (OTP) to connect to a WebDAV server. The OTP is created before the stored process begins execution, and it expires in 5 minutes. So, if a stored process requires more than 5 minutes to complete execution and it tries to publish a permanent package to WebDAV (and uses the OTP), then the following error messages appears in a SAS® 9.3 stored process log file:
ERROR: WEBDAV transport engine encountered errors while publishing the package. ERROR: The result package could not be created. The error encountered was: ERROR: The MKCOL request failed with an HTTP status of 401 (Unauthorized).
And a warning message similar to the following appears in the SAS® Metadata Server log file:
Access Denied due to expired SAS token from sasdemo. New client connection (829) rejected from server port 8561 for user sasdemo@!* generatedpassworddomain)*!.
In SAS® 9.4, the stored process log contains the following error messages:
ERROR: WEBDAV transport engine encountered errors while publishing the package. ERROR: The result package could not be created. The error encountered was: ERROR: Unauthorized: Check username/password.
As a workaround, you could specify a user account and password in the stored process code to connect to the WebDAV server. Then, this user account is used and the expired OTP is not used. Here is an example:
options nosource; /* Turn off source logging */ %let _HTTP_USER=sasdemo; %let _HTTP_PASSWORD=your_password_here; options source; /* Turn on logging again. */ %stpend; /* For debugging use: %stpend(debug=1); */
Note: You can use the PWENCODE procedure to encode the password that you specify for the _HTTP_PASSWORD macro variable value.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS Integration Technologies | z/OS | 9.3 TS1M2 | 9.4 TS1M3 |
Microsoft® Windows® for x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise 32-bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro 32-bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | |||
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | |||
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | |||
Microsoft Windows Server 2008 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 R2 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Datacenter | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Std | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Std | 9.3 TS1M2 | 9.4 TS1M3 | ||
Microsoft Windows XP Professional | 9.3 TS1M2 | |||
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Home Premium 32 bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Home Premium x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Professional 32 bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Professional x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows 7 Ultimate x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Windows Vista | 9.3 TS1M2 | |||
Windows Vista for x64 | 9.3 TS1M2 | |||
64-bit Enabled AIX | 9.3 TS1M2 | 9.4 TS1M3 | ||
64-bit Enabled HP-UX | 9.3 TS1M2 | 9.4 TS1M3 | ||
64-bit Enabled Solaris | 9.3 TS1M2 | 9.4 TS1M3 | ||
HP-UX IPF | 9.3 TS1M2 | 9.4 TS1M3 | ||
Linux | 9.3 TS1M2 | 9.4 TS1M3 | ||
Linux for x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
Solaris for x64 | 9.3 TS1M2 | 9.4 TS1M3 | ||
SAS System | N/A | z/OS | 9.4 TS1M2 | |
Z64 | 9.4 TS1M2 | |||
Apple Mobile Operating System | 9.4 TS1M2 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M2 | |||
Microsoft® Windows® for x64 | 9.4 TS1M2 | |||
SAS Cloud | 9.4 TS1M2 | |||
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M2 | |||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M2 | |||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M2 | |||
Microsoft Windows 8 Pro x64 | 9.4 TS1M2 | |||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M2 | |||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M2 | |||
Microsoft Windows 8.1 Pro | 9.4 TS1M2 | |||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M2 | |||
Microsoft Windows Server 2008 | 9.4 TS1M2 | |||
Microsoft Windows Server 2008 R2 | 9.4 TS1M2 | |||
Microsoft Windows Server 2008 for x64 | 9.4 TS1M2 | |||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M2 | |||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M2 | |||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M2 | |||
Microsoft Windows Server 2012 Std | 9.4 TS1M2 | |||
Windows 7 Enterprise 32 bit | 9.4 TS1M2 | |||
Windows 7 Enterprise x64 | 9.4 TS1M2 | |||
Windows 7 Home Premium 32 bit | 9.4 TS1M2 | |||
Windows 7 Home Premium x64 | 9.4 TS1M2 | |||
Windows 7 Professional 32 bit | 9.4 TS1M2 | |||
Windows 7 Professional x64 | 9.4 TS1M2 | |||
Windows 7 Ultimate 32 bit | 9.4 TS1M2 | |||
Windows 7 Ultimate x64 | 9.4 TS1M2 | |||
64-bit Enabled AIX | 9.4 TS1M2 | |||
64-bit Enabled HP-UX | 9.4 TS1M2 | |||
64-bit Enabled Solaris | 9.4 TS1M2 | |||
HP-UX IPF | 9.4 TS1M2 | |||
Linux | 9.4 TS1M2 | |||
Linux for x64 | 9.4 TS1M2 | |||
Solaris for x64 | 9.4 TS1M2 |
Type: | Problem Note |
Priority: | high |
Date Modified: | 2015-01-09 14:56:24 |
Date Created: | 2014-12-16 12:44:07 |