admin@glassfish.java.net

Re: restart-local-instance gives error 403

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Thu, 06 Jan 2011 23:57:37 -0800

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
> --
>
>
>
> Oracle <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
>
> Green Oracle <http://www.oracle.com/commitment> Oracle is committed
> to developing practices and products that help protect the environment
>
>