larshei
Hey everyone!
I am trying to introduce livebook in a corporate networking setup, meaning all access is going through a proxy that also does SSL inspection.
Preferrably, I’d like to use the standalone Livebook installation for simplicity, but kept running into the following error: Failed to make a request, reason: {:failed_connect, [{:to_address, {~c"hex.pm", 443}}, {:inet, [:inet], :closed}]}
Not finding a way to configure livebook, I built livebook from source, hoping there would be a difference (because the dev setup has proxy/CA settings configured) - but the same error occurs.
I seem to not be able to make any requests from the livebook, as running
:ssl.start
:inets.start
:httpc.request "https://google.com"
leads to the same error.
How could I configure livebook for this network setup (set up proxy and trusted CA)?
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex












Showing Posts 21 to 12- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
larshei
You are correct, hex versions 2.0.6 and 2.1.1 were available. Deleted the 2.0.6 folder. Works now.
Many (many many many …) thanks!
jonatanklosko
Ohh I think the deps error may be something entirely separate.
Try locating
C:\Users\foo\AppData\Local\Livebook\rel\vendor\archivesand see if there are multiplehex-*directories. If so, remove the older one. I think we fixed the installer to remove these automatically on new install, but maybe it didn’t work for some reason.larshei
However, installing dependencies did not work yet, error remains:
Could be a version mismatch between Elixir and OTP?
Can I see what versions are used in the installed livebook version?
jonatanklosko
When you do it in IEx it uses the global one, not the one in
.livebookdesktop.bat.So maybe the quotes were the issue? Does the package search work now?
I think
.livebookdesktop.batshould take precedence.larshei
File is present.
Content was
and is now
which leads to
The env variable is also defined in the user environment variables in windows’ advanced system settings as
C:\internal_root_ca.pem- which is used in this case?jonatanklosko
Just to double check, do you have
%USERPROFILE%\.livebookdesktop.bator did you set it globally. If the file is there, are there quotes or no?larshei
This looks fine:
jonatanklosko
Yeah this looks wrong. If you open iex and do
System.get_env("LIVEBOOK_CACERTFILE")does it appear with the quotes or without?larshei
HEX_CACERTS_PATHis set:Pulling dependencies from a mix project works as intendend:
so does
mix hex.info:Finding depencies through livebooks search
Results in an error message.
Looks like building the path to the certfile assumes a relative path and also adds " as escaped characters.
Installing depencies with Mix.install
Instead of adding a dependency through search, I added it “manually” and tried to start the runtime:
Leads to
As suggested, I ran
mix local.hex(successfully) and then restarted the livebook application.jonatanklosko
For installing dependencies, I think you also need to set
HEX_CACERTS_PATH, so thatMix.installuses the certs when talking to Hex.For programmatic requests, such as
Req.get, you need to set the proxy options yourself, as if you were writing a regular Elixir app/script.Searching for dependencies should work though, since it’s Livebook making the requests. Is it still the same error?