I am hosting a shiny server on Ubuntu 16.04, and am using Ngnix for authentication. The server worked fine until recently it only stopped allowing multiple user use it at the same time. When a new user logs in, both the new user and the user currently using it will be kicked out, and whoever refresh the web page first will get in, and both users will be kicked out again once another person tries to get in. The screen will just grey out and "Disconnected from server" will show up in the bottom left corner.
There is no error in the log, the following will show up in the browser console. I haven't made any changes to the code in a long time, the only changes I made recently was updating R from 3.3 to 3.4 and R studio to the latest version last week. I also installed the latest version of shiny server after encountering this problem.
Any help will be much appreciated!
Thanks.
EDIT: I updated all the packages and removed all database connections, still no luck. I also tried a simple shiny app, which works for multiple users, so the problem should be with my shiny server. However, I haven't made any changes to my code for a month already. The latest log I checked had this line at the botton:
8066 Segmentation fault (core dumped) R --no-save --slave -f /opt/shiny-server/R/SockJSAdapter.R
Related
R version: 4.0.3
RStudio version: 1.3
Windows 10, 1909
At my work I have to use OneDrive to store all my files and R scripts. This has worked fine up until recently. Now I get an error message when trying to save or modify an R script. I can create a new script and save it once, but if I try to make changes and save it again the error prevents me from doing so.
The error message in RStudio is:
"The create operation failed because the name contained at least one mount point which resolves to a volume to which the specified device object is not attached"
Not the most helpful error message.
The same behavior happens in R itself, but the error message just says it cannot save.
I have seen some talk online about this being related to that latest Windows 10 version (1909), but I started to experience the issue about 2 weeks before my computer updated to 1909. Besides, my work will not allow a roll back to the previous version.
Microsoft's OneDrive team failed to provide any help on this because they see it as an error on the R/RStudio side.
Anyone else experiencing this? Any solution?
Recently I swapped my personal PC with admin rights to my employee's PC, where we use AD to log in and where I do not hold admin rights.
Since that event, I have trouble running my R code. I currently develop Shiny app. Each time I click "Run app", two things appear to behave differently versus my old setup.
First of all, I can run app only once - after that, the Rstudio is busy forever, suppressing me from running app again, accessing data frames created by my app and so on. So after each test of some changes, I literally have to reset entire RStudio.
Secondly, despite the fact that I have set my working directory to "C:/Users/mylogin/Documents", after restarting R, there are no global variables visible, event after saving workspace image. I used to use global variables to debug my app after closing it. Of course I can rewrite entire code to, for example, dump all the tables to different files.
My question is: is it possible, that this behavior is related to not having admin rights on my current PC? Or is it related to another issue and if so - may someone provide me some help in that matter? I have little to no knowledge about debugging Rstudio.
Setup: Win 10 64bit, R version 4.0.2 (2020-06-22) Rstudio desktop, 1.3.1093, Apricot Nasturtium.
For future generations: the problem perished, without any particular reason, quite frustrating that we will never know the answer.
I have a small .bat script that runs an app using "Rscript" when the user logs in. After some time, the application / server becomes unavailable. There is no error, the page only loads for forever. When the app is started manually through RStudio there is no problem with the access to the app even after days of running. Any idea what causes this and how to solve it?
I think this will help you. It is supposed to be the correct way to launch a R Shiny app.
R -e "shiny::runApp('~/shinyapp')"
(1st result on Google ... Pardon my tone, but have you searched for this before to ask Stackoverflow how to deal with this problem?)
I am currently running R on a Microsoft Azure instance (Ubuntu virtual machine) using RStudio as my IDE, to which I connect simply through my browser. I am trying to run some commands that take quite some time to complete from within RStudio and figured that I could simply close my tab with RStudio open and the process would keep running. However, when I try to reconnect to see how the process is doing, the page keeps loading but I am unable to see RStudio.
I have a few questions regarding running RStudio on a server:
First, am I correct in thinking that I can close my tab and keep the process running?
Second, is it normal behaviour that I am unable to connect to the server while the process is running?
Third, am I going about this the correct way or are there better ways?
Yes, you can close your tab and keep it running.
RStudio Server waits on updates from the R process to update the UI. This means that if you have a long-running computation, your tab may not fully reload until it's finished. You may also have seen this in the middle of a session: when R is busy, you can have problems saving scripts that are open in the editor pane.
Logging out in the middle of a computation should be safe, but be aware that RStudio will save your workspace and shut R down after a period of inactivity. It then reloads everything when you log back in. But this only extends to objects in memory; if you have any files saved in your temp directory, they'll have disappeared when you come back. They're probably still on the disk, but since your new R session has a new temp directory, you'll have to do a manual search for them.
I installed Meteor (p.s I'm new to app developement) onto my laptop (running Windows 10) and have created an app for which I have downloaded packages for (materialize, accounts-ui and passwords). The problem that I'm facing is that whenever I make changes to the html,css or js files, I get "client-modified" on my terminal, but it never actually refreshes. It's just stuck there in a loop after no matter how many modifications I make. Is this due to the current Meteor version I have installed (1.2.1)?
=> Client modified -- refreshing
This happened to me also, yesterday and today, that's how I found this question.
My observations are:
check if the app is running and working despite the apparent hang. If it does, try making a simple change in a html or template file and see if the app auto-updates. It did for me, but your mileage may vary.
If it gets too annoying, you can always just kill and restart the app. Shouldn't take too long. Check if this improves the situation.
If 2. does not help you may try "meteor reset" to clean things up, but ONLY if you just started developing your app and don't care about losing any app data (MongoDB get's wiped along with the rest of the /.meteor/local folder)
Hope the above helps...
Norbert