Install at "pleroma mix deps.get" fails #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Alpine linux (4.19.80-0-vanilla) fresh install
Ipv6 only connection (with dns/nat64)
I can resolve repo.hex.pm (it has ipv6 address) and wget/curl the file.
/opt/pleroma# sudo -Hu pleroma mix deps.get
!!! RUNNING IN LOCALHOST DEV MODE! !!!
FEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs
Could not find Hex, which is needed to build dependency :phoenix
Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn]
** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], :nxdomain}]}Could not install Hex because Mix could not download metadata at https://repo.hex.pm/installs/hex-1.x.csv.this is an ipv6 only setup?
yes
this might be the problem. @feld you tried something like this, right?
My vm can only speak ipv6, but with nat64 and fake ipv6 dns entries (dns64) I can connect to ipv4 only servers. There are a few corner cases where this setup fails:
The ipv4 address is hardcoded, or the application doesnt support ipv6 at all.
Im new to to the elixir env. Do you think this issue is solely caused my mix? If yes, I can open an issue there.
@plataformatec have you ever encountered this?
This looks similar to https://github.com/hexpm/hex/issues/384 and it looks like an issue with ipv6.
Could you run this command in IEx session and paste the output?
If it's
{:error, :nxdomain}then the problem is with how OTP handles ipv6.Input from Nico:
It seems that the connection is tried via the inet protocol however it should be from the inet6 protocol.
Good morning! I was wondering if there is anything I can do to support pleroma in IPv6 only situations?
Well, figuring out why this happens and fixing that would be the best way to help :) Nobody on the team is probably too interested in this use case, so this is the perfect issue for an outside contributor.
It's my understanding when talking with Kaniini that Erlang/BEAM isn't IPv6-only compatible, but I don't really know the details. You do need to enable ipv6 DNS resolution, though:
http://erlang.org/doc/apps/erts/inet_cfg.html:
You can enable inet6 support by creating a file like
erl_inetrcwith the following contents:and then you can make Pleroma use it by referencing a
vm.argsfile with contents similar to this:And finally make Pleroma use the
vm.argswith something like this:elixir --erl '-args_file /usr/local/etc/pleroma/vm.args' -S mix phx.serverAnything related to IPv6 being broken with
mix deps.getin Elixir should be directed upstream. It's a bug in Elixir then.