Bug 900519 (JBPAPP6-839)
Summary: | Jdr utility logs unexpected errors | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Rostislav Svoboda <rsvoboda> | ||||
Component: | Scripts and Commands | Assignee: | Paul Gier <pgier> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
Severity: | urgent | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 6.0.0 | CC: | jawilson, jjaggars, rsvoboda, vrastsel | ||||
Target Milestone: | --- | ||||||
Target Release: | EAP 6.0.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://jira.jboss.org/jira/browse/JBPAPP6-839 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-06-04 12:06:02 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Rostislav Svoboda
2012-05-24 11:57:48 UTC
Labels: Added: eap6_need_triage 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. 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} Attachment: Added: sosreport-rosta-ntb-20120524162028.zip 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 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} 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. 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 Link: Added: This issue Cloned to JBPAPP-9141 I have a pull request out that will work around this issue: https://github.com/jbossas/jboss-as/pull/2375 Link: Added: This issue relates to JBPAPP-9133 This pull request has been merged upstream. Assigning to Paul to pick up the fix onto the product branch. Labels: Removed: eap6_need_triage Merged upstream commit to eap Release Notes Docs Status: Added: Not Yet Documented Affects: Added: Release Notes Release Notes Docs Status: Removed: Not Yet Documented Added: Not Required Affects: Removed: Release Notes Verified on EAP 6.0.0 CR1 No error messages in logs To be clear, JBPAPP-9133 issue is still present. Release Notes Docs Status: Removed: Not Required Docs QE Status: Removed: NEW |