Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable debug logs in shiny server. #4121

Open
kapoorakansha opened this issue Sep 3, 2024 · 2 comments
Open

How to enable debug logs in shiny server. #4121

kapoorakansha opened this issue Sep 3, 2024 · 2 comments

Comments

@kapoorakansha
Copy link

We have a web-based Shiny server application that is used to copy files in a virtual machine from Azure.

As a user, after visiting the application, I encounter an error in the UI showing Disconnected from Server with a reload option. How to enable debug logs in shiny server.

Upon further inspection in the developer tools (Chrome) in console, I can see the message:
“The application unexpectedly exited. Diagnostic information is private. Please ask your system admin for permission if you need to check the R logs.”

image

I would appreciate if someone could let us know how to enable the debug logs in shiny server suggestions and how we should monitor R logs to diagnose this issue. If anyone has faced a similar issue with their Shiny app, your help would be greatly appreciated.

@jcheng5
Copy link
Member

jcheng5 commented Sep 3, 2024

The full documentation for the logging features of Shiny Server are here: https://docs.posit.co/shiny-server/#logging-and-analytics

but the TL;DR is that the application logs are in /var/logs/shiny-server/*.log.

@kapoorakansha
Copy link
Author

@jcheng5 Thank you for the suggestion provided. However, after adding the line "env SHINY_LOG_LEVEL=DEBUG" in etc/shiny-server.conf and post stopping and starting the shiny-server service we are getting error while starting the service.
image

Also, the conf file in our case is not present in the location /etc/init instead it is directly present under /etc/shiny-server folder.

Please suggest on the next steps to be followed in order to view the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants