Link to home
Start Free TrialLog in
Avatar of kapil12
kapil12Flag for India

asked on

Not able to start the server with Websphere 8 failing with error

Hi,

I'm trying to start the Websphere 8 on solaris 10 64 bit machine , it is throwing -

./startServer.sh server1
Failed to invoke runConfigActions script, /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/runConfigActions.sh

If I run the runConfigActions.sh from AppServer/bin - it is giving

java.io.IOException: Cannot run program "chmod": error=12, Not enough space
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
        at java.lang.Runtime.exec(Runtime.java:593)
        at java.lang.Runtime.exec(Runtime.java:466)
        at com.ibm.ws.postinstall.LaunchUnifiedPostInstaller.updatePermissionsForNonWindows(LaunchUnifiedPostInstaller.java:111)
        at com.ibm.ws.postinstall.LaunchUnifiedPostInstaller.getLogName(LaunchUnifiedPostInstaller.java:1051)
        at com.ibm.ws.postinstall.LaunchUnifiedPostInstaller.runPostinstaller(LaunchUnifiedPostInstaller.java:133)
        at com.ibm.ws.postinstall.LaunchUnifiedPostInstaller.mainForInProcessCallers(LaunchUnifiedPostInstaller.java:1095)
        at com.ibm.ws.postinstall.runConfigActions.RunConfigActions.runConfigActionsforOneProduct(RunConfigActions.java:208)
        at com.ibm.ws.postinstall.runConfigActions.RunConfigActions.main(RunConfigActions.java:119)
Caused by: java.io.IOException: error=12, Not enough space
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
        ... 8 more
java.io.IOException: Cannot run program "chmod": error=12, Not enough space
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
        at java.lang.Runtime.exec(Runtime.java:593)
        at java.lang.Runtime.exec(Runtime.java:466)
        at com.ibm.ws.postinstall.runConfigActions.RunConfigActions.updatePermissionsForNonWindows(RunConfigActions.java:180)
        at com.ibm.ws.postinstall.runConfigActions.RunConfigActions.main(RunConfigActions.java:146)
Caused by: java.io.IOException: error=12, Not enough space
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)

Please suggest some way to resolve this.
Avatar of HonorGod
HonorGod
Flag of United States of America image

Was WebSphere installed by root?

Are you trying to start it using a non-root userid?

- Open a command prompt
- "cd" to the AppServer bin directory
  i.e., something like:
  > cd /opt/IBM/WebSphere/AppServer/bin
- Who "owns" the files?
  >ls -lA *.sh
- Can you execute the versionInfo.sh script?
  >./versionInfo.sh
Avatar of kapil12

ASKER

Yes Websphere installed as a root.

Files are owned by root and after running versionInfo.sh -

reinevm01: # ./versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002, 2005, 2008; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.1.40, dated 3/20/11

--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------

Report at date and time July 10, 2012 11:09:38 AM EDT

Installation
--------------------------------------------------------------------------------
Product Directory        /opt/IBM/WebSphere/AppServer
Version Directory        /opt/IBM/WebSphere/AppServer/properties/version
DTD Directory            /opt/IBM/WebSphere/AppServer/properties/version/dtd
Log Directory            /var/ibm/InstallationManager/logs

Product List
--------------------------------------------------------------------------------
BASE                     installed

Installed Product
--------------------------------------------------------------------------------
Name                  IBM WebSphere Application Server
Version               8.0.0.0
ID                    BASE
Build Level           n1118.03
Build Date            5/3/11
Architecture          SPARC (64 bit)
Installed Features    IBM 64-bit SDK for Java, Version 6
                      EJBDeploy tool for pre-EJB 3.0 modules
                      Embeddable EJB container
                      Stand-alone thin clients and resource adapters

--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------
and you were "root" when you tried to start it, right?

- from the AppServer/bin directory, what is the output of:

./manageprofiles.sh -listProfiles

and then

./manageprofiles.sh -getDefaultName

Thanks!
By the way, did you know that some fixes exist for 8.0 already?

Did you know that you can use the Installation Manager to update the AppServer to 8.0.0.3?


http://www.ibm.com/support/docview.wss?uid=swg27009661
Avatar of kapil12

ASKER

okay.

Since today morning, server starts working and able to create profile  
but got another error -                                                
                                                                       
Error occurred during initialization of VM                              
Could not reserve enough space for object heap                          
                                                                       
For you reference, I had attached the screen shot of my total disk      
space and swap -l to know total swap space used. Could you please      
suggest how much to allocate the swap space to WAS and how to do ?      

It seems error is related to out of swap space.                                                                        
                                                                       
Kindly let me know if you need any other information
SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kapil12

ASKER

okay thanks. Could you please help me in knowing the values of Intial and Max heap sizes need to set in console. Since these fields are blank and nothing is present.

