![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||
Solution Type Problem Resolution Sure Solution 2277682.1 : Oracle ZFS Storage Appliance: Unable to login to the BUI after restoring configuration backup.
In this Document
Applies to:Oracle ZFS Storage ZS3-BA - Version All Versions and laterOracle ZFS Storage ZS5-4 - Version All Versions and later Oracle ZFS Storage ZS5-2 - Version All Versions and later Sun ZFS Storage 7120 - Version All Versions and later Oracle ZFS Storage ZS3-4 - Version All Versions and later 7000 Appliance OS (Fishworks) SymptomsThe user is unable to login to the Browser User Interface (BUI). Login via the Command Line Interface CLI is not effected.
Error displayed in the BUI console: Error Console Exception type: akProgrammerError ... Additional members: Native file: https://<ZFS-SA-HOSTNAME>:215/lib/ak/index.js line 20995 Additional native members:
ChangesA configuration backup created in an OS release prior to OS8.7 is restored on a system running OS 8.7.x
CauseOS 8.7 introduced the "CLI idle timeout" parameter under configuration preferences. When a configuration backup from an a prior OS is restored this expected parameter is missing.
SolutionPlease open a service request for Oracle Global Support to address this issue. This process will allow the user to login to the Appliance BUI after restoring a pre-OS8.7 configuration backup.
1. Drop to the appliance shell and 'cd' to the users subdirectory of stash. ZFSSA:> confirm shell
2. Find the stash object for the user 'root'. ZFSSA# for i in *;do if aknv $i/obj|grep -q "logname = root";then echo $i/obj;fi;done
3. Create a backup of the current 'root' user object. ZFSSA# cp bd1c7e89-5b83-4e01-9dae-fa6fded03cbe/obj /var/ak/dropbox/stash.root_user.orig.obj
4. Create an XML version of the binary stash object: ZFSSA# aknv -x bd1c7e89-5b83-4e01-9dae-fa6fded03cbe/obj > /tmp/stash.root_user.orig.xml
5. Confirm the required parameter is missing. ZFSSA# grep idle_timeout /tmp/stash.root_user.orig.xml
6. Add the required entry to a new copy of the XML file. ZFSSA# perl -slpe 'print $s if $. == $n' -- -n='grep -n session_timeout /tmp/stash.root_user.orig.xml | cut -d: -f1' -s=" <nvpair name='cli_idle_timeout'><int32 value='-1'/></nvpair>" /tmp/stash.root_user.orig.xml > /tmp/stash.root_user.new.xml
7. Confirm the new line. ZFSSA# diff /tmp/stash.root_user.orig.xml /tmp/stash.root_user.new.xml
8. Disable AKD. ZFSSA# svcadm disable -st akd
9. Convert the edited object to stash's binary format to replace the object identified in step 2. ZFSSA# aknv -S /tmp/stash.root_user.new.xml > bd1c7e89-5b83-4e01-9dae-fa6fded03cbe/obj
10. Verify the entry in the binary file. ZFSSA# aknv bd1c7e89-5b83-4e01-9dae-fa6fded03cbe/obj | grep idle_timeout
11. Restart akd and test the BUI login. ZFSSA# svcadm enable akd
The above procedure works for other local users configured in AKD. The default cli_idle_timeout value is '-1', which is 'infinite'
References<BUG:26000582> - POST UPGRADE CONFIG RESTORE OVERWRITES CLI_IDLE_TIMEOUT USER PROPERTY<BUG:19514349> - APPLIANCE: WANT CONFIGURABLE IDLE TIMEOUT ON CLI SESSIONS <BUG:25577772> - SYNCHRONIZE STASH UPDATES MADE DURING AK UPGRADE Attachments This solution has no attachment |
||||||||||||||||||||
|