accessing @status

345 views
Skip to first unread message

Alexander Strebkov

unread,
Mar 2, 2010, 6:51:50 AM3/2/10
to play-framework
Hi all,

I've a problem accessing http://localhost:9000/@status. "Not
authorized".
Same if I run "play status":
~ Cannot retrieve the application status... (503)

This is probably because my ip is resolved as 0:0:0:0:0:0:0:1%0
(request.remoteAddress contains this). I guess it is possible to fix
that somewhere in OS X but... Anyway, is there a way to specify ip
address(es) able to access @status? This could be useful for
production too.

Alexander

Guillaume Bort

unread,
Mar 2, 2010, 7:36:20 AM3/2/10
to play-fr...@googlegroups.com
There is a --url option that let you specify the exact address of your
server.

On 2 mars 2010, at 12:51, Alexander Strebkov <alexande...@gmail.com
> wrote:

> --
> You received this message because you are subscribed to the Google
> Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en
> .
>

Alexander Strebkov

unread,
Mar 2, 2010, 8:21:43 AM3/2/10
to play-framework
It is not about server url. I can access any page like http://localhost:9000/@api
or any other application page. But not /@status. I think it is
protected by some ip filter or something. Is it configurable?

On Mar 2, 3:36 pm, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> There is a --url option that let you specify the exact address of your  
> server.
>

> On 2 mars 2010, at 12:51, Alexander Strebkov <alexanderstreb...@gmail.com
>
>
>
>  > wrote:
> > Hi all,
>
> > I've a problem accessinghttp://localhost:9000/@status. "Not

Guillaume Bort

unread,
Mar 2, 2010, 10:08:20 AM3/2/10
to play-fr...@googlegroups.com
> I think it is
> protected by some ip filter or something. Is it configurable?

It is not protected by IP. It uses the secret key to sign the request.

That's normal that you can't access directly to the @status url using
a browser. It is protected.

From the code of the CorePlugin, 503 means that the application is not started:

if (!Play.started) {
response.status = 503;
response.print("Not started");
return true;
}

In DEV mode you need to run a first request to start the application.

Alexander Strebkov

unread,
Mar 2, 2010, 10:41:40 AM3/2/10
to play-framework
Ahh... Understood. Thanks for explanation!
I just thought @status url intended to work as well. The rest is my
imagination.

On Mar 2, 6:08 pm, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> > I think it is
> > protected by some ip filter or something. Is it configurable?
>
> It is not protected by IP. It uses the secret key to sign the request.
>
> That's normal that you can't access directly to the @status url using
> a browser. It is protected.
>
> From the code of the CorePlugin, 503 means that the application is not started:
>
>             if (!Play.started) {
>                 response.status = 503;
>                 response.print("Not started");
>                 return true;
>             }
>
> In DEV mode you need to run a first request to start the application.
>
> On Tue, Mar 2, 2010 at 2:21 PM, Alexander Strebkov
>
>
>

> <alexanderstreb...@gmail.com> wrote:
> > It is not about server url. I can access any page likehttp://localhost:9000/@api

Reply all
Reply to author
Forward
0 new messages