mikl
We’ve recently started seeing our CI jobs failing due to mix deps.get hanging. It stalls for an hour, then the CI job gets a timeout, our script looks like this:
$ mix local.hex --force --if-missing
$ mix local.rebar --force --if-missing
$ mix hex.repo add oban https://getoban.pro/repo --fetch-public-key ${OBAN_KEY_FINGERPRINT} --auth-key ${OBAN_LICENSE_KEY}
$ mix deps.get
This is with Gitlab CI, using the hexpm/elixir:1.17.3-erlang-26.2.5.4-debian-bookworm-20241016-slim docker image.
Is there any way to see where it is getting stuck? mix help deps.get does not list any verbose or debugging flags.
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Kia ora,
We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
Hello,
I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #ai
- #genstage
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










Showing Posts 1 to 5- Show Best Posts
- Show All Posts (oldest first)
- Show All Posts (newest first)
jeroenbourgois
Can you curl the package from within CI? Maybe try that just to verify the credentials in the url are correct? Something like:
curl -I https://getoban.pro/repo --fetch-public-key ${OBAN_KEY_FINGERPRINT} --auth-key ${OBAN_LICENSE_KEY}mikl
It works about half the time, so the credentials must be right. And if they were wrong, Hex would throw an error message, not just hanging.
sorentwo
Authenticating and fetching from the
getoban.prorepo shouldn’t time out. However, we’ve heard about network trouble from CI instances in the past.Try switching to the newer, globally distributed repo instead:
https://repo.oban.pro. That will be served closer to your CI servers and should have better connectivity guarantees.mikl
I’m far from certain that it’s the Oban repo causing
mix deps.getto hang, changing the URL didn’t help at least. Wish I could find a way to see what is causing it to hang.axelson
What does
MIX_DEBUG=true mix deps.getshow? It should print output kind of like:Another thing you could check is
MIX_PROFILE=deps.get mix deps.get. Although I’m not sure if that’ll help ifmix deps.gethangs forever.Example output
It was a little tricky to find, but here is where that is documented: Mix — Mix v1.20.2
It was tricky because as far as I can tell:
mix helpwon’t print that out as help textasdf)MIX_DEBUGdoesn’t yield any results because it actually seems to search for all mentions ofmixordebugand there are a lot of thoseI found the docs because I already knew there was a
MIX_DEBUGenvironment variable, so I downloaded Elixir’s source code and searched viagit grep.One last thing. If you have the dependencies, i.e. you’ve cached the
deps/,~/.mix,~/.hexthen you can addHEX_OFFLINE=trueto skip contracting hex.pm (that’s documented at mix hex.config — Hex v2.5.0)