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.
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