WPS9: Unable to run enable-profiles using ConfigEngine

Hi,

I am facing an issue while running the below command: (unable to enbale/package the portal standalone profile)

is anyone faced similar issue while enabling portal profiles in your environment (AIX), i have set ulimit values as below:

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) 265536
threads(per process) unlimited
processes(per user) unlimited

./ConfigEngine.sh enable-profiles -DWasPassword=********

java.lang.IllegalStateException: java.lang.IllegalStateException: Depth value 3 must be set

profile-create-car:
[delete] Deleting: /tech/IBM/wps9dev/profileTemplates/default.portal/configArchives/Portal.car
[wsadmin] setting default wsadmin classpath: /tech/IBM/ConfigEngine1/lib/wkplc.misc.jar:/tech/IBM/was9dev/deploytool/itp/batchboot.jar:/tech/IBM/was9dev/deploytool/itp/batch2.jar:/tech/IBM/wps9dev/base/wp.base/shared/app/wp.base.jar:/tech/IBM/wps9dev/shared/app/wp.base.jar
[wsadmin] Opening a wsadmin session
[wsadmin] WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
[wsadmin] WASX7029I: For help, enter: "$Help help"
[wsadmin] cwsdv12app.ap.manulife.com
[wsadmin] jacl
[wsadmin] /tech/IBM/ConfigEngine1/lib/wkplc.misc.jar:/tech/IBM/was9dev/deploytool/itp/batchboot.jar:/tech/IBM/was9dev/deploytool/itp/batch2.jar:/tech/IBM/wps9dev/base/wp.base/shared/app/wp.base.jar:/tech/IBM/wps9dev/shared/app/wp.base.jar
[wsadmin] 10034
[wsadmin]
[wsadmin] java.lang.IllegalStateException: java.lang.IllegalStateException: Depth value 3 must be set
[wsadmin] at com.ibm.ws.runtime.component.VariableMapImpl.reload(VariableMapImpl.java:240)
[wsadmin] at com.ibm.ws.runtime.component.VariableMapImpl.initialize(VariableMapImpl.java:150)
[wsadmin] at com.ibm.ws.management.configarchive.ExportWsprofile.createVariableMap(ExportWsprofile.java:244)
[wsadmin] at com.ibm.ws.management.configarchive.ExportWsprofile.addRars(ExportWsprofile.java:214)
[wsadmin] at com.ibm.ws.management.configarchive.ExportWsprofile.beforeStepsExecuted(ExportWsprofile.java:126)
[wsadmin] at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.executeReal(AbstractTaskCommand.java:835)
[wsadmin] at com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand.execute(AbstractTaskCommand.java:807)
[wsadmin] at com.ibm.websphere.management.async.client.AsyncCommandClient.execute(AsyncCommandClient.java:177)
[wsadmin] at com.ibm.ws.scripting.adminCommand.AdminCmdController.executeCmd(AdminCmdController.java:1877)
[wsadmin] at com.ibm.ws.scripting.adminCommand.AdminCmdController.processCmd(AdminCmdController.java:318)
[wsadmin] at com.ibm.ws.scripting.adminCommand.AdminCmdProxyHandler.invoke(AdminCmdProxyHandler.java:92)
[wsadmin] at com.ibm.ws.scripting.adminCommand.AdminCmdProxyBase.__method3(AdminCmdProxyBase.java:53)
[wsadmin] at com.ibm.ws.scripting.adminCommand.AdminTask.exportWasprofile(Unknown Source)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[wsadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[wsadmin] at java.lang.reflect.Method.invoke(Method.java:508)
[wsadmin] at tcl.lang.reflect.PkgInvoker.invokeMethod(PkgInvoker.java:125)
[wsadmin] at tcl.lang.JavaInvoke.call(JavaInvoke.java:263)
[wsadmin] at tcl.lang.JavaInvoke.callMethod(JavaInvoke.java:121)
[wsadmin] at tcl.lang.ReflectObject.cmdProc(ReflectObject.java:914)
[wsadmin] at tcl.lang.Parser.evalObjv(Parser.java:818)
[wsadmin] at tcl.lang.Parser.eval2(Parser.java:1221)
[wsadmin] at tcl.lang.Interp.eval(Interp.java:2222)
[wsadmin] at tcl.lang.Interp.eval(Interp.java:2276)
[wsadmin] at com.ibm.bsf.engines.jacl.JaclEngine.eval(Unknown Source)
[wsadmin] at com.ibm.bsf.BSFManager$5.run(Unknown Source)
[wsadmin] at java.security.AccessController.doPrivileged(AccessController.java:650)
[wsadmin] at com.ibm.bsf.BSFManager.eval(Unknown Source)
[wsadmin] at com.ibm.ws.scripting.AbstractShell.interactive(AbstractShell.java:1492)
[wsadmin] at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2405)
[wsadmin] at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1256)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[wsadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[wsadmin] at java.lang.reflect.Method.invoke(Method.java:508)
[wsadmin] at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)
[wsadmin] at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:101)
[wsadmin] at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:82)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[wsadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[wsadmin] at java.lang.reflect.Method.invoke(Method.java:508)
[wsadmin] at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
[wsadmin] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
[wsadmin] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[wsadmin] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[wsadmin] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
[wsadmin] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
[wsadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[wsadmin] at java.lang.reflect.Method.invoke(Method.java:508)
[wsadmin] at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
[wsadmin] at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
[wsadmin] at org.eclipse.core.launcher.Main.run(Main.java:981)
[wsadmin] at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:422)
[wsadmin] at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:179)
[wsadmin] Caused by: java.lang.IllegalStateException: Depth value 3 must be set
[wsadmin] at com.ibm.ws.runtime.config.ReadOnlyConfigScopeImpl.checkDepths(ReadOnlyConfigScopeImpl.java:84)
[wsadmin] at com.ibm.ws.runtime.config.ReadOnlyConfigScopeImpl.getAbsolutePath(ReadOnlyConfigScopeImpl.java:107)
[wsadmin] at com.ibm.ws.runtime.config.ConfigServiceImpl.getDocument(ConfigServiceImpl.java:148)
[wsadmin] at com.ibm.ws.runtime.config.ConfigServiceImpl.getDocumentObjects(ConfigServiceImpl.java:126)
[wsadmin] at com.ibm.ws.runtime.config.DocumentLocatorImpl.getDocumentObjects(DocumentLocatorImpl.java:51)
[wsadmin] at com.ibm.ws.runtime.component.VariableMapImpl.reload(VariableMapImpl.java:195)
[wsadmin] ... 57 more
[wsadmin]

