Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-2277682.1
Update Date:2018-03-27
Keywords:

Solution Type  Problem Resolution Sure

Solution  2277682.1 :   Oracle ZFS Storage Appliance: Unable to login to the BUI after restoring configuration backup.  


Related Items
  • Sun ZFS Storage 7420
  •  
  • Oracle ZFS Storage ZS5-2
  •  
  • Oracle ZFS Storage ZS3-2
  •  
  • Oracle ZFS Storage ZS4-4
  •  
  • Oracle ZFS Storage ZS5-4
  •  
  • Sun ZFS Storage 7120
  •  
  • Oracle ZFS Storage ZS3-4
  •  
  • Sun ZFS Storage 7320
  •  
  • Oracle ZFS Storage Appliance Racked System ZS4-4
  •  
  • Oracle ZFS Storage ZS3-BA
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: ZS
  •  




In this Document
Symptoms
Changes
Cause
Solution
References


Applies to:

Oracle ZFS Storage ZS3-BA - Version All Versions and later
Oracle 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)

Symptoms

The 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
HH:MM:SS.sss

Exception type: akProgrammerError
Message: Unhandled native exception occurred during XMLRPC completion callback
Computed stack trace:
self.coXmlrpcAsyncCall(method:"system.multicall", proxy:[self.akService], args:<array> "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],

...

Additional members:
xmlrpc_method: system.multicall
Wrapped exception type: TypeError
Native message: viewTarget is undefined
Mapped file: https://<ZFS-SA-HOSTNAME>:215/lib/ak/akLocore.js line 212
Mapped stack trace:

Native file: https://<ZFS-SA-HOSTNAME>:215/lib/ak/index.js line 20995
Native stack trace:
akLocoreInit/<@https://<ZFS-SA-HOSTNAME>:215/lib/ak/index.js:20995:1
akMulticall/<@https://<ZFS-SA-HOSTNAME>:215/lib/ak/common/index.js:605:5
coXmlrpcAsyncCall/request<@https://<ZFS-SA-HOSTNAME>:215/lib/crazyolait/index.js:1454:6
completion@https://<ZFS-SA-HOSTNAME>:215/lib/crazyolait/index.js:882:3
coXmlHttpRequest.sendRequest/req.onreadystatechange@https://<ZFS-SA-HOSTNAME>:215/lib/crazyolait/index.js:892:5
coXmlHttpRequest/obj.onreadystatechange@https://<ZFS-SA-HOSTNAME>:215/lib/crazyolait/index.js:607:5

Additional native members:
xmlrpc_method: system.multicall

 

 

Changes

A configuration backup created in an OS release prior to OS8.7 is restored on a system running OS 8.7.x

 

Cause

OS 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.

 

Solution

 Please 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
...
ZFSSA# cd /var/ak/stash/com/sun/ak/xmlrpc/user/

 

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
bd1c7e89-5b83-4e01-9dae-fa6fded03cbe/obj

 

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
ZFSSA#

 

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
24a25
> <nvpair name='cli_idle_timeout'><int32 value='-1'/></nvpair>

 

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
cli_idle_timeout = -1

 

11. Restart akd and test the BUI login.

ZFSSA# svcadm enable akd
ZFSSA# pgrep akd | wc -l
3
ZFSSA# pgrep akd | wc -l
2
ZFSSA# exit

 

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
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback