Bug 778507 (SOA-980) - /bin/shutdown.sh and jboss_init_redhat.sh - inconsistencies in required username/password
Summary: /bin/shutdown.sh and jboss_init_redhat.sh - inconsistencies in required usern...
Keywords:
Status: CLOSED WONTFIX
Alias: SOA-980
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Documentation, Tooling, JBossESB, EAP
Version: 4.3 CR1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: FUTURE
Assignee: Jim Ma
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-24 17:51 UTC by Len DiMaggio
Modified: 2011-06-15 14:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
4.3 CR1
Last Closed: 2011-06-15 14:37:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 777710 0 urgent CLOSED jboss_init_redhat.sh - fails to shutdown service 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 778942 0 medium CLOSED bin/shutdown.sh and jboss_init_redhat.sh - inconsistencies in required username/password 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBPAPP-3194 0 Major Open jboss_init_redhat.sh needs to be more robust 2013-07-19 05:35:44 UTC
Red Hat Issue Tracker SOA-980 0 Minor Closed /bin/shutdown.sh and jboss_init_redhat.sh - inconsistencies in required username/password 2013-07-19 05:35:43 UTC

Internal Links: 777710 778942

Description Len DiMaggio 2008-10-24 17:51:57 UTC
Affects: Documentation (Ref Guide, User Guide, etc.)
Date of First Response: 2008-10-27 06:23:05
project_key: SOA

The shutdown.sh script fails with the same JMX authentication error that was originally seen in SOA-226

But - there is an easy workaround - this works:   sh ./jboss_init_redhat.sh stop

Comment 1 Len DiMaggio 2008-10-24 17:52:08 UTC
Link: Added: This issue is related to SOA-226


Comment 2 Julian Coleman 2008-10-27 10:23:05 UTC
If run:
  shutdown.sh -S
I see an authentication error:
  Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console

However, after uncommenting the:
  #admin=admin
line in:
  server/production/conf/props/soa-users.properties
to enable access to the JMX console and running:
  shutdown.sh -S -u admin -p admin
the server shuts down cleanly:
  Shutdown message has been posted to the server.
  Server shutdown may take a while - check logfiles for completion
and on the server console:
  Shutdown complete
  Halting VM



Comment 3 Len DiMaggio 2008-10-27 15:38:44 UTC
The problem here is that the jboss_init_redhat.sh script requires the use of an OS username/password, while the shutdown.sh requires the use of a user defined in /server/*/conf/props/soa-user.properties

This difference is due to EAP's updating the jboss_init_redhat.sh script to post a signal to the server, while, shutdown.sh still uses the JMX console.

So - the user must:

1) For the service init script, either edit the script to reference the desired OS user or let it default to "jboss" (assuming that a "jboss" OS user exists and is used to start the service.

2) The samename user can be used to stop the server with the "stop" option

3) For the shutdown script, specify the user on the command line (-u username -p password) and ensure that the user is defined in the server's conf/props/soa-user.properties file



Comment 4 Len DiMaggio 2008-10-27 15:38:44 UTC
Affects: Added: [Documentation (Ref Guide, User Guide, etc.)]


Comment 5 Len DiMaggio 2008-10-27 16:04:29 UTC
Link: Added: This issue depends JBPAPP-1346


Comment 6 Julian Coleman 2009-01-15 10:19:50 UTC
Moving this to SOA 4.3.0 CP02, as the related EAP fix will be in EAP 4.3.0 CP04.


Comment 7 Len DiMaggio 2009-06-18 13:32:57 UTC
Link: Added: This issue related SOA-1376


Comment 8 Henrik Aronsen 2009-12-01 12:26:48 UTC
Link: Added: This issue related JBPAPP-3194



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