Bug 1212495 - Solaris10-Error in server log after Generate JDR Report operation
Summary: Solaris10-Error in server log after Generate JDR Report operation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Core Server
Version: JON 3.3.2
Hardware: Unspecified
OS: Solaris
low
low
Target Milestone: ER01
: JON 3.3.6
Assignee: Josejulio Martínez
QA Contact: Sunil Kondkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-16 13:48 UTC by Sunil Kondkar
Modified: 2016-07-27 15:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 15:29:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Server Log (792.51 KB, text/plain)
2015-07-02 14:48 UTC, Sunil Kondkar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1519 0 normal SHIPPED_LIVE Critical: Red Hat JBoss Operations Network 3.3.6 update 2016-08-26 00:44:36 UTC

Description Sunil Kondkar 2015-04-16 13:48:35 UTC
Description of problem:

After scheduling Generate JDR Report operation at JDR resource, the operation is successful and the report is generated. However, the server.log displays below error:

16:47:47,406 ERROR [org.rhq.enterprise.server.plugins.jdr.JdrServerPluginComponent] (Thread-198) Unable to set file permissions: java.io.IOException: Cannot run program "chmod": error=12, Not enough space
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) [rt.jar:1.7.0_60]
        at java.lang.Runtime.exec(Runtime.java:617) [rt.jar:1.7.0_60]
        at java.lang.Runtime.exec(Runtime.java:450) [rt.jar:1.7.0_60]
        at java.lang.Runtime.exec(Runtime.java:347) [rt.jar:1.7.0_60]
        at org.rhq.enterprise.server.plugins.jdr.JdrServerPluginComponent.writeAccessToken(JdrServerPluginComponent.java:95) [rhq-serverplugin-jdr-4.12.0.JON330GA.jar:4.12.0.JON330GA]
        at org.rhq.enterprise.server.plugins.jdr.JdrServerPluginComponent.setAccessToken(JdrServerPluginComponent.java:67) [rhq-serverplugin-jdr-4.12.0.JON330GA.jar:4.12.0.JON330GA]
        at org.rhq.enterprise.server.plugins.jdr.JdrServerPluginComponent.access$500(JdrServerPluginComponent.java:46) [rhq-serverplugin-jdr-4.12.0.JON330GA.jar:4.12.0.JON330GA]
        at org.rhq.enterprise.server.plugins.jdr.JdrServerPluginComponent$1.run(JdrServerPluginComponent.java:131) [rhq-serverplugin-jdr-4.12.0.JON330GA.jar:4.12.0.JON330GA]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: java.io.IOException: error=12, Not enough space
        at java.lang.UNIXProcess.forkAndExec(Native Method) [rt.jar:1.7.0_60]
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:136) [rt.jar:1.7.0_60]
        at java.lang.ProcessImpl.start(ProcessImpl.java:130) [rt.jar:1.7.0_60]
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) [rt.jar:1.7.0_60]
        ... 8 more

Version-Release number of selected component (if applicable):

Version :

3.3.0.GA Update 02 Build Number :0b1f2c5:9451566

Environment details:

# uname -a
SunOS solaris10 5.10 Generic_147148-26 i86pc i386 i86pc

# isainfo -kv
64-bit amd64 kernel modules
	
How reproducible:

Always

Steps to Reproduce:

-Install JBoss ON 3.3GA
-Update to JBoss ON 3.3.2 ER01
-Navigate to RHQ-Server resource->Subsystems->jdr
-in Operations tab, schedule Generate JDR Report operation
-The operation is successful and report is generated.
-The server log display error.


Actual results:

Error in server log after Generate JDR Report operation.

Expected results:

No error in server log.

Additional info:
The same error is visible in server.log after ./rhqctl start

Comment 2 Sunil Kondkar 2015-07-02 14:48:38 UTC
Created attachment 1045532 [details]
Server Log

Attaching the server log.

Comment 6 Sunil Kondkar 2016-05-06 13:11:09 UTC
Tested on Solaris 10 

Version : 3.3.0.GA Update 05 Build Number : 4242930:1c9f74b
The error in server log still appears after 'Generate JDR Report' operation. (Report is generated and operation is successful)
--------------------
18:23:54,905 ERROR [org.rhq.enterprise.server.plugins.jdr.JdrServerPluginComponent] (Thread-168) Unable to set file permissions: java.io.IOException: Cannot run program "chmod": error=12, Not enough space
------------------------------

There is enough disk space available on the environment.
Tried below commands:

# df -h /export/home
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s7         20G   4.4G    16G    23%    /export/home
----------------------------------
# vmstat
 kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr cd s0 -- --   in   sy   cs us sy id
 0 0 0 2800296 2781640 43 198 51 8 8  0 36 12 -0  0  0  340 1371  365  3  4 93

Comment 8 Josejulio Martínez 2016-06-04 03:47:39 UTC
commit fd98d0e6b58d3386e8367045fdef98b7452dcb6a
Merge: 471fe45 2c2e953
Author: Michael Burman <yak>
Date:   Fri Jun 3 15:43:34 2016 +0300

    Merge pull request #262 from josejulio/bugs/1212495
    
    Bug 1212495 - Solaris10-Error in server log after Generate JDR Report…


commit 2c2e953e49a62b1229b11f75c2e965d067ed4b59
Author: Josejulio Martínez <jmartine>
Date:   Tue May 31 10:53:46 2016 -0500

    Bug 1212495 - Solaris10-Error in server log after Generate JDR Report operation
    
    Removes the fork to avoid low swap memory conditions.

Comment 10 Simeon Pinder 2016-07-07 08:22:45 UTC
Moving to ON_QA as available to test with the following build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=502442

Note: 	jon-server-patch-3.3.0.GA.zip maps to JON 3.3.6(jon-server-3.3.0.GA-update-06.zip)

Comment 11 Sunil Kondkar 2016-07-19 11:11:11 UTC
Verified on Version :3.3.0.GA Update 06 Build Number :	9b78bcc:48b5662

There are no errors in server log after Generate JDR Report operation.

Comment 13 errata-xmlrpc 2016-07-27 15:29:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-1519.html


Note You need to log in before you can comment on or make changes to this bug.