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

rocker/rstudio doesn't work on M1 Mac (arm) architecture #450

Closed
steve273 opened this issue Apr 20, 2021 · 13 comments
Closed

rocker/rstudio doesn't work on M1 Mac (arm) architecture #450

steve273 opened this issue Apr 20, 2021 · 13 comments

Comments

@steve273
Copy link

Hello, having an issue with logging into Rstudio once the docker is running. When I run:

docker run --rm -p 8787:8787 -e PASSWORD=yourpasswordhere rocker/rstudio

Then open browser and try to log in with "rstudio" and specified password, I get the following error:

Error: Incorrect or invalid username/password

I see no errors in terminal or docker desktop. Running macOS 11.2.3.

@cboettig
Copy link
Member

Sorry but I cannot reproduce this. Can you try:

  • starting with a fresh docker pull rocker/rstudio
  • clear cache or open a fresh 'private window' so we have a clean cache
  • log in there?

Since you're running on a local machine, can you also try logging in without auth and see if that works?

docker run --rm \
  -p 127.0.0.1:8787:8787 \
  -e DISABLE_AUTH=true \
  rocker/rstudio

(note that binding to 127.0.0.1:8787 makes sure your connection is not available to other machines over the network, and we no longer need to bother with a password like we do on a remote server connection).

@steve273
Copy link
Author

Thanks for quick reply. I performed a fresh pull command and using a private window, still have the same error when I log in there.

When I use the second command to log in without authorization, I get the following:

"Rstudio Initialization Error"
"Unable to connect to service"

Is there any additional information I can provide to help? Currently have docker desktop version 3.3.1 (63152).

@cboettig
Copy link
Member

Very weird, sounds like issues we usually see with cache from another instance. This is an intel-based mac? Lots of things we might try but since I can't reproduce in the first place I'm shooting in the dark here.

consider restarting the docker daemon, making sure to stop any active rocker containers, and try first in a private window binding without auth to an alternate port (here localhost:8888):

docker run --rm \
  -p 127.0.0.1:8888:8787 \
  -e DISABLE_AUTH=true \
  rocker/rstudio

@steve273
Copy link
Author

Ah, maybe that's it. Using an arm based Mac. Might need to use another platform until these images are available for arm64?

@cboettig
Copy link
Member

It could be, I can't say for sure, some aspects should be platform independent but others are not.
One last thing to check would be to confirm that this fails on one of the older, frozen images, e.g. rocker/rstudio:3.6.3

@steve273
Copy link
Author

Still getting error:

"Rstudio Initialization Error"
"Unable to connect to service"

I've used other and images with the docker virtualization layer without a problem. This seems like such a specific error, I wish I could help narrow it down further.

@eitsupi
Copy link
Member

eitsupi commented Apr 21, 2021

Is this the same problem?
rocker-org/rocker-versioned2#144

@steve273
Copy link
Author

Based on the screen shots in the other issue, yes, seeing the same thing here.

@earnold
Copy link

earnold commented Apr 29, 2021

Not sure if this is helpful, but I can confirm I'm experiencing the same issue on an M1 mac as well.

@dcaud
Copy link

dcaud commented Dec 13, 2021

Isn't Docker supposed to prevent just this kind of problem?

@cboettig cboettig changed the title rocker/rstudio Error logging in rocker/rstudio doesn't work on M1 Mac (arm) architecture Dec 13, 2021
@cboettig
Copy link
Member

@dcaud no, I'm afraid not. docker can provide you a virtual linux-like environment on a mac or windows machine, but this is an issue about actual hardware. Docker systems have to build different image binaries for arm vs intel, just like other software. RStudio-server binaries are unfortunately not available on M1 macs yet, so we cannot package them in docker. Of course the RStudio team is aware of this, so keep an eye on rstudio/rstudio#8809 and hope we'll be able to build arm-based images with RStudio-server soon!

@yufree
Copy link

yufree commented Aug 21, 2022

Hi, following previous post, RStudio start building arm-based RStudio-server experimental binaries now.

@eitsupi
Copy link
Member

eitsupi commented Aug 23, 2022

duplicate of rocker-org/rocker-versioned2#144
Please check that issue.

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

6 participants