renku-python icon indicating copy to clipboard operation
renku-python copied to clipboard

Renku Session url is not valid in Safari

Open lokijuhy opened this issue 4 years ago • 3 comments

Describe the bug I tried to use renku session start, and copied the provided url into Safari, and it did not work. Safari gave me an error:

Safari can't open the page "0.0.0.0:56674/?token=....." because the page's address isn't valid.

I also tried renku session open <>, which opened a Safari window, and it did not work.

When I opened the same link in Chrome, it worked (opened JupyterLab).

When I changed the url from 0.0.0.0 to localhost or to 127.0.0.1, it worked on Safari! (fixed the issue)

To Reproduce Steps to reproduce the behavior:

  1. Clone a Renku project repo
  2. Build the docker image
  3. renku session start
  4. Paste the url into Safari

Expected behavior JupyterLab to open in Safari window

Run environment (please complete the following information):

  • renku-python version: 1.3.1
  • Python version: 3.9.12
  • local terminal OR renkulab interactive environment? local terminal
  • if renkulab, specify RStudio / Jupyterlab / Other & browser [e.g. chrome, safari] safari

lokijuhy avatar Jun 02 '22 15:06 lokijuhy

Is it possible that you just need to wait a bit? I had the same happen in firefox (link didn't work) but another time when the session had been running for a few seconds it opened fine.

rokroskar avatar Jun 03 '22 23:06 rokroskar

I cannot replicate this on Mac. Copying and pasting the session url in Safari works.

I followed the exact same steps as specified above. My renku CLI version is 1.5.0.dev2+gd3b449eb. So this must have been fixed since version 1.3.1

olevski avatar Jul 06 '22 14:07 olevski

I'm still getting this behavior on renku 1.5.0. I'm on Safari 15.4.

I gave it a bunch of time (a few minutes) and it still doesn't work.

@olevski Separate issue: When I ran renku session open <>, it opened a page on renkulab.io, which said that "The session you are trying to open is not available." I had to explicitly type renku session open --provider docker <>, to get back to my 0.0.0.0 url (that does not work on Safari). It seems that renku session open did not respect the provider where the session was started in the first place? Shall I file this as a separate bug?

lokijuhy avatar Jul 20 '22 13:07 lokijuhy