2017-02-15 5 views
3

운영 체제가 우분투입니다.R 스튜디오에서 실행 중이지만 Shiny 서버에서는 실행되지 않는 앱

rstudio에서 반짝이는 앱을 성공적으로 실행합니다.

반짝이는 서버 파일의 모든 파일을 복사했습니다. 내가 로그에 갈 때

ERROR: An error has occurred. Check your logs or contact the app author for clarification. 

그러나 나는 특정 앱 로그인 찾을 수 없습니다 : 나는 반짝 서버에서 응용 프로그램을 실행하려고 할 때하지만 브라우저에서이 오류를 참조하십시오.

이런 종류의 문제에 대한 해결 방법이 있습니까?

+0

에서

어쩌면이 도움이 될 수 : http://stackoverflow.com/questions/39377437/accessing-error-log-in-shiny-server-deployed-on-aws-instance – MLavoie

+0

당신의 대답에 대해 @ Labavie 감사합니다. 같은 것을 발견했지만 3 개의 다른 파일에 shiny-server.conf 파일이 있습니다. 어떤 경로에서 이걸 대체해야하고 어떻게 반짝이 서버를 다시 시작할 수 있습니까? (우분투 시스템 만 다시 시작하면됩니다.) – Niemik

+0

"sudo service shiny-server restart"를 사용하여 다시 시작하고 올바르게 기억한다면 내가 변경 한 것) /etc/shiny-server/shiny-server.conf에있는 것을 설정하십시오. – MLavoie

답변

0

나는 대답 할 수 없다. 앱이 서버에 설치해야하는 패키지가 모두 있습니까?

R 프로세스가 성공적으로 끝나면 로그가 저장되지 않으며 패키지가 설치되지 않은 경우에도 포함되는 로그가 올바르게 기억됩니다. Shiny Server Configuration Guide

A log file will be created for each R process when it is started. However, if a process closes successfully, the error log associated with that process will be automatically deleted. The only error log files that will remain on disk are those associated with R processes that did not exit as expected.

You can override this behavior using the preserve_logs configuration option. If you set preserve_logs true; in your configuration file, Shiny Server will never delete the logs from your R processes, regardless of their exit code. Be aware that this will cause log files to accumulate very quickly on a busy server. This setting is only recommended for debugging purposes; if it were to be enabled on a production server, you would need to pay close attention to the rotation and archiving of logs to prevent your file system becoming overwhelmed with log files.