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

InitError: No networking interface available #332

Closed
grahamas opened this issue Jun 3, 2020 · 8 comments
Closed

InitError: No networking interface available #332

grahamas opened this issue Jun 3, 2020 · 8 comments
Assignees
Labels

Comments

@grahamas
Copy link

grahamas commented Jun 3, 2020

When my computer is disconnected from the internet I can't load JuliaDB (versions JuliaDB v0.13.0 and MemPool v0.2.0). Though the error originates in MemPool, I don't get a similar error when using MemPool which is why I'm posting here. Let me know if I should move this. I get a different error depending on whether I'm using julia v1.4.2 or a recent latest. Both below.

julia> versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info: 
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

julia> using JuliaDB
ERROR: InitError: No networking interface available
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] getipaddr at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Sockets/src/addrinfo.jl:250 [inlined]
 [3] getipaddr at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Sockets/src/addrinfo.jl:257 [inlined]
 [4] __init__() at /home/graham/.julia/packages/MemPool/tlPqB/src/MemPool.jl:103
 [5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [6] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:781
 [7] _tryrequire_from_serialized(::Base.PkgId, ::UInt64, ::String) at ./loading.jl:712
 [8] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:770
 [9] _require(::Base.PkgId) at ./loading.jl:1006
 [10] require(::Base.PkgId) at ./loading.jl:927
 [11] require(::Module, ::Symbol) at ./loading.jl:922
 [12] eval(::Module, ::Any) at ./boot.jl:331
 [13] eval_user_input(::Any, ::REPL.REPLBackend) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
 [14] run_backend(::REPL.REPLBackend) at /home/graham/.julia/packages/Revise/XFtoQ/src/Revise.jl:1162
 [15] top-level scope at REPL[1]:0
during initialization of module MemPool
julia> versioninfo()
Julia Version 1.5.0-DEV.391
Commit 4e609128ff (2020-03-03 07:30 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

julia> using JuliaDB
[ Info: Precompiling JuliaDB [a93385a2-3734-596a-9a66-3cfbb77141e6]
ERROR: LoadError: LoadError: InitError: No networking interface available
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] getipaddr at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Sockets/src/addrinfo.jl:262 [inlined]
 [3] getipaddr at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Sockets/src/addrinfo.jl:269 [inlined]
 [4] __init__() at /home/graham/.julia/packages/MemPool/tlPqB/src/MemPool.jl:103
 [5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [6] _require_from_serialized(::String) at ./loading.jl:748
 [7] _require(::Base.PkgId) at ./loading.jl:1039
 [8] require(::Base.PkgId) at ./loading.jl:927
 [9] require(::Module, ::Symbol) at ./loading.jl:922
 [10] include(::Function, ::Module, ::String) at ./Base.jl:380
 [11] include at ./Base.jl:368 [inlined]
 [12] include(::String) at /home/graham/.julia/packages/Dagger/sdZXi/src/Dagger.jl:1
 [13] top-level scope at /home/graham/.julia/packages/Dagger/sdZXi/src/Dagger.jl:23
 [14] include(::Function, ::Module, ::String) at ./Base.jl:380
 [15] include(::Module, ::String) at ./Base.jl:368
 [16] top-level scope at none:2
 [17] eval at ./boot.jl:331 [inlined]
 [18] eval(::Expr) at ./client.jl:451
 [19] top-level scope at ./none:3
during initialization of module MemPool
in expression starting at /home/graham/.julia/packages/Dagger/sdZXi/src/chunks.jl:2
in expression starting at /home/graham/.julia/packages/Dagger/sdZXi/src/Dagger.jl:23
ERROR: LoadError: Failed to precompile Dagger [d58978e5-989f-55fb-8d15-ea34adc7bf54] to /home/graham/.julia/compiled/v1.5/Dagger/0a2f8_uIeLy.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1288
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:451
 [11] top-level scope at ./none:3
in expression starting at /home/graham/.julia/packages/JuliaDB/7cG1k/src/JuliaDB.jl:15
ERROR: Failed to precompile JuliaDB [a93385a2-3734-596a-9a66-3cfbb77141e6] to /home/graham/.julia/compiled/v1.5/JuliaDB/4FA8g_uIeLy.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1288
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
@jpsamaroo
Copy link
Collaborator

This is solved by JuliaData/MemPool.jl#29, which is on MemPool master (the latest MemPool release doesn't cover it). Note that the difference in error behavior isn't significant; it's still an InitError in both cases, with the same message.

@jpsamaroo
Copy link
Collaborator

jpsamaroo commented Jun 3, 2020

Once JuliaData/MemPool.jl#37 is merged and registered in General, we can update the MemPool compat bounds for JuliaDB and pull in the relevant commits.

@jpsamaroo
Copy link
Collaborator

@grahamas if you can test with #349 that would be very helpful!

@grahamas
Copy link
Author

grahamas commented Aug 3, 2020

@jpsamaroo I can confirm with MemPool updated to v0.3.1, JuliaDB (v0.13.0) loads without an internet connection.

However, a) I get a load error when trying to use JuliaDB on either master or jps/mempool-0.3. I assume it'll come up when the integration tests finish running, but let me know if you need me to file an issue.

julia> using JuliaDB
[ Info: Precompiling JuliaDB [a93385a2-3734-596a-9a66-3cfbb77141e6]
ERROR: LoadError: UndefVarError: parameter_upper_bound not defined
Stacktrace:
 [1] include
   @ ./Base.jl:375 [inlined]
 [2] include_package_for_output(input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId,UInt64}}, uuid_tuple::Tuple{UInt64,UInt64}, source::String)
   @ Base ./loading.jl:1219
 [3] top-level scope
   @ none:1
 [4] eval
   @ ./boot.jl:340 [inlined]
 [5] eval(x::Expr)
   @ Base.MainInclude ./client.jl:445
 [6] top-level scope
   @ none:1
in expression starting at /home/graham/.julia/packages/Compat/fSUv4/src/Compat.jl:3
[etc...]

b) I'll make an issue for a compat conflict I'm running into that probably won't come up in testing.

