Installation Note 66006: Upgrading SAS® Infrastructure Data Server fails with the error "level=error msg=\"Key write failed.\"...Unexpected response code: 404..."
When you upgrade to SAS® Viya® 3.5, a failure can occur during the upgrade to the SAS Infrastructure Data Server that returns an error similar to the following:
TASK [sasdatasvrc-x64_redhat_linux_6-yum : Await completion] *****************
2020-04-17 22:11:11,795 p=58798 u=sas n=ansible | FAILED - RETRYING: Await completion (60 retries left).
2020-04-17 22:11:25,109 p=58798 u=sas n=ansible | FAILED - RETRYING: Await completion (59 retries left).
2020-04-17 22:11:38,418 p=58798 u=sas n=ansible | FAILED - RETRYING: Await completion (58 retries left).
2020-04-17 22:11:51,612 p=58798 u=sas n=ansible | failed: [deployTarget] <DEBUG TEXT NOT RELEVANT TO ERROR OMITTED>
...level=error msg=\"Key write failed.\" key=config/postgres/sas.dataserver.conf//SOME_ENV_VARIABLE err=\"Unexpected response code: 404 ()\"\nThe attempt to write the key 'config/postgres/sas.dataserver.conf//SOME_ENV_VARIABLE' was unsuccessful.
<DEBUG TEXT NOT RELEVANT TO ERROR OMITTED>
In the error above, the text SOME_ENV_VARIABLE refers to any environment variable that is defined in the install user's bash shell that contains a double underscore in its name. For example, this particular environment variable was __SOME_ENV_VARIABLE. However, the error message always omits the double underscore.
The double underscore is picked up as a key/value pair of interest to the SAS Infrastructure Data Server's start and stop scripts. The upgrade to SAS Viya 3.5 fails because of this issue as do as any subsequent start and stops of the SAS Infrastructure Data Server.
Note that any double underscore in the environment variable triggers this failure. Here are some examples:
export SOME__ENV_VARIABLE=value
export SOME_ENV_VARIABLE__=value
To work around this issue, it is recommended that the sas user not define or inherit any double underscore environment variables.
Operating System and Release Information
| SAS System | SAS Viya | Linux for x64 | 3.5 | | Viya | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Environment variables that contain double underscores can prevent a successful upgrade for SAS Infrastructure Data Server.
| Type: | Installation Note |
| Priority: | high |
| Date Modified: | 2020-05-20 13:17:15 |
| Date Created: | 2020-05-18 15:45:36 |