Error: standard in must be a tty

496 views
Skip to first unread message

Robbie Edwards

unread,
Jul 26, 2013, 11:54:50 AM7/26/13
to shiny-...@googlegroups.com
Hi,

So I'm trying to get a new shiny server up and running.  Using the tutorial app http://rstudio.github.io/shiny/tutorial/#hello-shiny, I can enter R, use runApp() and it works perfectly.

However, when I try to run shiny-server from the command line, I get the error:

An error has occurred...

standard in must be a tty

The log file only reads the same.  No idea where to start to debug this.  Can anyone provide some direction?

robbie


Joe Cheng

unread,
Jul 26, 2013, 1:46:30 PM7/26/13
to shiny-...@googlegroups.com
What Linux distro are you using? Are you running shiny-server from SSH? Can you tell us the exact command you entered to run shiny-server?



robbie


--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Robbie Edwards

unread,
Jul 26, 2013, 2:18:45 PM7/26/13
to shiny-...@googlegroups.com
OS is Centos 6.4.

I'm running shiny-server from my bash prompt.  Literally, $shiny-server.

I think the only unusual thing about my setup is that I set run_as to be my user name and put the site_dir in a subfolder in my home directory.  

Thanks for the help.

Is there a logging level flag somewhere I missing to get more information?

robbie

Joe Cheng

unread,
Jul 26, 2013, 3:31:46 PM7/26/13
to shiny-...@googlegroups.com
If you're using 0.3.6 of shiny-server or earlier, you need to run it as root--I bet that's the problem.

(The version of shiny-server on GitHub won't require root, but it's not quite to the point that we'd recommend it for production deployments.)


Robbie Edwards

unread,
Jul 29, 2013, 11:45:43 AM7/29/13
to shiny-...@googlegroups.com
Yea, works when run as root.  Thanks for your help.

John

unread,
Nov 11, 2013, 3:22:15 AM11/11/13
to shiny-...@googlegroups.com
hi Joe,  I catch the same error by starting shiny with a common user.  However I donot have root priviledges, any suggestion?

my environment:
[2013-11-11 15:11:36.564] [INFO] shiny-server - Shiny Server v0.3.6 (Node.js v0.8.20)
[2013-11-11 15:11:36.565] [INFO] shiny-server - Using config file "/xxx/etc/shiny-server/shiny-server.conf"
[2013-11-11 15:11:36.589] [INFO] shiny-server - Starting listener on 0.0.0.0:8100
Reply all
Reply to author
Forward
0 new messages