@jpsamaroo
Copy link
Collaborator

I noticed this error as well on Julia master in CI. Any chance you can try this with Julia 1.4 or 1.5?

@grahamas
Copy link
Author

grahamas commented Aug 3, 2020

Julia v1.4.2 works for me.

Julia v1.5.0 gives a more persistent error, common to v0.13.0 as well. It's weird enough that it might just be my build? Not sure -- I'll try poking around, clearing cache, etc.

edit: this error persists down to JuliaDB v0.9... I have no idea how to approach it.

(@v1.5) pkg> add JuliaDB
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
  Installed Zlib_jll ─ v1.2.11+15
Updating `~/.julia/environments/v1.5/Project.toml`
  [a93385a2] ~ JuliaDB v0.13.1 `~/.julia/dev/JuliaDB` ⇒ v0.13.0
Updating `~/.julia/environments/v1.5/Manifest.toml`
  [a93385a2] ~ JuliaDB v0.13.1 `~/.julia/dev/JuliaDB` ⇒ v0.13.0
  [83775a58] ↑ Zlib_jll v1.2.11+14 ⇒ v1.2.11+15

julia> using JuliaDB
[ Info: Precompiling JuliaDB [a93385a2-3734-596a-9a66-3cfbb77141e6]
ERROR: LoadError: LoadError: LoadError: Cannot read stream serialized with a newer version of Julia.
Got data version 11 > current version 10
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] readheader(::Serialization.Serializer{IOStream}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:715
 [3] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:878
 [4] deserialize(::Serialization.Serializer{IOStream}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:773
 [5] deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Serialization/src/Serialization.jl:760 [inlined]
 [6] open(::typeof(Serialization.deserialize), ::String, ::Vararg{String,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:325
 [7] open at ./io.jl:323 [inlined]
 [8] (::TimeZones.var"#3#4"{String})() at /home/graham/.julia/packages/TimeZones/zymSN/src/types/timezone.jl:50
 [9] get!(::TimeZones.var"#3#4"{String}, ::Dict{String,Tuple{Dates.TimeZone,TimeZones.Class}}, ::String) at ./dict.jl:450
 [10] Dates.TimeZone(::String, ::TimeZones.Class) at /home/graham/.julia/packages/TimeZones/zymSN/src/types/timezone.jl:46 (repeats 2 times)
 [11] @tz_str(::LineNumberNode, ::Module, ::Any) at /home/graham/.julia/packages/TimeZones/zymSN/src/types/timezone.jl:86
 [12] include(::Function, ::Module, ::String) at ./Base.jl:380
 [13] include at ./Base.jl:368 [inlined]
 [14] include(::String) at /home/graham/.julia/packages/Intervals/imKP6/src/Intervals.jl:3
 [15] top-level scope at /home/graham/.julia/packages/Intervals/imKP6/src/Intervals.jl:23
 [16] include(::Function, ::Module, ::String) at ./Base.jl:380
 [17] include(::Module, ::String) at ./Base.jl:368
 [18] top-level scope at none:2
 [19] eval at ./boot.jl:331 [inlined]
 [20] eval(::Expr) at ./client.jl:467
 [21] top-level scope at ./none:3
in expression starting at /home/graham/.julia/packages/Intervals/imKP6/src/interval.jl:99
in expression starting at /home/graham/.julia/packages/Intervals/imKP6/src/interval.jl:98
in expression starting at /home/graham/.julia/packages/Intervals/imKP6/src/Intervals.jl:23
ERROR: LoadError: Failed to precompile Intervals [d8418881-c3e1-53bb-8760-2df7ec849ed5] to /home/graham/.julia/compiled/v1.5/Intervals/ihXRn_t1Btc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/graham/.julia/packages/Polynomials/ZmARV/src/Polynomials.jl:4
ERROR: LoadError: Failed to precompile Polynomials [f27b6e38-b328-58d1-80ce-0feddd5e7a45] to /home/graham/.julia/compiled/v1.5/Polynomials/OaK78_t1Btc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/graham/.julia/packages/DoubleFloats/s9LZK/src/DoubleFloats.jl:44
ERROR: LoadError: Failed to precompile DoubleFloats [497a8b3b-efae-58df-a0af-a86822472b78] to /home/graham/.julia/compiled/v1.5/DoubleFloats/KzTCm_t1Btc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/graham/.julia/packages/TextParse/tFXtC/src/TextParse.jl:3
ERROR: LoadError: Failed to precompile TextParse [e0df1984-e451-5cb5-8b61-797a481e67e3] to /home/graham/.julia/compiled/v1.5/TextParse/Ry2K3_t1Btc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/graham/.julia/packages/JuliaDB/7cG1k/src/JuliaDB.jl:14
ERROR: Failed to precompile JuliaDB [a93385a2-3734-596a-9a66-3cfbb77141e6] to /home/graham/.julia/compiled/v1.5/JuliaDB/4FA8g_t1Btc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

@grahamas
Copy link
Author

grahamas commented Aug 4, 2020

The last problem looks like it was related to the Pkg downtime (https://discourse.julialang.org/t/pkg-downtime-incident/44288) -- I deleted my package folder and redownloaded everything and now it works fine.

@grahamas
Copy link
Author

This last part was a weird me-doing-weird-things-that-I-couldn't-replicate error, not a real error. Fixed by upgrading MemPool.

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

3 participants