RStudio Server Initialization Error: Status code 500 returned - r

When I login to RStudio server installed as an Amazon Machine Image, I, I see the message "RStudio Server Initialization Error" and "Status code 500 returned," as in the screenshot. When I click OK, nothing changes.
What does this mean and how can I fix this?

Refer the following link. It will guide you about the complete installation of R-Studio Server along with required dependencies.
Automated Installation of R-Studio Using Shell Script

It would be useful if you could state which version of RStudio Server you are using. Neverthless, you can try the following:
Install the most recent version using: wget http://download2.rstudio.org/rstudio-server-0.98.1103-amd64.deb. If you want 32-bit version wget http://download2.rstudio.org/rstudio-server-0.98.1103-i386.deb.
Delete the startup files (.Rprofile, .Renviron, and .RData) from your initial working directory, which should be user's home.
Check if you can run R from command line and if your are getting any error messages - fix that first

Related

devtools::install_github("imbs-hl/ranger") fails - make.exe and sh.exe unable to start correctly

I'm trying to install the development version of the R library ranger from RStudio on Windows 7 with the command:
devtools::install_github("imbs-hl/ranger")
When I try this, I first get a pop-up with the header "make.exe - Application Error" and the message "The application was unable to start correctly (0xc000007b)."
I then get a message saying that I need to install additional build tools. This downloads RTools. I then get an identical pop up like the make.exe one, except that this time it's for sh.exe. After I click ok, it then does a somewhat long install of RTools. The setup window closes and the development packages remain uninstalled.
Note: when I run either sh.exe or make.exe from the windows command line, I get the same errors. This might have something to do with the fact that I have cygwin installed.
I can get sh.exe and make.exe to run from the windows command line if I remove RTools from the path, leaving only cygwin. However, this doesn't change the problem I get when I try installing the development version of ranger.
Any help would be appreciated.

How to run GUI via remort server

I'm using Qtcreator to make GUI.
Ideally, I build the project in my local pc (CentOS virtual terminal),
and move it to remort server(CentOS).
Finally, I want to run it in windows system via X server(VcXsrv i use).
As operation verification, I create a new file and build as it is.
At first, it generates many errors in remort server, such as "./test: /lib64/libc.so.6: version GLIBC_2.14 not found (required by /users/my/Qt/5.9.1/gcc_64/lib/libQt5Gui.so.5)".
I don't have root permission and can't update /lib64/, so download latest lib64 to my directory, and add to LD_LIBRARY_PATH.
Previous error is solved but the error message "segmentation fault (core dumped)" comes to appear.
Why this problem occur even though it is a raw project?
Can anyone help me to solve the problem?
so download latest lib64 to my directory, and add to LD_LIBRARY_PATH. Previous error is solved but the error message "segmentation fault (core dumped)" comes to appear.
That will never work. This answer explains what you should do instead.

Robot Framework AutoitLibrary run command does not fail but does not open the application

I am having an issue that notepad.exe is not getting opened. The run command itself is successful according to the log. But Nothing is opening. I have just installed AutoItLibrary with pip and downloaded and installed Autoit on my machine. My path is only to Python and Python Scripts directory. I have no other components running. Do I have to have any other thing done? have the code Library|AutoitLibrary |Run|notepad.exe |Send|'abc' Send fails saying no such keyword found. I do not see the notepad opening at any point. I also tried wait for the window where it just waits until time out and comes out without the notepad getting opened.
Got it figured out. A Pip install is not doing the full job. I had to download the distro zip file and run the setup install.

Jupyter Notebook Extensions Fail to Load

I am running Ubuntu 14.04 in virtual box with a recent anaconda install. I installed jupyter notebooks using conda. I have followed all of the documentation that I can find online to install notebook extensions but they fail to load with the error messages listed below. The first error is from the jupyter notebook app running in a terminal and the second error is in the chrome java console. Notice that I cannot post this question with this many hyperlinks so I remove the "p" from "http" in my error messages.
[W 07:02:06.451 NotebookApp] 404 GET
/nbextensions/python-markdown.js?v=20150904070147 (127.0.0.1) 8.47ms
referer=htt://localhost:8888/notebooks/Untitled.ipynb
htt://localhost:8888/nbextensions/python-markdown.js?v=20150904070147
Failed to load resource: the server responded with a status of 404
(Not Found)
To detail my installation method: I cloned the git repository [IPython-notebook-extensions][1] and used the command jupyter-nbextension install python-markdown inside the IPython-notebook-extensions/usability/ folder. I then enabled the extension with jupyter-nbextension enable python-markdown. I ran these commands as superuser as well.
After this failed I installed this extension inside python (from the usability/ directory of the repository) using:
import notebook
notebook.install_nbextension('python-markdown',user=True)
E=notebook.nbextensions.EnableNBExtensionApp()
E.enable_nbextension('python-markdown')
I also tried this as the superuser without the parameter user=True.
I have confirmed that the files copied to both /usr/local/share/jupyter/nbextensions/python-markdown and ~/.local/share/jupyter/nbextensions/python-markdown. The extension is enabled in the ~/.jupyter/nbconfig/notebook.json file. Finally, I also deleted the chromium and mozilla cache (by deleting the folders in the ~/.cache directory) multiple times while trying this.
Solved here: https://github.com/ipython-contrib/IPython-notebook-extensions/issues/282. The ~/.jupyter/nbconfig/notebook.json file must be edited to use python-markdown/main instead of python-markdown.
More generally this kind of error can also happen after you've upgraded Jupyter/Python/etc and some of the extensions are not supported by your updates. You can then just disable them from the Nbextensions configuration tab - you may find that they're the extensions that are shown as incompatible - which can be disabled by ticking the 'disable configuration for nbextensions without explicit compatibility' checkbox.

Error in browser: The application unexpectedly exited. Diagnostic information has been dumped to JavaScript error console while using shiny-server

I'm trying to deploy a shiny web app on shiny-server. But everytime it gives the error :
"The application unexpectedly exited. Diagnostic information has been dumped to JavaScript error console"
The error shown in the error console is as follows:
"Listening on http://127.0.0.1:58865
Error in library(htmlwidgets) : there is no package called ‘htmlwidgets’".
I have installed the package 'htmlwidgets' on my machine. Still it always shows the error. the application works file in Rstudio but it is giving this error on browser when I run it on Shiny-server. Please suggest a solution.
Thanks.
Please read http://rstudio.github.io/shiny-server/latest/#run_as In particular, please note this:
For one, the paths in which R will look for packages (.libPaths()) are often user-dependent.
One way to solve the problem is, just like how you installed shiny, you may also install htmlwidgets to system-wide library paths, e.g.
sudo su - \
-c "R -e \"install.packages('htmlwidgets', repos='http://cran.rstudio.com/')\""

Resources