Do shiny apps on shiny-server only log errors when R errors?

1,214 views
Skip to first unread message

Mitchell Gritts

unread,
Jul 11, 2016, 4:10:39 PM7/11/16
to Shiny - Web Framework for R

My app is on an AWS EC2 instance, the sample apps when installed create logs when errors occur. For instance, before I installed rmarkdown the rmarkdown document created a log in /var/log/shiny-server/, however the app I have included in /srv/shiny-server/sample-apps isn't creating logs.

Are logs only created when R code throws errors? My current error disconnects from server, put no log is created and I can't find errors messages except for in the javascript console.

Joe Cheng

unread,
Jul 11, 2016, 8:22:48 PM7/11/16
to Mitchell Gritts, Shiny - Web Framework for R
App log files are written but automatically deleted unless the R process exits abnormally (crashes, basically). Section 3.5.1 of the Shiny Server docs describes the preserve_logs directive, which prevents the automatic deletion.

What's the JS console say?

On Mon, Jul 11, 2016 at 1:10 PM Mitchell Gritts <mitchel...@gmail.com> wrote:

My app is on an AWS EC2 instance, the sample apps when installed create logs when errors occur. For instance, before I installed rmarkdown the rmarkdown document created a log in /var/log/shiny-server/, however the app I have included in /srv/shiny-server/sample-apps isn't creating logs.

Are logs only created when R code throws errors? My current error disconnects from server, put no log is created and I can't find errors messages except for in the javascript console.

--
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/344b25f1-d310-49c9-ac44-70fab3f8f35d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mitchell Gritts

unread,
Jul 13, 2016, 4:08:23 PM7/13/16
to Shiny - Web Framework for R, mitchel...@gmail.com
I fixed it following instructions for running behind a proxy. The error was similar to this GitHub issue

However, a websocket error persists over ethernet at work. I figure the error may be related to a firewall of some kind? 

sockjs-0.3.4.min.js:27 WebSocket connection to 'ws://52.42.52.251/sample-apps/telemetR/__sockjs__/n=0bC168YIu4I2h8Kddg/252/yanxpdex/websocket' failed: 
Error during WebSocket handshake: Unexpected response code: 400




Thanks
Reply all
Reply to author
Forward
0 new messages