简体   繁体   中英

Shiny server: application failed to start

I have installed the shiny server on another ubuntu ip and using it through putty on windows. But the application is failing to start as you can see on the right column (An error has occured in bold). What configuration should I make to start the application on the shiny server? Please help.

I have opened the whole path to the R file in linux and the permissions are granted to the R file. Still not working.

Moreover, when I try to open the shiny-server.config file in etc/shiny-server/shiny-server.config , it shows:

[2015-08-19 12:13:59.666] [INFO] shiny-server - Shiny Server v1.4.0.721 (Node.js v0.10.21)

[2015-08-19 12:13:59.669] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2015-08-19 12:13:59.750] [ERROR] shiny-server - Error loading config: The user 'hadoop' does not have permissions to run applications as one of the users in 'shiny'. Please restart shiny-server as one of the users in  'shiny'. (/etc/shiny-server/shiny-server.conf:2:1)
[2015-08-19 12:13:59.751] [INFO] shiny-server - Shutting down worker processes

在此输入图像描述

The line Error loading config: The user 'hadoop' does not have permissions to run applications as one of the users in 'shiny'. Please restart shiny-server as one of the users in 'shiny'. (/etc/shiny-server/shiny-server.conf:2:1) Error loading config: The user 'hadoop' does not have permissions to run applications as one of the users in 'shiny'. Please restart shiny-server as one of the users in 'shiny'. (/etc/shiny-server/shiny-server.conf:2:1) Error loading config: The user 'hadoop' does not have permissions to run applications as one of the users in 'shiny'. Please restart shiny-server as one of the users in 'shiny'. (/etc/shiny-server/shiny-server.conf:2:1) says that you are trying to start shiny-server as a user named hadoop and this is not possible because the only user who can start this shiny-server is shiny and this is written in the second line of /etc/shiny-server/shiny-server.conf file. Try to edit beggining of this file from

# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;

to

# Instruct Shiny Server to run applications as the user "shiny"
run_as hadoop shiny;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM