我在使用nginx的DigitalOcean Ubuntu 14.04.5 Droplet上托管了flash-server。
Shiny服务器工作正常,但在重新启动Droplet以调整配置大小后停止工作。这个问题早些时候没有发生过。
我尝试使用start: Job failed to start
重启启动服务器,但我获得状态/srv/shiny-server/
。
当我访问
托管的Shiny应用时,我收到以下nginx错误。
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
闪亮服务器错误日志:
fs.js:439
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory '/var/run/shiny-server/shiny-server.pid'
at Object.fs.openSync (fs.js:439:18)
at Object.createPidFile (/opt/shiny-server/lib/core/fsutil.js:121:15)
at Object. (/opt/shiny-server/lib/main.js:82:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3
shiny-server.pid
处没有/var/run/shiny-server/
。
我的/etc/shiny-server/shiny-server.conf
设置:
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
sanitize_errors off;
# Define a server that listens on port 3838
server {
listen 3838;
# Define a location at the base URL
location / {
run_as shiny;
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
}
}
我不确定问题是什么。尝试搜索在线论坛,但没有运气!请帮忙。谢谢!
答案 0 :(得分:0)
创建文件夹sudo mkdir /var/run/shiny-server
,然后为Shiny用户sudo chown shiny:shiny /var/run/shiny-server/