[Samba] FreeBSD 12.3-RELEASE and Samba 4.13
David Christensen
dpchrist at holgerdanske.com
Sat Apr 16 20:06:02 UTC 2022
samba:
I have a home/ SOHO network with various Windows, macOS, Linux, FreeBSD,
iosOS, and Android clients.
I have one FreeBSD server running 24x7:
2022-04-16 12:40:48 toor at f3 ~
# freebsd-version ; uname -a
12.3-RELEASE-p4
FreeBSD f3.tracy.holgerdanske.com 12.3-RELEASE-p3 FreeBSD
12.3-RELEASE-p3 GENERIC amd64
The server has a jail running Samba:
2022-04-16 12:43:28 toor at samba ~
# pkg info | grep samba
samba413-4.13.14 Free SMB/CIFS and AD/DC server and client
for Unix
2022-04-16 12:44:06 toor at samba ~
# samba-tool testparm
INFO 2022-04-16 12:44:20,945 pid:10227
/usr/local/lib/python3.8/site-packages/samba/netcmd/testparm.py #96:
Loaded smb config files from /usr/local/etc/smb4.conf
INFO 2022-04-16 12:44:20,945 pid:10227
/usr/local/lib/python3.8/site-packages/samba/netcmd/testparm.py #97:
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
local master = Yes
netbios name = SAMBA
ntlm auth = ntlmv1-permitted
passdb backend = tdbsam
preferred master = Yes
security = USER
server string = Samba Server Version %v
wins server = 127.0.0.1
wins support = Yes
workgroup = WORKGROUP
[dpchrist]
path = /var/local/samba/dpchrist
read only = No
valid users = dpchrist
When I restart Samba:
2022-04-16 12:47:02 toor at samba ~
# service samba_server restart
Performing sanity check on Samba configuration: OK
Stopping smbd.
Waiting for PIDS: 10277, 10277.
Stopping nmbd.
Waiting for PIDS: 10270.
Performing sanity check on Samba configuration: OK
Starting nmbd.
Starting smbd.
I see warnings and/or errors in the logs:
2022-04-16 12:51:50 toor at samba ~
# tail -n 19 /var/log/samba4/log.nmbd
[2022/04/16 12:47:12.216937, 0] ../../source3/nmbd/nmbd.c:59(terminate)
Got SIGTERM: going down...
[2022/04/16 12:47:12.267542, 0] ../../source3/nmbd/nmbd.c:960(main)
nmbd version 4.13.14 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
[2022/04/16 12:47:12.269373, 0]
../../source3/nmbd/asyncdns.c:158(start_async_dns)
started asyncdns process 10326
[2022/04/16 12:47:12.270484, 0]
../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'nmbd' finished starting up and ready to serve
connections
[2022/04/16 12:47:36.388141, 0]
../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****
Samba name server SAMBA is now a local master browser for workgroup
WORKGROUP on subnet 192.168.5.24
*****
[2022/04/16 12:47:47.459412, 0]
../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
find_domain_master_name_query_fail:
Unable to find the Domain Master Browser name WORKGROUP<1b> for the
workgroup WORKGROUP.
Unable to sync browse lists in this workgroup.
2022-04-16 12:53:16 toor at samba ~
# tail -n 13 /var/log/samba4/log.smbd
[2022/04/16 12:47:12.321310, 0] ../../source3/smbd/server.c:1784(main)
smbd version 4.13.14 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
[2022/04/16 12:47:12.438010, 0]
../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve
connections
[2022/04/16 12:47:12.444820, 0]
../../source3/lib/util_sock.c:334(open_socket_in)
open_socket_in(): socket() call failed: Protocol not supported
[2022/04/16 12:47:12.444934, 0]
../../source3/smbd/server.c:1077(smbd_open_one_socket)
smbd_open_one_socket: open_socket_in: Protocol not supported
[2022/04/16 12:47:12.444959, 0]
../../source3/lib/util_sock.c:334(open_socket_in)
open_socket_in(): socket() call failed: Protocol not supported
[2022/04/16 12:47:12.444981, 0]
../../source3/smbd/server.c:1077(smbd_open_one_socket)
smbd_open_one_socket: open_socket_in: Protocol not supported
I have also noted that the Samba host is not visible via network
browsing from various clients, but the clients can connect if I enter a
UNC path. I have installed py38-wsdd, but it is not happy:
2022-04-16 13:00:49 toor at samba ~
# service wsdd status
wsdd is not running.
2022-04-16 13:01:23 toor at samba ~
# service wsdd restart
wsdd not running? (check /var/run/wsdd.pid).
Starting wsdd.
2022-04-16 13:01:26 toor at samba ~
# service wsdd status
wsdd is not running.
2022-04-16 13:03:11 toor at samba ~
# tail -n 27 /var/log/messages
Apr 16 13:01:26 samba daemon[10479]: 2022-04-16 13:01:26,808:wsdd
WARNING(pid 10480): no interface given, using all interfaces
Apr 16 13:01:26 samba daemon[10479]: Traceback (most recent call last):
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1799, in <module>
Apr 16 13:01:26 samba daemon[10479]: sys.exit(main())
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1754, in main
Apr 16 13:01:26 samba daemon[10479]: nm =
RouteSocketAddressMonitor(aio_loop)
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1058, in __call__
Apr 16 13:01:26 samba daemon[10479]: obj.enumerate()
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1097, in enumerate
Apr 16 13:01:26 samba daemon[10479]: self.do_enumerate()
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1471, in do_enumerate
Apr 16 13:01:26 samba daemon[10479]:
self.parse_route_socket_response(rt_buf.raw, True)
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1505, in parse_route_socket_response
Apr 16 13:01:26 samba daemon[10479]: new_intf =
self.parse_addrs(buf, sa_offset, offset + rtm_len, intf, addr_mask,
rtm_type, intf_flags)
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1551, in parse_addrs
Apr 16 13:01:26 samba daemon[10479]: self.handle_new_address(addr,
addr_family, intf)
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
1161, in handle_new_address
Apr 16 13:01:26 samba daemon[10479]: mch =
MulticastHandler(addr_family, addr, interface, self.aio_loop)
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
83, in __init__
Apr 16 13:01:26 samba daemon[10479]: self.init_v4()
Apr 16 13:01:26 samba daemon[10479]: File "/usr/local/bin/wsdd", line
163, in init_v4
Apr 16 13:01:26 samba daemon[10479]:
self.uc_send_socket.bind((self.address, WSD_UDP_PORT))
Apr 16 13:01:26 samba daemon[10479]: OSError: [Errno 48] Address already
in use
Apr 16 13:02:43 samba nmbd[10325]: [2022/04/16 13:02:43.634009, 0]
../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
Apr 16 13:02:43 samba nmbd[10325]: find_domain_master_name_query_fail:
Apr 16 13:02:43 samba nmbd[10325]: Unable to find the Domain Master
Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Apr 16 13:02:43 samba nmbd[10325]: Unable to sync browse lists in this
workgroup.
Corrections? Comments? Suggestions?
TIA,
David
More information about the samba
mailing list