BUILD FAILED
/tech/IBM/wps9dev/installer/wp.profile/config/includes/profileSupport.xml:635: Exception found when executing wsadmin: WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
WASX7029I: For help, enter: "$Help help"
cwsdv12app.ap.manulife.com
jacl
/tech/IBM/ConfigEngine1/lib/wkplc.misc.jar:/tech/IBM/was9dev/deploytool/itp/batchboot.jar:/tech/IBM/was9dev/deploytool/itp/batch2.jar:/tech/IBM/wps9dev/base/wp.base/shared/app/wp.base.jar:/tech/IBM/wps9dev/shared/app/wp.base.jar
10034

java.lang.IllegalStateException: java.lang.IllegalStateException: Depth value 3 must be set

Hi Hanumantharao,

Increase ulimit -n value to 200000 to the user which you are running Portal.

Hopefully issue would be fixed.

Thanks,

Venkat

Hi Venkat,

I have set below ulimit values to user root and tried to run using root user and error remains same.

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 2097151
memory(kbytes) 32768
coredump(blocks) 2097151
nofiles(descriptors) 2097151
threads(per process) unlimited
processes(per user) unlimited

Hello Hanumanth,

Run the below commands , if task is failed provide exceptions on the command prompt and wsadmin.traceout file under wp_profile/logs.

1) Go to wp_profile/bin
2) /wsadmin.sh -lang jython
3) If Portal.car is available in the configArchives directory , delete and run the task.
$AdminTask exportWasprofile {-archive {/tech/IBM/wps9dev/profileTemplates/default.portal/configArchives/Portal.car}}

4) $AdminConfig save
Thanks,
Venkat

You may want to review a javacore from the running JVM to ensure the ulimit setting on the OS is being picked up by the JVM....to create a javacore.....

WAS Console > Troubleshooting > Java Dumps and Cores > Java core

The value in the javacore is...

RLIMIT_NOFILE

When you run a ConfigEngine task, it will print the ulimit value at the top of the output. Can you check what is getting picked up by ConfigEngine? Here is a sample from my lab machine.

root@85-cf16-template ConfigEngine # ./ConfigEngine.sh
EJBDEPLOY_JAVA_HOME is /opt/IBM/WebSphere/AppServer/java_1.7_64
ulimit is already set appropriately
24000


Also, I thought that 65535 was the largest you could set for the ulimit -n. Not sure what would happen if you set a value higher than that. I would try setting ulimit -n to 65535 to see if the OS recognizes that value.

Hi David/Jerry,

Here I do not see any issues with ulimit values: ulimit is already set appropriately > 2097151

[root@hkxdv54:/app/awsdv2/wp_profile9/ConfigEngine] $ ./ConfigEngine.sh enable-profiles -DWasPassword=******
ulimit is already set appropriately
2097151
WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
ConfigEngine instance home variable found and successfully replaced
Executing native2ascii with native encoding 'ISO8859-1': wkplc.properties -> wkplc_ascii.properties
Native2ascii execution was successful!
Executing native2ascii with native encoding 'ISO8859-1': wkplc_dbtype.properties -> wkplc_dbtype_ascii.properties
Native2ascii execution was successful!
Executing native2ascii with native encoding 'ISO8859-1': wp_security_internal.properties -> wp_security_internal_ascii.properties
Native2ascii execution was successful!
Executing native2ascii with native encoding 'ISO8859-1': wkplc_comp.properties -> wkplc_comp_ascii.properties
Native2ascii execution was successful!
Executing native2ascii with native encoding 'ISO8859-1': wkplc_dbdomain.properties -> wkplc_dbdomain_ascii.properties
Native2ascii execution was successful!
Executing native2ascii with native encoding 'ISO8859-1': wkplc_sourceDb.properties -> wkplc_sourceDb_ascii.properties
Native2ascii execution was successful!
loaded registry from WAS: /app/awsdv2/wp_profile9/ConfigEngine/registry.xml
Buildfile: /app/awsdv2/wp_profile9/ConfigEngine/base_dynamic.xml

Note: package-profiles run successful.. but we must run enable-profiles command first and then package-profiles command to create additional portal profile.

Did you find a solution for this? All I could find was a possible issue with the user's ulimit -n setting. The output you provided should be plenty, though I don't know if you would have that many processes running for the user. Maybe shutting down other processes and restarting the OS would allow it to work.