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

[BUG] Trying to launch remote process #292

Closed
clintonTE opened this issue Apr 17, 2019 · 1 comment
Closed

[BUG] Trying to launch remote process #292

clintonTE opened this issue Apr 17, 2019 · 1 comment
Labels

Comments

@clintonTE
Copy link

clintonTE commented Apr 17, 2019

Having some issues following the FAQ to set up a remote Julia process:

Details

  • Atom version: 1.36
  • Julia version: 1.1
  • OS (remote): Ubuntu 18.04.2 LTS (GNU/Linux 4.18.0-17-generic x86_64)
  • OS (local): Windows 10
  • Package versions:
    • Atom.jl: 8.5
    • julia-client: 10.4
    • ink: 8.3

Steps to reproduce

  1. Julia Client: New Terminal
  2. Julia Client: Connect External Process
  3. ssh -R [...]:localhost:[...] [...]
    [log in and launch julia]
  4. using Atom; using Juno; Juno.connect(60805)
  5. Get the following error message:
julia> using Atom; using Juno; Juno.connect(60805)
ERROR: IOError: connect: connection refused (ECONNREFUSED)
Stacktrace:
 [1] try_yieldto(::typeof(Base.ensure_rescheduled), ::Base.RefValue{Task}) at ./event.jl:196
 [2] wait() at ./event.jl:255
 [3] wait(::Condition) at ./event.jl:46
 [4] stream_wait(::Sockets.TCPSocket, ::Condition) at ./stream.jl:47
 [5] wait_connected(::Sockets.TCPSocket) at ./stream.jl:330
 [6] connect(::Sockets.TCPSocket, ::Sockets.IPv4, ::Int64) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Sockets/src/Sockets.jl:456
 [7] connect(::Sockets.IPv4, ::Int64) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Sockets/src/Sockets.jl:440
 [8] #connect#17(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Sockets.IPv4, ::Int64) at /home/ctepper/.julia/packages/Atom/E4PBh/src/comm.jl:106
 [9] connect at /home/ctepper/.julia/packages/Atom/E4PBh/src/comm.jl:106 [inlined]
 [10] #connect#22 at /home/ctepper/.julia/packages/Atom/E4PBh/src/comm.jl:116 [inlined]
 [11] connect(::Int64) at /home/ctepper/.julia/packages/Atom/E4PBh/src/comm.jl:116
 [12] top-level scope at none:0
 [13] eval at ./boot.jl:328 [inlined]
 [14] eval at /home/ctepper/.julia/packages/Juno/TfNYn/src/Juno.jl:1 [inlined]
 [15] #connect#14(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Int64) at /home/ctepper/.julia/packages/Juno/TfNYn/src/user.jl:30
 [16] connect(::Int64) at /home/ctepper/.julia/packages/Juno/TfNYn/src/user.jl:29
 [17] top-level scope at none:0
@clintonTE clintonTE added the bug label Apr 17, 2019
@clintonTE
Copy link
Author

Apparently the popup window is wrong as far as the port to use with the Juno.connect([...]). Per the FAQ, for the SSH command ssh -R <RemotePort>:localhost:<JunoPort> you@yourserver you want to use using Atom; using Juno; Juno.connect(<RemotePort>).

As this is correctly documented in the faq despite being wrong in the popup window in atom, I'm going to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant