admin@glassfish.java.net

3.1 Change Request

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Fri, 07 Jan 2011 10:28:26 -0800

It could not possibly work without what we refer to as a "remote" call.
It absolutely positively needs to contact the running server.

In my hands "restart-local-instance" fails 100%.

Two c

   1. Change the call to 'uptime' to use the local-password
   2. Change the implementation of uptime (in the backend) to call the
      instance on behalf of the user.

#2 has a huge penalty -- you are forced to have DAS running. No such
restriction with #1

======================

I'm now going to create the issue and paste info from this thread into it.


On 1/7/2011 6:11 AM, Tim Quinn wrote:
> Byron and Paul,
>
> Is restart-local-instance (emphasis on "local") expected to work
> remotely by specifying a remote --host value?
>
> For that matter, should start-local-instance and stop-local-instance
> work that way?
>
> - Tim
>
> On Jan 7, 2011, at 2:42 AM, Byron Nevins wrote:
>
>> RemoteAdminCommand, line 652 calls connect() on the URL. 403 is
>> returned.
>>
>> It sounds like the watch dogs are not allowing restart-local-instance
>> to pass.
>>
>> Tim???
>>
>>
>> On 1/6/2011 11:57 PM, Byron Nevins wrote:
>>>
>>> What's "das-host" resolve to? What if you set the host to localhost
>>> - or just use the default?
>>>
>>> Please file an issue.
>>>
>>>
>>> On 1/6/2011 5:48 PM, Paul M Davies (Oracle) wrote:
>>>> Hi,
>>>>
>>>> I'm running a private build of GF 3.1 that I created last week and
>>>> when I try to run restart-local-instance remotely from the DAS, I
>>>> get an error 403, despite having enabled secure admin for and
>>>> restarted the DAS:
>>>>
>>>> $ *asadmin --host das-host restart-local-instance --node sj01
>>>> yml-i1*
>>>> HTTP connection failed with code 403, message: Forbidden
>>>> Command restart-local-instance failed.
>>>>
>>>> However, I can start the instance OK, then stop and start it
>>>> without problems:
>>>>
>>>> $ *asadmin --host das-host list-instances*
>>>> yml-i1 running
>>>> Command list-instances executed successfully.
>>>> $ *asadmin --host das-host stop-local-instance --node sj01 yml-i1*
>>>> Waiting for the instance to stop ....
>>>> Command stop-local-instance executed successfully.
>>>> $ *asadmin --host das-host start-local-instance --node sj01 yml-i1*
>>>> CLI801 Instance is already synchronized
>>>> Waiting for yml-i1 to start ..............
>>>> Successfully started the instance: yml-i1
>>>> instance Location: /export/glassfish3/glassfish/nodes/sj01/yml-i1
>>>> Log File:
>>>> /export/glassfish3/glassfish/nodes/sj01/yml-i1/logs/server.log
>>>> Admin Port: 24849
>>>> Command start-local-instance executed successfully.
>>>>
>>>> Have I uncovered an issue here with restart-local-instance?
>>>>
>>>> Thanks!
>>>> -Paul
>>>> --
>>>>
>>>>
>>>>
>>>> <mime-attachment.gif> <http://www.oracle.com>
>>>> Paul Davies| Principal Technical Writer| +1.408.276.3413
>>>> Oracle GlassFish Server Documentation
>>>> 4140 Network Circle, Santa Clara CA 95054, USA
>>>>
>>>> <mime-attachment.gif> <http://www.oracle.com/commitment> Oracle is
>>>> committed to developing practices and products that help protect
>>>> the environment
>>>>
>>>>
>