J'obtiens une erreur en suivant les instructions https://supabase.io/docs/realtime/docker :
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
Salut @lacoprof !
rnbackend
- cela vous dérangerait de partager votre fichier docker-compose ? Nous pouvons le tester et vous informer si des modifications sont nécessaires
Merci, j'utilise celui par défaut https://github.com/supabase/realtime/blob/master/docker-compose.dev.yml
docker-compose --version
docker-compose version 1.25.0, build inconnue
docker --version
Docker version 19.03.8, build afacb8b7f0
Salut @lacoprof , est-ce que ta machine prend en charge IPv6 ? A en juger par ces lignes :
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)
Il semble avoir du mal à gérer l'hôte local d'IPv6. Je n'ai pas de machine sans IPv6, je n'ai donc pas pu reproduire cela.
Merci @soedirgo , mon ordinateur démarre avec ipv6 désactivé dans grub, après avoir réactivé cela fonctionne.
Commentaire le plus utile
Merci @soedirgo , mon ordinateur démarre avec ipv6 désactivé dans grub, après avoir réactivé cela fonctionne.