000030956 - Fail to boot up with error "An error occured while attempting to configure the JVM memory setting"

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000030956
Applies ToRSA Product Set: SecurID
RSA Product/Service Type: Authentication Manager
RSA Version/Condition: 8.1.0
Platform: VMware
Platform (Other): Hardware application
 
IssueWhen booting the appliance, get the below error and fail to continue
 

Configuring JVM settings...


An error occured while attempting to configure the JVM memory setting. 
Please provide enough memory and try again.



 
CauseThere is a script in /etc/init.d/memorycontrol, which has a function config_memory(). This is responsible for this failure message.
It runs the following goal (which is failing):
"/opt/rsa/am/config/config.sh InstallAM:updateMemoryTuning"
The detailed errors are saved in  /opt/rsa/am/install_logs/config/InstallAM_updateMemoryTuning.log
The below error indicates that it is caused by no space left on the device.
0      2015-07-16 19:25:57,159 INFO: One of the dependencies dirs doesn't exist: thirdparty
19     2015-07-16 19:25:57,178 INFO: One of the dependencies dirs doesn't exist: ../common-platform/thirdparty
24     2015-07-16 19:25:57,183 INFO: Arguments: [InstallAM.updateMemoryTuning]
Exception in thread "Main Thread" : error running fixcrlf on file /opt/rsa/am/config/src/resources/radius/unix/radAdmin.so
    at org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:381)
    at org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:304)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at groovy.util.AntBuilder.performTask(AntBuilder.java:262)
    at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
    at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
    at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:174)
    at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at com.rsa.plugins.install.CommandLineInstallEngine.fixLineEndingsInSrcDirFiles(CommandLineInstallEngine.groovy:131)
    at com.rsa.plugins.install.CommandLineInstallEngine$fixLineEndingsInSrcDirFiles.callCurrent(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    at com.rsa.plugins.install.CommandLineInstallEngine.fixLineEndingsInSrcDirFiles(CommandLineInstallEngine.groovy:121)
    at com.rsa.plugins.install.CommandLineInstallEngine.<init>(CommandLineInstallEngine.groovy:115)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
    at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:54)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:186)
    at com.rsa.plugins.install.CommandLineInstallEngine.main(CommandLineInstallEngine.groovy:40)
Caused by: java.io.IOException: No space left on device
    at java.io.FileOutputStream.writeBytes(FileOutputStream.java)
    at java.io.FileOutputStream.write(FileOutputStream.java:282)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
    at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
    at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
    at java.io.BufferedWriter.write(BufferedWriter.java:170)
    at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:498)
    at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:559)
    at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
    at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:480)
    at org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:357)
    at org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:304)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
    at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
    at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
    at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
    ... 22 more
Configuration step InstallAM:updateMemoryTuning [FAILED]
Resolution1. Confirm the system has correct RAM as per the h/w version customer is using
2. Press Ctrl+d to resume the boot sequence.
3. Review the below logs:
/opt/rsa/am/install_logs/config/InstallAM_updateMemoryTuning.log
4. If you see the below error 
Exception in thread "Main Thread" : error running fixcrlf on file /opt/rsa/am/config/src/resources/radius/unix/radAdmin.so
Caused by: java.io.IOException: No space left on device
it indicates it failed because there is no space on the AM server.
5. Confirm disk usage 
df -h
6. Find the large size folder
sudo su -
cd /opt/rsa/am/
du -h | grep [0-9]G
7. Remove unnecessary files to free up spaces.
 

Attachments

    Outcomes