I'm attaching server.xml, which will help you in knowing the adequate amount in setting up heap.

Also I forget to attach swap space and total disk space. Let me know if you need any other info.
server.xml
Swap.doc
Avatar of kapil12

ASKER

I had set Intial heap size to 256 and Max heap size to 512 MB.  Is it  correct according to configuration I attached in previous comments ?

Secondly On th same panel there is Runtime tab ,there Max  heap size mentioned by default is 227 and Current heap size mentioned is 216, so these heap sizes need to be change or it should be the same.
                                                                       
Please  suggest. Let me know if you need any other info.
When the fields are blank, then WebSphere uses the default values.

Your choice of Initial and Max heapsize should be made based upon your specific environment.

When you changed the values to 256 & 512 MB, did you see any improvement in the symptoms when you started your application server?

How many applications have you deployed?

How long running is your application server?

How long running is your application?

How much physical memory do you have on your machine?
Avatar of kapil12

ASKER

Yes I tried in updating even more than 256 & 512. I specified 512 as Intial and max as 1024.

Except WAS no other App is deployed on this machine.
App server is running for more than 12 hours but it has been restarted several times

Physical memory -
# /usr/sbin/prtconf | grep Memory
prtconf: devinfo facility not available
Memory size: 130848 Megabytes

Since now I haven't face any heap error since morning. But will these sizes are recommended to use. What you say ?
Avatar of kapil12

ASKER

One more question since you really put your efforts to resolve the above issue. I got struck  while Installing web server plugin as to set proxy with WAS 8.0

I downloaded the WAS 7.0 plugin for WIN 2K8 32 bit - C1G0RML and installed on WIN2K8 32 bit machine using the GUI wizard. At the end while finishing I'm getting partial success error and plugin-cfg file is not getting generated on profile_install_root /config/cells/cell_name /nodes/node_name /servers/Web_server_name

Error -
(Jul 12, 2012 11:32:23 AM), Process, com.ibm.ws.install.ni.ismp.installtoolkitbridge.ISMPInstallToolkitBridgeForNIFramework, wrn, Config action failed: 99SBootStrapPluginsIIS7 - C:\Program Files\IBM\WebSphere\Plugins\properties\version\nif\config\install\99SBootStrapPluginsIIS7.ant

Please suggest what should I do ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kapil12

ASKER

okay I will keep same value - Intial and Max heap.

I'm getting partial success error -

I'm trying to install plugin using IIS 7 as web server on windows 2k8 32 bit. However WAS 8.0 has been installed successfully. I'm trying to use WAS 7 plugin module to generate xml file on APP Server machine having WAS 8 installed.

Attached logs -

C:\Program Files\IBM\WebSphere\Plugins1\logs\install\log.txt
log.txt
Looking at the log file,

line 149 can / should be ignored.  IIS doesn't exist on your OS

The reason for the INSTCONFPARTIALSUCCESS is identified in lines 151-155, which identify that some manual steps are required in order to update your web server configuration file and point to the "appropriate" plugin-cfg.xml file to be used by the web server WebSphere Application Server plugin module.
Avatar of kapil12

ASKER

Thanks, I was able to install Plugin using Apache, as IIS needs some patch.

Come back again to same question - Again while starting the Server - I was getting

./startServer.sh server1
Failed to invoke runConfigActions script, /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/runConfigActions.sh

Memory Values -

# swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 8405360 8405360
reinevm42: # prtconf
System Configuration:  Sun Microsystems  sun4v
Memory size: 130848 Megabytes
System Peripherals (Software Nodes):

# swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 8405360 8405360

# df -h
Filesystem             size   used  avail capacity  Mounted on
/                      275G    96G   177G    36%    /
/dev                   275G    96G   177G    36%    /dev
/lib                    12G    10G   1.6G    87%    /lib
/platform               12G    10G   1.6G    87%    /platform
/sbin                   12G    10G   1.6G    87%    /sbin
/usr                    12G    10G   1.6G    87%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                   2.9G   384K   2.9G     1%    /etc/svc/volatile
/platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
                        12G    10G   1.6G    87%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                        12G    10G   1.6G    87%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.9G    40K   2.9G     1%    /tmp
swap                   2.9G    48K   2.9G     1%    /var/run

I have kept Max and Intial heap size to 1024 MB but still getting the errors. Please suggest.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kapil12

ASKER

Done attach the contents as zip. Please look in to. let me know if you need any other info.
Logs.zip
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kapil12

ASKER

Got the cause of the problem with regard to communication error and other related memory issues. Thanks so much for the help. I'm closing this .. Will reopen it if I need any help in future for this issue again.
Great news.

Thanks for the grade & points.

Good luck & have a great day.