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

"Could not connect to the R session on Rstudio Server." #259

Closed
ralacerda opened this issue Oct 9, 2021 · 9 comments
Closed

"Could not connect to the R session on Rstudio Server." #259

ralacerda opened this issue Oct 9, 2021 · 9 comments

Comments

@ralacerda
Copy link

Hello,

Trying to use the example available at https://www.rocker-project.org
Running:
docker run -e PASSWORD=yourpassword --rm -p 8787:8787 rocker/rstudio

Everything works as expected, this is the output:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] userconf: executing... 
skipping /var/run/s6/container_environment/HOME
skipping /var/run/s6/container_environment/PASSWORD
[cont-init.d] userconf: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Heading to 0.0.0.0:8787 loads the webserver, I can login with "rstudio" and the password, but it leads to a blank space with the following error:

Screenshot_20211009_171944

Console output is:

2021-10-09T20:23:00.312055Z [rsession-rstudio] WARNING FileLock classes not yet initialized; please call 'FileLock::initialize()' and 'FileLock::cleanUp()' as appropriate; LOGGED FROM: static bool rstudio::core::FileLock::verifyInitialized() src/cpp/core/file_lock/FileLock.cpp:113
2021-10-09T20:23:01.007645Z [rserver] ERROR system error 22 (Invalid argument) [request-uri: /rpc/client_init]; OCCURRED AT void rstudio::core::http::AsyncClient<SocketService>::handleReadContent(const rstudio_boost::system::error_code&) [with SocketService = rstudio_boost::asio::basic_stream_socket<rstudio_boost::asio::local::stream_protocol>] src/cpp/server/ServerSessionProxy.cpp:609; LOGGED FROM: void rstudio::server::session_proxy::{anonymous}::logIfNotConnectionTerminated(const rstudio::core::Error&, const rstudio::core::http::Request&) src/cpp/server/ServerSessionProxy.cpp:441
2021-10-09T20:23:02.098479Z [rserver] ERROR system error 22 (Invalid argument) [request-uri: /rpc/client_init]; OCCURRED AT void rstudio::core::http::AsyncClient<SocketService>::handleReadStatusLine(const rstudio_boost::system::error_code&) [with SocketService = rstudio_boost::asio::basic_stream_socket<rstudio_boost::asio::local::stream_protocol>] src/cpp/server/ServerSessionProxy.cpp:498; LOGGED FROM: void rstudio::server::session_proxy::{anonymous}::logIfNotConnectionTerminated(const rstudio::core::Error&, const rstudio::core::http::Request&) src/cpp/server/ServerSessionProxy.cpp:441

I tried removing the images and redownloading them. The "r-base" image is working fine.
I'm on Manjaro.

@eitsupi
Copy link
Member

eitsupi commented Oct 10, 2021

I searched for https://github.com/rstudio/rstudio issues but couldn't find the same issue.
Version information (uname -a and docker --version) may help identify the problem.

@ralacerda
Copy link
Author

ralacerda commented Oct 10, 2021

After running uname -a I remembered I was using Linux 5.15.rc3.
Changing back to 5.14.9-1 fixed the problem.

Should I open an issue on rstudio/rstudio repo?

@eitsupi
Copy link
Member

eitsupi commented Oct 11, 2021

Nice! I think this could be an issue between the Linux kernel and RStudio Server, so it makes sense to report it to the RStudio team.

@RERobbins
Copy link

I am seeing the same problem with rocker/rstudio on a MacBook Pro with Apple Silicon running Monterey.

I'm not sure how best to proceed or report the issue.

@eitsupi
Copy link
Member

eitsupi commented Dec 21, 2021

@RERobbins rocker/rstudio does not work with arm Mac. See #144.

@paupaiz
Copy link

paupaiz commented Dec 29, 2021

I am getting same issue on Mac Intel Core i5:
console outputs: [rsession-rstudio] WARNING FileLock classes not yet initialized; please call 'FileLock::initialize()' and 'FileLock::cleanUp()' as appropriate; LOGGED FROM: static bool rstudio::core::FileLock::verifyInitialized() src/cpp/core/file_lock/FileLock.cpp:113
and RStudio says: 2021-12-29T14:57:33.273718Z [rsession-rstudio] WARNING No memory control group found in /proc/self/cgroup; LOGGED FROM: std::__cxx11::string rstudio::core::system::{anonymous}::getMemoryCgroup() src/cpp/core/system/LinuxResources.cpp:335

Full output in case it's useful: [rsession-rstudio] WARNING FileLock classes not yet initialized; please call 'FileLock::initialize()' and 'FileLock::cleanUp()' as appropriate; LOGGED FROM: static bool rstudio::core::FileLock::verifyInitialized() src/cpp/core/file_lock/FileLock.cpp:113 2021-12-29T15:37:40.756396Z [rserver] ERROR CLIENT EXCEPTION (rsession-rstudio): (TypeError) : Cannot read properties of null (reading 'parentNode');|||com/google/gwt/dom/client/DOMImpl.java#253::getParentElement|||com/google/gwt/dom/client/Node.java#189::getParentElement|||org/rstudio/core/client/widget/RStudioDataGrid.java#63::hideMacHorizontalScrollbars|||org/rstudio/core/client/widget/RStudioDataGrid.java#60::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#167::runScheduledTasks|||com/google/gwt/core/client/impl/SchedulerImpl.java#338::flushPostEventPumpCommands|||com/google/gwt/core/client/impl/SchedulerImpl.java#76::execute|||com/google/gwt/core/client/impl/SchedulerImpl.java#140::execute|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||com/google/gwt/cell/client/AbstractEditableCell.java#41::viewDataMap|||Client-ID: 3425e423-c8e9-4e39-bb78-a35cc36fdf75|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

@eitsupi
Copy link
Member

eitsupi commented Dec 29, 2021

It could be the same situation as #306.
Since it is reported only on Mac, it could be a Mac-specific problem.

@eddelbuettel
Copy link
Member

rocker/rstudio does not work with arm Mac

FYI we have a counter example with a modified variant. I don't have all the details, and am not an M1 or macOS user myself. More at #144 (comment); Eric was the one who put that variant together which helped support my course.

@eitsupi
Copy link
Member

eitsupi commented Feb 19, 2022

I'm closing this issue for lack of information and because it seems to be the same problem as the other issues. If you have additional information, please let me know so I can reopen it.

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

5 participants