admin@glassfish.java.net

Re: restart-local-instance gives error 403

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

It's broken 100% for me -- parameters don't matter.


On 1/7/2011 9:39 AM, Joe Di Pol wrote:
> On 01/ 7/11 06: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?
>
> I'm pretty sure Paul was running these commands directly on the
> instance host.
> The "--host" option should not have been used. Paul is going to re-run
> without --host to see what the behavior is.
>
>
>>
>> - 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
>>>>>
>>>>>
>>
>