# Can't load stdlib package on remote machine

**URL:** <https://discourse.julialang.org/t/cant-load-stdlib-package-on-remote-machine/15084>\
**Category:** General Usage\
**Created:** [September 17, 2018, 5:37pm UTC](https://discourse.julialang.org/t/cant-load-stdlib-package-on-remote-machine/15084 "2018-09-17T17:37:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameshclrk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameshclrk/32/5403_2.png) [@jameshclrk](https://discourse.julialang.org/u/jameshclrk)\
**Post date:** [September 17, 2018, 5:37pm UTC](https://discourse.julialang.org/t/cant-load-stdlib-package-on-remote-machine/15084/1 "2018-09-17T17:37:59Z")

</div>

Hello,

I am trying to create a ClusterManager for Julia using `blaunch` with [LSF](https://www.ibm.com/support/knowledgecenter/en/SSWRJV/product_welcome_spectrum_lsf.html).

To test running Julia on another machine, I am using:

```julia
blaunch remote.host.name julia test.jl

```

where `remote.host.name` is the host name of the remote machine and `test.jl` is:

```julia
println("hello")

```

However, when I run this I get the following output:

```julia
fatal: error thrown and no exception handler available.
InitError(mod=:Base, error=ArgumentError(msg="Package Sockets not found in current path:
- Run `Pkg.add("Sockets")` to install the Sockets package.
"))
rec_backtrace at /buildworker/worker/package_linux64/build/src/stackwalk.c:94
record_backtrace at /buildworker/worker/package_linux64/build/src/task.c:246
jl_throw at /buildworker/worker/package_linux64/build/src/task.c:577
require at ./loading.jl:817
init_stdio at ./stream.jl:237
jfptr_init_stdio_4446.clone_1 at /julia/lib/julia/sys.so (unknown line)
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182
reinit_stdio at ./libuv.jl:120
__init__ at ./sysimg.jl:470
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1536 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:90
_julia_init at /buildworker/worker/package_linux64/build/src/init.c:811
julia_init__threading at /buildworker/worker/package_linux64/build/src/task.c:302
main at /buildworker/worker/package_linux64/build/ui/repl.c:227
__libc_start_main at /lib64/libc.so.6 (unknown line)
_start at /julia/bin/julia (unknown line)

```

Are there any requirements for how Julia is launched? IBM say `blaunch` is a drop in replacement for ssh, so I’m not sure why it doesn’t work.

I have tried running the command with ssh:

```julia
ssh remote.host.name julia test.jl

```

which works as expected.

---

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [September 17, 2018, 7:00pm UTC](https://discourse.julialang.org/t/cant-load-stdlib-package-on-remote-machine/15084/2 "2018-09-17T19:00:18Z")

</div>

That is weird.

What does `blaunch julia -e "using Pkg; Pkg.status()"` yield? I looks like it is picking up a different environment between `blaunch` and `ssh`

---

<div class="post-metadata">

**Author:** ![jameshclrk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameshclrk/32/5403_2.png) [@jameshclrk](https://discourse.julialang.org/u/jameshclrk)\
**Post date:** [September 17, 2018, 11:37pm UTC](https://discourse.julialang.org/t/cant-load-stdlib-package-on-remote-machine/15084/3 "2018-09-17T23:37:12Z")

</div>

I get the same error, it looks like it’s failing before any of the code I supply is run.

But I’ve tracked down the difference between executing Julia via `ssh` and `blaunch`.

`ssh` uses `UV_NAMED_PIPE` in ` __init__ ()` while `blaunch` uses `UV_TCP`.

With `UV_TCP`, the code [tries to load the Sockets module](https://github.com/JuliaLang/julia/blame/v1.0.0/base/stream.jl#L236), but the `LOAD_PATH` hasn’t been set yet.

I think this is a bug, so I’ll post on the issue tracker.

---

<div class="post-metadata">

**Author:** ![bjarthur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjarthur/32/9638_2.png) [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Post date:** [October 22, 2018, 6:52pm UTC](https://discourse.julialang.org/t/cant-load-stdlib-package-on-remote-machine/15084/4 "2018-10-22T18:52:27Z")

</div>

have you seen [https://github.com/JuliaParallel/ClusterManagers.jl/pull/74](https://github.com/JuliaParallel/ClusterManagers.jl/pull/74) ? i just started on trying to get it to work under 0.7…
