Bug 900519 (JBPAPP6-839) - Jdr utility logs unexpected errors
Summary: Jdr utility logs unexpected errors
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBPAPP6-839
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: EAP 6.0.0
Assignee: Paul Gier
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-24 11:57 UTC by Rostislav Svoboda
Modified: 2014-06-28 12:31 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-04 12:06:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
sosreport-rosta-ntb-20120524162028.zip (1.71 MB, application/zip)
2012-05-24 14:25 UTC, Rostislav Svoboda
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 900518 0 high CLOSED Jdr script utility isn't able to connect to localhost:9990 at all 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker AS7-4883 0 Blocker Resolved JDR utility logs unexpected errors 2014-05-26 18:55:26 UTC
Red Hat Issue Tracker JBPAPP6-839 0 Blocker Closed Jdr utility logs unexpected errors 2014-05-26 18:55:26 UTC

Internal Links: 900518

Description Rostislav Svoboda 2012-05-24 11:57:48 UTC
project_key: JBPAPP6

Jdr is executed standard way:
{code}
[rsvoboda@rosta-ntb ER8]$ jboss-eap-6.0/bin/jdr.sh 
Initializing JBoss Diagnostic Reporter...
Management username: admin
Management password: 
JDR started: Thu May 24 13:49:11 CEST 2012
JDR ended: Thu May 24 13:49:27 CEST 2012
JDR location: /home/rsvoboda/TESTING/ER8/sosreport-rosta-ntb-20120524134920.zip
{code}

File sos_logs/sos.log contains:
{code}
2012-05-24 13:49:23,361 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/picketlink/main/picketlink-jbas7-2.1.1.Final-redhat-1-jandex.ja
r.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:23,364 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/picketlink/main/picketlink-core-2.1.1.Final-redhat-1-jandex-jan
dex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:23,401 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/picketlink/main/picketlink-core-2.1.1.Final-redhat-1-jandex.jar
.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,634 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-jaxb-provider/main/resteasy-jaxb-provid
er-2.3.3.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,637 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-atom-provider/main/resteasy-atom-provid
er-2.3.3.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,641 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-multipart-provider/main/resteasy-multip
art-provider-2.3.3.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,648 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-jsapi/main/resteasy-jsapi-2.3.3.Final-r
edhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,650 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-yaml-provider/main/resteasy-yaml-provid
er-2.3.3.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,657 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-jettison-provider/main/resteasy-jettiso
n-provider-2.3.3.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,663 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-jackson-provider/main/resteasy-jackson-
provider-2.3.3.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,688 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-jaxrs/main/async-http-servlet-3.0-2.3.3
.Final-redhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:25,690 ERROR: ERROR: reading manifest from /home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/resteasy/resteasy-jaxrs/main/resteasy-jaxrs-2.3.3.Final-r
edhat-1-jandex.jar.  Error: 'META-INF/MANIFEST.MF'
2012-05-24 13:49:26,789 ERROR: as7
Traceback (most recent call last):
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/sosreport.py", line 657, in setup
    plug.setup()
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/plugins/as7.py", line 223, in setup
    tree = DirTree(self.__jbossHome).as_string()
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 359, in __init__
    self._build_tree()
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 375, in _build_tree
    self.tree_i(self.top_directory, first=True)
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 437, in tree_i
    self.tree_i(path, padding + '|')
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 404, in tree_i
    details, filename = self._format(os.path.abspath(dir_))
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 394, in _format
    details = {
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 380, in _get_user
    return pwd.getpwuid(stats.st_uid)[0]
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/jboss/as/jdr/main/jboss-as-sos-7.1.2.Final-redhat-1.jar/sos/utilities.py", line 380, in _get_user
    return pwd.getpwuid(stats.st_uid)[0]
  File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/python/jython/standalone/main/jython-standalone-2.5.2-redhat-1.jar/Lib/pwd.py", line 53, in getpwuid
    raise KeyError(uid)
KeyError: -1
{code}

Please assign to appropriate person.

Comment 1 Rostislav Svoboda 2012-05-24 11:58:39 UTC
Labels: Added: eap6_need_triage


Comment 2 jjaggars 2012-05-24 14:11:16 UTC
Can you please describe the environment that this error occurs in? 

I'm specifically interested in this bit:

 File "/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/modules/org/python/jython/standalone/main/jython-standalone-2.5.2-redhat-1.jar/Lib/pwd.py", line 53, in getpwuid
    raise KeyError(uid)

That occurs if pwd cannot find your user id in the passwd db. 

Comment 3 Rostislav Svoboda 2012-05-24 14:25:07 UTC
No changes in EAP, just user was added. I tried it once more with new user, error is still in log file, see attached zip.

This was executed on Fedora 14 with Sun JDK 1.6.0_31.

{code}
[rsvoboda@rosta-ntb ER8]$ jboss-eap-6.0/bin/add-user.sh 

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): 

Enter the details of the new user to add.
Realm (ManagementRealm) : 
Username : ferda
Password : 
Re-enter Password : 
About to add user 'ferda' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'ferda' to file '/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/standalone/configuration/mgmt-users.properties'
Added user 'ferda' to file '/home/rsvoboda/TESTING/ER8/jboss-eap-6.0/domain/configuration/mgmt-users.properties'
Is this new user going to be used for one AS process to connect to another AS process e.g. slave domain controller?
yes/no? no
[rsvoboda@rosta-ntb ER8]$ jboss-eap-6.0/bin/jdr.sh 
Initializing JBoss Diagnostic Reporter...
Management username: ferda
Management password: 
JDR started: Thu May 24 16:20:19 CEST 2012
JDR ended: Thu May 24 16:20:40 CEST 2012
JDR location: /home/rsvoboda/TESTING/ER8/sosreport-rosta-ntb-20120524162028.zip
{code}

Comment 4 Rostislav Svoboda 2012-05-24 14:25:07 UTC
Attachment: Added: sosreport-rosta-ntb-20120524162028.zip


Comment 5 Vladimir Rastseluev 2012-05-24 14:28:51 UTC
I can see this in all cases: 1) running jdr without server started; 2) running jdr with server started without management user credentials ; 3) as 2) with credentials.
OS: Linux Fedora

Comment 6 Rostislav Svoboda 2012-05-24 14:31:10 UTC
I tried EAP in DEBUG mode, correct username and password was provided for jdr script:


{code}
16:27:53,019 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) GET /management HTTP/1.1 [401  Unauthorized] ()
16:28:10,686 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [401  Unauthorized] ()
16:28:10,845 DEBUG [org.jboss.as.osgi] (HttpManagementService-threads - 1) BundleContext not available for management operation
16:28:11,012 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [200  OK] ()
16:28:11,106 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [401  Unauthorized] ()
16:28:11,193 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [200  OK] ()
16:28:11,242 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [401  Unauthorized] ()
16:28:11,261 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [500  Internal Server Error] ()
16:28:11,293 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [401  Unauthorized] ()
16:28:11,353 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 1) POST /management HTTP/1.1 [200  OK] ()

{code}

Comment 7 jjaggars 2012-05-24 14:35:43 UTC
The error refers to /etc/passwd, rather than the jboss user credentials. Is the user that you are using to run the script in /etc/passwd?  I assume that it is, but if so I'm not sure why the KeyError is thrown.

Comment 8 Rostislav Svoboda 2012-05-24 14:40:04 UTC
Man, I don't understand why are  you talking about /etc/passwd.

Just try it locally, download EAP ER8 [1], unzip it, add new user to ManagementRealm, run standalone.sh and jdr.sh when server is up.

[1] http://download.devel.redhat.com/devel/candidates/JBEAP/JBEAP-6.0.0-ER8/jboss-eap-6.0.0.ER8.zip

Comment 10 Jimmy Wilson 2012-05-24 15:50:35 UTC
Link: Added: This issue Cloned to JBPAPP-9141


Comment 11 jjaggars 2012-05-24 20:06:52 UTC
I have a pull request out that will work around this issue:

https://github.com/jbossas/jboss-as/pull/2375

Comment 12 Vladimir Rastseluev 2012-05-25 06:48:51 UTC
Link: Added: This issue relates to JBPAPP-9133


Comment 13 Shelly McGowan 2012-05-26 10:47:59 UTC
This pull request has been merged upstream. Assigning to Paul to pick up the fix onto the product branch.

Comment 14 Shelly McGowan 2012-05-26 10:47:59 UTC
Labels: Removed: eap6_need_triage 


Comment 15 Paul Gier 2012-05-28 23:54:05 UTC
Merged upstream commit to eap

Comment 16 Misty Stanley-Jones 2012-06-01 04:29:21 UTC
Release Notes Docs Status: Added: Not Yet Documented
Affects: Added: Release Notes


Comment 18 Misty Stanley-Jones 2012-06-01 04:53:47 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Not Required
Affects: Removed: Release Notes 


Comment 19 Rostislav Svoboda 2012-06-04 12:06:02 UTC
Verified on EAP 6.0.0 CR1

No error messages in logs

Comment 20 Rostislav Svoboda 2012-06-04 12:07:24 UTC
To be clear, JBPAPP-9133 issue is still present.

Comment 21 Anne-Louise Tangring 2012-11-05 17:55:51 UTC
Release Notes Docs Status: Removed: Not Required 
Docs QE Status: Removed: NEW 



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