Hello,
I’m trying to run an Elixir Phoenix application but keep bumping in to a timeout error (or unknown package error, it’s not exactly clear) when running mix deps.get --only prod
. I have tried:
- With a brand new blank Phoenix application
- With and without a database
- With and without
--remote-only
- In different regions
Here’s the full stack trace:
=> ERROR [builder 6/17] RUN mix deps.get --only prod 16.6s
------
> [builder 6/17] RUN mix deps.get --only prod:
#15 16.53 Failed to check for new Hex version
#15 16.53 Failed to fetch record for 'hexpm/html_entities' from registry (using cache instead)
#15 16.53 :timeout
#15 16.53 :timeout
#15 16.53 Failed to fetch record for 'hexpm/cowboy_telemetry' from registry (using cache instead)
#15 16.53 :timeout
#15 16.53 Failed to fetch record for 'hexpm/cowlib' from registry (using cache instead)
#15 16.53 :timeout
#15 16.53 Failed to fetch record for 'hexpm/esbuild' from registry (using cache instead)
#15 16.53 :timeout
#15 16.53 Failed to fetch record for 'hexpm/castore' from registry (using cache instead)
#15 16.54 :timeout
#15 16.54 Failed to fetch record for 'hexpm/cowboy' from registry (using cache instead)
#15 16.54 :timeout
#15 16.54 Failed to fetch record for 'hexpm/file_system' from registry (using cache instead)
#15 16.54 :timeout
#15 16.54 Failed to fetch record for 'hexpm/floki' from registry (using cache instead)
#15 16.54 :timeout
#15 16.54 ** (Mix) Unknown package castore in lockfile
------
Error error building: executor failed running [/bin/sh -c mix deps.get --only $MIX_ENV]: exit code: 1
I am simply running fly launch
locally according to the help docs.
Does anyone have any ideas for getting around this?