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

ERROR: LoadError: IOError: connect: connection refused (ECONNREFUSED) #249

Open
yakir12 opened this issue Feb 20, 2020 · 5 comments
Open

Comments

@yakir12
Copy link

yakir12 commented Feb 20, 2020

This might as well be impossible, but worth reporting. I'm on a headless Raspbian Lite on a Raspberry Pi 4 and:

pi@raspberrypi:~/dev $ xvfb-run ~/julia-1.3.1/bin/julia --project 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.1 (2019-12-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Blink

julia> Window()
ERROR: IOError: connect: connection refused (ECONNREFUSED)
Stacktrace:
 [1] wait_connected(::Sockets.TCPSocket) at /buildworker/worker/package_linuxarmv7l/build/usr/share/julia/stdlib/v1.3/Sockets/src/Sockets.jl:520
 [2] connect at /buildworker/worker/package_linuxarmv7l/build/usr/share/julia/stdlib/v1.3/Sockets/src/Sockets.jl:555 [inlined]
 [3] connect(::Sockets.IPv4, ::Int32) at /buildworker/worker/package_linuxarmv7l/build/usr/share/julia/stdlib/v1.3/Sockets/src/Sockets.jl:541
 [4] #try_connect#5(::Float64, ::Int32, ::typeof(Blink.AtomShell.try_connect), ::Sockets.IPv4, ::Vararg{Any,N} where N) at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/process.jl:79
 [5] try_connect at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/process.jl:77 [inlined]
 [6] #init#6(::Bool, ::typeof(Blink.AtomShell.init)) at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/process.jl:93
 [7] #init at ./none:0 [inlined]
 [8] #shell#9(::Bool, ::typeof(shell)) at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/process.jl:129
 [9] shell at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/process.jl:127 [inlined]
 [10] #Window#14(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Type{Window}) at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/window.jl:89
 [11] Window() at /home/pi/.julia/packages/Blink/4FM8Y/src/AtomShell/window.jl:89
 [12] top-level scope at REPL[2]:1
@yakir12
Copy link
Author

yakir12 commented Feb 20, 2020

Hmm... I've installed xserver, a windows manager, and a web-browser but I still get the same error... Not sure why?

Here are the details:
sudo apt-get install i3 xserver-xorg xinit firefox-esr x11-xserver-utils
reboot, login, i3 starts fine, test the browser - fine, start Julia with/out xvfb-run, but I always get the same error.

@WeiMXi
Copy link

WeiMXi commented Mar 12, 2020

Maybe you can run Blink.AtomShell.electron() to find the electron in your system and try to run the elecctron in your Shell, maybe it will say some library are miss. Then just install them. At least i did this.

@twavv
Copy link
Member

twavv commented Mar 12, 2020

We need to detect/log stderr of the electron process if it quits unexpectedly (or maybe just add a flag to log electron's stderr to the console stderr, or something similar).

@truedichotomy
Copy link

truedichotomy commented Oct 5, 2021

When I try to run electron, it gives an Exec format error on my RPi 4 running Julia 1.7rc1:

user@pi:~ $ /home/user/.julia/packages/Blink/mwJC9/deps/atom/electron
bash: /home/user/.julia/packages/Blink/mwJC9/deps/atom/electron: cannot execute binary file: Exec format error

@twavv
Copy link
Member

twavv commented Oct 6, 2021

Probably due to RPis running on ARM and Blink.jl always downloading the x86 version of Electron.

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

4 participants