Skip to content

Local docker regression: REALTIME_IP_VERSION is ignored #1750

@jbertozzi

Description

@jbertozzi

Bug report

Describe the bug

Running a self-hosted instance on a server with ipv6 disabled is not working.

According the doc, setting the environment variable REALTIME_IP_VERSION to the value ipv4 should make the server bind to ipv4 only, but we still get the error:

  num_acceptors: 100,                                                                                     
  max_connections: 1000,                                                                                  
  socket_opts: [                                                                                          
    :inet6,                                                                                                                                                                                                          
    {:port,                                                                                                                                                                                                          
     4000}                                                                                                                                                                                                           
  ]                                                                                                       
}) for reason :eafnosupport (address family not supported by protocol family)     

This looks like a regression as this was supposed to be fixed: #253

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Disable ipv6 on your server
  2. Add the environment variable REALTIME_IP_VERSION in the docker compose
  3. run docker compose up -d
  4. Check the logs docker logs realtime-dev.supabase-realtime

Expected behavior

Container realtime-dev.supabase-realtime crashes

System information

  • OS: RHEL9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions