Did you ever try to boot without that `ipv6.disable=1` that mean ipv6 will be present just not used.
On Monday, 10 November 2025 at 16:45:24 UTC+1 Vitaly Solntsev wrote: > Hi Bruno > > The mentioned above settings still generate > 10-Nov 15:22 bareos-fd: Warning: Cannot open IPv6 stream socket. > ERR=Address family not supported by protocol > 10-Nov 15:22 bareos-fd: Warning: Can't add default IPv6 address (IPv6 > address wanted but IPv6 is disabled!) > which broke all automations. > > > I didn't remember but I guess the ipv6 stack on the kernel shouldn't be > completely disabled (who want that in 21st century anyways :-) ) > > So the stack should be present, but it can be not used. > > I see /etc/default/grub > GRUB_CMDLINE_LINUX=".... ipv6.disable=1 ............." > and /proc/cmdline ends with ipv6.disable=1 as well. > > That means IPv6 is globally disabled at the kernel level. > > I have to use this OS image and can't get the IPv6 stack back. > > Can I have the possibility to completely disable ipv6 usage in bareos to > avoid these warnings? > > Thanks > > > On Mon, Nov 10, 2025 at 10:57 AM Bruno Friedmann (bruno-at-bareos) < > [email protected]> wrote: > >> My system can use both, and usually I only run Bareos on ipv6 >> >> sudo ss -tanp | grep :910 >> LISTEN 0 50 0.0.0.0:9102 >> 0.0.0.0:* >> users:(("bareos-fd",pid=14857,fd=3)) >> >> sudo cat /etc/bareos/bareos-fd.d/client/myself.conf >> # >> # "Global" File daemon configuration specifications >> # >> FileDaemon { # this is me >> Name = bareos-fd >> FDAddresses = { >> # ipv6 = { addr = :: ; port = 9102 } >> ipv4 = { addr = 0.0.0.0 ; port = 9102} >> } >> WorkingDirectory = /var/lib/bareos >> # remove comment in next line to load plugins from specified directory >> Plugin Directory = /usr/lib64/bareos/plugins >> } >> >> >> >> I didn't remember but I guess the ipv6 stack on the kernel shouldn't be >> completely disabled (who want that in 21st century anyways :-) ) >> So the stack should be present, but it can be not used. >> >> Maybe you can forward a bit more information about what is disabled and >> how. >> Regards >> >> On Friday, 7 November 2025 at 19:13:21 UTC+1 Vitaly Solntsev wrote: >> >>> Hello, Team >>> >>> I have Bareos server installed on Oracle Linux v9.6 (Red Hat based) with >>> the disabled IPv6 stack. >>> >>> Since Bareos 21.0.0 release (2021-12-21) >>> >>> Bareos now listens on IPv4 and IPv6 by default. If you currently use >>> [DIR|SD|FD] Address or [DIR|SD|FD] Address, you may need to update your >>> configuration to get the same behaviour as before. PR #882 >>> https://github.com/bareos/bareos/pull/882 >>> <https://github.com/bareos/bareos/pull/882> >>> >>> Due to the disabled IPv6 on the server all bareos daemons trigger >>> warnings: >>> >>> 07-Nov 18:05 bareos-fd: Warning: Cannot open IPv6 stream socket. >>> ERR=Address family not supported by protocol >>> 07-Nov 18:05 bareos-fd: Warning: Can't add default IPv6 address (IPv6 >>> address wanted but IPv6 is disabled!) >>> >>> 07-Nov 18:04 bareos-sd: Warning: Cannot open IPv6 stream socket. >>> ERR=Address family not supported by protocol >>> 07-Nov 18:04 bareos-sd: Warning: Can't add default IPv6 address (IPv6 >>> address wanted but IPv6 is disabled!) >>> 07-Nov 18:04 bareos-sd: Warning: Can't add default IPv6 address (IPv6 >>> address wanted but IPv6 is disabled!) >>> >>> 07-Nov 17:56 bareos-dir: Warning: Cannot open IPv6 stream socket. >>> ERR=Address family not supported by protocol >>> 07-Nov 17:56 bareos-dir: Warning: Can't add default IPv6 address (IPv6 >>> address wanted but IPv6 is disabled!) >>> >>> Tried to add only IPv4 usage to the configuration files as described at >>> >>> https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#datatype-addresses >>> but the warnings are still occuring. >>> >>> /etc/bareos/bareos-dir.d/director/bareos-dir.conf >>> DirAddresses = { >>> ipv4 = { addr = 0.0.0.0 } >>> } >>> or Dir Address = 0.0.0.0 >>> >>> /etc/bareos/bareos-fd.d/client/myself.conf >>> FdAddresses = { ip = { addr = 0.0.0.0 ; port = 9102 } } >>> or >>> FD Address = 0.0.0.0 >>> >>> How can we get rid of these warnings? >>> >>> Thanks >>> >>> >>> >>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "bareos-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/bareos-users/a292c38c-2a04-4aea-815e-8cc6dd42a54bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/bareos-users/a292c38c-2a04-4aea-815e-8cc6dd42a54bn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/bareos-users/9d8fe830-54fd-4cfe-a543-ec9bd805d6e4n%40googlegroups.com.
