I have an error, where I cant find anything related to it on the www:
The error pops up everythime I start/login into Rstudio-Server(installed on an Linux-Server). It worked for month.
05 Jan 2016 07:13:38 [rsession-me] ERROR system error 24 (Too many open files); OCCURRED AT: core::system::file_monitor::Handle core::system::file_monitor::detail::registerMonitor(const core::FilePath&, bool, const boost::function<bool(const core::FileInfo&)>&, const core::system::file_monitor::Callbacks&) /home/ubuntu/rstudio/src/cpp/core/system /file_monitor/LinuxFileMonitor.cpp:455; LOGGED FROM: void session::module_context::<unnamed>::onMonitoringError(const core::Error&) /home/ubuntu/rstudio/src/cpp/session/SessionModuleContext.cpp:360
I tried:
sudo rstudio-server suspend-all
sudo rstudio-server stop
sudo rstudio-server restart
But the error still pops up.
Related
I used different rocker images without (almost) any problems formerly, but now I cannot connect to my container derived from rocker/rstudio:4.2.1 (9cb48eb2f045) which is latest at the moment. The browser says unable to connect and the docker logs show the following messages:
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to ''.
rserver[283]: ERROR system error 1 (Operation not permitted) [path: /var/lib/rstudio-server/offline]; OCCURRED AT bool rstudio::core::FilePath::exists() const src/cpp/shared_core/FilePath.cpp:886; LOGGED FROM: bool rstudio::core::FilePath::exists() const src/cpp/shared_core/FilePath.cpp:886
2022-08-02T16:21:32.097617Z [rserver] ERROR system error 1 (Operation not permitted) [path: /var/lib/rstudio-server/offline]; OCCURRED AT bool rstudio::core::FilePath::exists() const src/cpp/shared_core/FilePath.cpp:886; LOGGED FROM: bool rstudio::core::FilePath::exists() const src/cpp/shared_core/FilePath.cpp:886
The host system is a Oracle Linux Server release 7.7.
sestatus says SELinux status: disabled btw.
On Debian (testing) everything is running fine.
Earlier versions (e.g. rocker/rstudio:4.2.0 8325ff274512) are also working fine.
Any ideas about it?
I installed RStudio on Linux server Ubuntu 18.04 and I couldn't access it from browser. I used
:8787 and I got the error
This site can’t be reached
ERR_CONNECTION_TIMED_OUT
I unable firewall and still the same error. when I run
$sudo rstudio-server verify-installation
I got error
11 Jul 2020 14:53:12 [rsession-rstudio-server] ERROR system error 13 (Permission denied) [path:
/home/rstudio-server/.config/rstudio/dictionaries/custom, target-dir: ]; OCCURRED AT
rstudio::core::Error rstudio::core::FilePath::createDirectory(const string&) const
src/cpp/shared_core/FilePath.cpp:634; LOGGED FROM: std::vector<std::__cx
I am new to both Linux and Rstudio. any help to figure this problem
Thank you
Which version of RStudio Server do you use ?
I had similar problem on (1.3.959) on Ubuntu 18.04. I installed the latest from https://rstudio.com/products/rstudio/download-server/debian-ubuntu/.
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1056-amd64.deb
sudo gdebi rstudio-server-1.3.1056-amd64.deb
After that I also need to restart apache2.service:
systemctl restart apache2.service
$ rstudio-server version
1.3.1056 (Water Lily) for Ubuntu Bionic
And after works fine.
Also good sources:
https://community.rstudio.com/t/rstudio-server-instal-on-ubuntu-does-not-create-home-directory-home-rstudio-server/69785
https://community.rstudio.com/t/problem-rstudio-server-installed-in-ubuntu20-04/68506
On a VPS with Fedora 23 I recently upgraded my rstudio-server. After this I could no longer login.
After many attempts to repair it I decided to start with a fresh VPS, unfortunately, even here the same problem appears. From systemctl I get:
ERROR system error 13 (Permission denied); OCCURRED AT:
rstudio::core::Error
rstudio::core::system::launchChildProcess(std::string, std::string,
rstudio::core::system::ProcessConfig,
rstudio::core::system::ProcessConfigFilter, PidType*)
/root/rstudio/src/cpp/core/system/PosixSystem.cpp:1297;
LOGGED FROM: rstu lines 1-13/13 (END)
Also:
id -u rstudio-server
gives
993
I have also set the minimum user id to 100.
Any thoughts would be much appreciated.
I am having issues connecting to a rstudio server I just installed. Can you please let me know if you know how to solve this? Thanks!
I just installed Rstudio server 0.99.485 64-bit on Ubuntu 13.10 (saucy) and am getting this error below:
The error in /var/log/syslog says:
ERROR Unexpected exception: locale::facet::Screateclocale name not valid;
LOGGED FROM: int main(int, char* const*) /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:3166
The symptom is that the web UI says it's "unable to connect to service"
I have followed everything mentioned on this post, but it doesn't seem to work.
When I trace the rstudio-server process using sudo strace -f -e 'trace=!clockgettime,gettimeofday,futex,timerfdsettime,epollwait,epollctl' -p 10208 -o trace.txt, I am seeing this in the trace.txt ( below is what I used to log in:
10226 connect(10, {safamily=AFLOCAL, sunpath="/tmp/rstudio-rsession/"}, 28) = -1 ECONNREFUSED (Connection refused)
I've tried logged in using an invalid id to confirm that pam authentication is working fine
Also looked at this question and made sure there exists /home/<USERID> but still the problem is there.
I have a new version of R installed on an aws-machine (which always come with an old version for some reason and it's near impossible to just have yum or apt-get to work). I want rstudio to point to this new version which I've built from source without throwing the old version away. I therefore go to /etc/rstudio/rserver.conf (documentation) and change the contents to:
# Server Configuration File
rsession-which-r=/root/R-3.2.1/bin/R
I can confirm that at this location a new version of R is installed but then I get an error after rstudio-server restarts.
root#ip-172-31-40-49 rstudio]$ rstudio-server restart
initctl: Unknown instance:
What am I to do?
Below worked for me:
1) check the process that used 8787
sudo fuser 8787/tcp
2) with the -k option to kill all process.
sudo fuser -k 8787/tcp
3) Start RStudio Server
sudo rstudio-server start
The solution above is provided here by Leon Zhang.
The first thing to do is to check your configuration with:
rstudio-server verify-installation
a number of times when updating R or RStudio I have run into the same error as you have and get the following error message.
-bash-4.1$ sudo rstudio-server verify-installation
29 Sep 2015 18:24:11 [rserver] ERROR system error 98 (Address already in use); OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<boost::asio::ip::tcp>&, const std::string&, const std::string&) /root/rstudio/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103; LOGGED FROM: int main(int, char* const*) /root/rstudio/src/cpp/server/ServerMain.cpp:436
rstudio-server start/running, process 48632
Although I have never been able to figure out the cause, I can suggest the following workaround:
1. change the port /etc/rstudio/rserver.conf for example from 8787 to 8788
2. open the new ports in your firewall settings. (allow access to the new port in /etc/sysconfig/iptables)
3. update your firewall: sudo /sbin/service iptables restart
4. restart Rstudio server: sudo rstudio-server restart
This has worked for me each of the ~4-5 times this has happened. Although I am not 100% sure this can help with your use case, it may. As an alternative, if you can use containers in your AWS setup, you may be interested in a great off-the shelf docker image with the latest R/Rstudio.
It happened for me on my Cento-7.x machine while I upgraded from old RStudio server to the new version. Rebooting the machine seems to have fixed the problem.