How to build a personnal 503 error page ?

109 views
Skip to first unread message

Grégoire Vincke

unread,
Aug 31, 2015, 8:04:38 AM8/31/15
to Shiny - Web Framework for R
Hi all,

I have installed the free version of shiny-server on a Debian server.
Debian 7
R 3.2.2
Shiny 0.11.1
Shiny-server  ?? (command to have version is ?)

I built a shiny-based map multi-language application concerning pigeon racing in Belgium.
URL : http://www.yapluka.be/sapps/beprmap/
Code available here : https://github.com/gvincke/beprmap

Google analytics record arround 100 visits per day, but since some month i have some 503 errors.
The code of the page sended by the server is like this :
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.
</p>
<hr>
<address>Apache/2.2.22 (Debian) Server at www.yapluka.be Port 80</address>
</body></html>

If i have well understood this is due to concurrent sessions wich have raised the maximum. So the next user will receive this 503 error since a concurent session die and allows a new user to lounch the application.
I am right ?

So if went to the manual at the section http://rstudio.github.io/shiny-server/latest/#simple-scheduler and set as described :
simple_scheduler 15;

Question : what is the maximum level of this parameter ?

Now I want to know how i can build a personnal 503 error page saying to the user that the server have reached the maxium number of concurent sessions, and that he have to come back later.

Any suggestions ?

Thanks a lot,

Gregoire

Grégoire Vincke

unread,
Oct 14, 2015, 4:08:51 AM10/14/15
to Shiny - Web Framework for R
Hi,

Still have my 503 issue.
The only solution for me actually is to each time stop and restart my shiny server, but this is not quite a stable solution.
How can i do for that server to stop to go 503 ?

Thanks a lot for your help,

Grégoire

Joe Cheng

unread,
Oct 14, 2015, 10:04:01 AM10/14/15
to Grégoire Vincke, Shiny - Web Framework for R
Are you proxying through Apache? That message looks like it's coming from Apache, not Shiny Server?
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/0dae724a-8f4e-4a84-8bc6-22c67fe90099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Grégoire Vincke

unread,
Oct 15, 2015, 7:28:02 AM10/15/15
to Shiny - Web Framework for R, gregoir...@gmail.com
Hi Joe,

Yes i am proxying shiny through Apache.
But apache is working very well, I to solve this problem the only thing i have to do is to stop shiny-server and start it again. I do not have to do any stuff to Apache.
I think that as the documentation said shiny-server is going 503 because of too much corrurrent sessions, so Apache also.

But you'r right, regarding to my initial question (How to build a personnal 503 page, as soon as the 503 final message is delivered by Apache i should have a look in their documentation, not in yours.

But by the way I want to be sure to really understand why shiny-server is going down.
I was thinking that the simple_scheduler could help me but it don't.
I's written in your documentation that it's default value is 100 but it does not tell what is the accepted maximal value to set it, and in my case, i do not understand why shiny-server goes down (forcing Apache to print 503) when i set it to 100.
What i understand is that it's quite impossible to put animations online with the free edition of the server if they are pottentially interesting for many users at a the same time.
Am i correct ?

Thanks for your help.

Grégoire
Reply all
Reply to author
Forward
0 new messages