fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.94k stars 285 forks source link

Not yet authorized when opening Pluto running on WSL on Windows #1145

Closed JakubKoralewski closed 3 years ago

JakubKoralewski commented 3 years ago
  1. I start Pluto on WSL.
  2. A browser is opened in Windows with error.
Works from WSL: ``` $ curl http://localhost:1234/?secret=6z0Wx214 ⚡ Pluto.jl ⚡

welcome to

New session:

```

But on Windows: obraz

Windows curl: ``` $ curl http://localhost:1234/?secret=6z0Wx214 ⚡ Pluto.jl ⚡

Not yet authenticated

Open the link that was printed in the terminal where you launched Pluto. It includes a secret, which is needed to access this server.

If you are running the server yourself and want to change this configuration, have a look at the keyword arguments to Pluto.run.

Please report this error if you did not expect it!


Go back



        
```

Output

julia> Pluto.run()
┌ Warning: `merge(uri::URI; kw...)` is deprecated, use `URI(uri; kw...)` instead.
│   caller = ip:0x0
└ @ Core :-1

Opening http://localhost:1234/?secret=6z0Wx214 in your default browser... ~ have fun!

Press Ctrl+C in this terminal to stop Pluto

^C

Closing Pluto... Restart Julia for a fresh session.

Have a nice day! 🎈

Trying on host "0.0.0.0" doesn't help.

julia> Pluto.run(host="0.0.0.0")
┌ Warning: `merge(uri::URI; kw...)` is deprecated, use `URI(uri; kw...)` instead.
│   caller = ip:0x0
└ @ Core :-1

Versions

 Version 1.4.1
Ubuntu ⛬  julia/1.4.1+dfsg-1

(@v1.4) pkg> status Pluto
Status `~/.julia/environments/v1.4/Project.toml`
  [c3e4b0f8] Pluto v0.14.2

Is there a way to force disable passwords on Pluto.run()? Pluto got really laggy for me on Windows recently and I wanted to try WSL see if it is better.

Updated to 0.14.5 and didn't help.

fonsp commented 3 years ago

It could be that you are running two Pluto servers on port 1234, for example because an old Pluto server did not shut down properly. Can you reboot your computer and try again?

JakubKoralewski commented 3 years ago

It could be that you are running two Pluto servers on port 1234, for example because an old Pluto server did not shut down properly. Can you reboot your computer and try again?

It works now, thank you! Sorry, I should have checked this.