You are not logged in.

#1 2014-02-21 14:19:53

funnyman
Member
Registered: 2013-05-30
Posts: 12

samba error spam "Address family not supported by protocol"

Hello, samba is running well, however it is spamming my logs with this:

Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.561919,  0] ../source3/lib/util_sock.c:423(open_socket_in)
Feb 21 15:09:21 alarmpi smbd[2155]: open_socket_in(): socket() call failed: Address family not supported by protocol
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.563595,  0] ../source3/smbd/server.c:684(smbd_open_one_socket)
Feb 21 15:09:21 alarmpi smbd[2155]: smbd_open_once_socket: open_socket_in: Address family not supported by protocol
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.590267,  0] ../source3/lib/util_sock.c:423(open_socket_in)
Feb 21 15:09:21 alarmpi smbd[2155]: open_socket_in(): socket() call failed: Address family not supported by protocol
Feb 21 15:09:21 alarmpi smbd[2155]: [2014/02/21 15:09:21.591488,  0] ../source3/smbd/server.c:684(smbd_open_one_socket)
Feb 21 15:09:21 alarmpi smbd[2155]: smbd_open_once_socket: open_socket_in: Address family not supported by protocol

Can you please tell me what to disable in smb.conf? Thank you

my smb.conf:
http://pastie.org/private/elqqxaiucf2ulgsaqsnww

Offline

#2 2014-02-21 19:24:33

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: samba error spam "Address family not supported by protocol"

My best guess would be missing ipv6 support. SystemD should load it (it always complains it cannot do that here gehehe big_smile).


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-02-22 08:46:20

funnyman
Member
Registered: 2013-05-30
Posts: 12

Re: samba error spam "Address family not supported by protocol"

Is there any way to solve it without enabling ipv6? It caused me several problems when it was enabled.
It doesnt have to be solved as solved, changing log level should be fine.

Offline

#4 2014-02-22 12:10:52

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: samba error spam "Address family not supported by protocol"

A little googling suggests you can bind samba to specific interfaces, IPV4 only. So something like

bind interfaces only = yes
interfaces = 127.0.0.1 host_ip_address

Just be aware that if your IP changes you'd need to change the config. But I wonder if you have ipv6 completely disabled. I don't see those errors on my system and I don't use IPV6. Did you specifically disable it, or just never do anything to configure ipv6 ? If you're sure you don't need/want it I'd go back and turn it off explicitly. The archwiki tells you how

Offline

#5 2014-02-22 12:34:47

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: samba error spam "Address family not supported by protocol"

Probably a slightly nicer syntax:

bind interfaces only = yes
interfaces = lo eth0 wlan

Offline

#6 2014-02-22 12:50:26

funnyman
Member
Registered: 2013-05-30
Posts: 12

Re: samba error spam "Address family not supported by protocol"

Thank you, it looks like this is the solution.

dschrute wrote:

Just be aware that if your IP changes you'd need to change the config. But I wonder if you have ipv6 completely disabled. I don't see those errors on my system and I don't use IPV6. Did you specifically disable it, or just never do anything to configure ipv6 ? If you're sure you don't need/want it I'd go back and turn it off explicitly. The archwiki tells you how

It's been a long time since I installed and configured this server, I only remember there were some problems with ipv6 and I somehow disabled it (I don't need it, there will be no IPv6 till 2017 in this location). But I dont know what did I do..

Offline

#7 2014-02-22 15:33:27

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: samba error spam "Address family not supported by protocol"

funnyman wrote:

Thank you, it looks like this is the solution.

dschrute wrote:

Just be aware that if your IP changes you'd need to change the config. But I wonder if you have ipv6 completely disabled. I don't see those errors on my system and I don't use IPV6. Did you specifically disable it, or just never do anything to configure ipv6 ? If you're sure you don't need/want it I'd go back and turn it off explicitly. The archwiki tells you how

It's been a long time since I installed and configured this server, I only remember there were some problems with ipv6 and I somehow disabled it (I don't need it, there will be no IPv6 till 2017 in this location). But I dont know what did I do..

Can't you just make it listen on 0.0.0.0 or is that a stupid idea?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#8 2014-02-22 18:31:06

funnyman
Member
Registered: 2013-05-30
Posts: 12

Re: samba error spam "Address family not supported by protocol"

Do you mean something like interfaces = 0.0.0.0? I think that brebs' solution is pretty much the same.

Offline

#9 2014-02-22 18:49:45

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: samba error spam "Address family not supported by protocol"

funnyman wrote:

Do you mean something like interfaces = 0.0.0.0? I think that brebs' solution is pretty much the same.

Not exactly. If the interface name changes, this will not be affected by that change. Brebs solution does. But that could be intended though.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

Board footer

Powered by FluxBB