Realtime: Docker-Compose startet nicht - eafnosupport (Adressfamilie wird von der Protokollfamilie nicht unterstützt)

Erstellt am 21. Juli 2020  ·  4Kommentare  ·  Quelle: supabase/realtime

Ich erhalte einen Fehler, wenn ich den Anweisungen https://supabase.io/docs/realtime/docker folge :

docker-compose up
Starting rnbackend_db_1 ... done
Starting rnbackend_realtime_1 ... done
Attaching to rnbackend_db_1, rnbackend_realtime_1
db_1        | 
db_1        | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1        | 
db_1        | 2020-07-21 06:25:46.161 UTC [1] LOG:  starting PostgreSQL 12.3 (Debian 12.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1        | 2020-07-21 06:25:46.163 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1        | 2020-07-21 06:25:46.164 UTC [1] LOG:  could not create IPv6 socket for address "::": Address family not supported by protocol
db_1        | 2020-07-21 06:25:46.173 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1        | 2020-07-21 06:25:46.207 UTC [25] LOG:  database system was shut down at 2020-07-21 06:25:24 UTC
db_1        | 2020-07-21 06:25:46.214 UTC [1] LOG:  database system is ready to accept connections
realtime_1  | 06:25:50.598 [error] Failed to start Ranch listener RealtimeWeb.Endpoint.HTTP in :ranch_tcp:listen([{:cacerts, :...}, {:key, :...}, {:cert, :...}, :inet6, {:port, 4000}]) for reason :eafnosupport (address family not supported by protocol family)
realtime_1  | 
realtime_1  | 06:25:50.599 [info] Application realtime exited: Realtime.Application.start(:normal, []) returned an error: shutdown: failed to start child: RealtimeWeb.Endpoint
realtime_1  |     ** (EXIT) shutdown: failed to start child: {:ranch_listener_sup, RealtimeWeb.Endpoint.HTTP}
realtime_1  |         ** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup
realtime_1  |             ** (EXIT) {:listen_error, RealtimeWeb.Endpoint.HTTP, :eafnosupport}
realtime_1  | {"Kernel pid terminated",application_controller,"{application_start_failure,realtime,{{shutdown,{failed_to_start_child,'Elixir.RealtimeWeb.Endpoint',{shutdown,{failed_to_start_child,{ranch_listener_sup,'Elixir.RealtimeWeb.Endpoint.HTTP'},{shutdown,{failed_to_start_child,ranch_acceptors_sup,{listen_error,'Elixir.RealtimeWeb.Endpoint.HTTP',eafnosupport}}}}}}},{'Elixir.Realtime.Application',start,[normal,[]]}}}"}
realtime_1  | Kernel pid terminated (application_controller) ({application_start_failure,realtime,{{shutdown,{failed_to_start_child,'Elixir.RealtimeWeb.Endpoint',{shutdown,{failed_to_start_child,{ranch_listener_sup
realtime_1  | 
realtime_1  | Crash dump is being written to: erl_crash.dump...done
rnbackend_realtime_1 exited with code 1

Hilfreichster Kommentar

Danke @soedirgo , mein Computer bootet mit in Grub deaktiviertem IPv6, nach dem erneuten Aktivieren funktioniert es.

Alle 4 Kommentare

Hallo @lacoprof !

rnbackend - Würde es Ihnen etwas ausmachen, Ihre Docker-Compose-Datei zu teilen? Wir können es testen und Sie informieren, wenn Änderungen erforderlich sind

Danke, ich verwende die Standardeinstellung https://github.com/supabase/realtime/blob/master/docker-compose.dev.yml
docker-compose --version
docker-compose Version 1.25.0, Build unbekannt
docker --version
Docker-Version 19.03.8, Build afacb8b7f0

Hey @lacoprof , unterstützt dein Gerät IPv6? Nach diesen Zeilen zu urteilen:

db_1        | 2020-07-21 06:25:46.164 UTC [1] LOG:  could not create IPv6 socket for address "::": Address family not supported by protocol
realtime_1  | 06:25:50.598 [error] Failed to start Ranch listener RealtimeWeb.Endpoint.HTTP in :ranch_tcp:listen([{:cacerts, :...}, {:key, :...}, {:cert, :...}, :inet6, {:port, 4000}]) for reason :eafnosupport (address family not supported by protocol family)

Es scheint Probleme mit dem Localhost von IPv6 zu haben. Ich habe keine Maschine ohne IPv6, daher konnte ich dies nicht reproduzieren.

Danke @soedirgo , mein Computer bootet mit in Grub deaktiviertem IPv6, nach dem erneuten Aktivieren funktioniert es.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

awalias picture awalias  ·  9Kommentare

awalias picture awalias  ·  5Kommentare

kiwicopple picture kiwicopple  ·  16Kommentare

kiwicopple picture kiwicopple  ·  14Kommentare

kwakwaversal picture kwakwaversal  ·  6Kommentare