My Oracle Support Banner

StoreUserConfig Failing With NameError Using WLST and nmConnect() When on OHS 12c Standalone Domain (Doc ID 2450800.1)

Last updated on MARCH 18, 2024

Applies to:

Oracle HTTP Server - Version and later
Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


On : version, Oracle HTTP Server

Step by Step Instructions:

1. Install OHS from fmw_12.<platform>  (any platform) 

2. Create a standalone domain, all defaults 

3. Start Node Manager 


4. Connect and attempt to use documented feature 


wls:/offline> nmConnect('weblogic', 'password', 'localhost', '5556', 'base_domain') 
Connecting to Node Manager ... 
Successfully Connected to Node Manager. 
wls:/nm/base_domain> storeUserConfig('<dir>/','<dir>/', 'true') 
Traceback (innermost last): 
  File "<console>", line 1, in ? 
NameError: storeUserConfig 

Using storeUserConfig with -- This works:

./user_projects/domains/base_domain/bin> ohs1 storeUserConfig

-- These are created:


./user_projects/domains/base_domain/bin> ohs1
./user_projects/domains/base_domain/bin> ohs1

-- No password required, so it works.

Using storeUserConfig with nmConnect() on full WLS domain -- This works:

wls:/offline> nmConnect('weblogic', 'password', 'localhost', '5556', 
wls:/nm/base_domain> storeUserConfig('<dir>/', '<dir>/', 'true') 
wls:/nm/base_domain>  nmDisconnect() 
userKeyFile='<dir>/', host='localhost',port='5556', domainName='base_domain') 
Connecting to Node Manager ... 
Successfully Connected to Node Manager. 

It is only failing when using nmConnect() on an OHS standalone installation, which configures a WLS standalone domain. nmConnect()  is being used in order to take advantage of monitoring features which may be automated using WLST scripts, but first need to store the username and password to make this more secure using encryption used with storeUserConfig.


The following is used for storeUserConfig with (which is working with storeUserConfig):

Fusion Middleware Administering Oracle Fusion Middleware

Chapter 4 Starting and Stopping Oracle Fusion Middleware
Section Starting and Stopping System Components


The following is used for the general WLST features, when nmConnect() may then be used with storeUserConfig:

WLST Command Reference for Oracle WebLogic Server 



Understanding the WebLogic Scripting Tool 

Securing Access from WLST Online 


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.