You are not logged in.
Whenever the system boots I'm Unable to access the Samba shares. Nothing appears.
This happens when I enable the "bind interfaces only"
smb.conf
interfaces = lo enp2s0
bind interfaces only = yes
~ $ journalctl -p 3 -xb -u smbd
-- Logs begin at Sáb 2016-06-11 04:39:29 BRT, end at Sáb 2016-07-09 00:29:45 BRT. --
Jul 09 00:27:00 casahost smbd[463]: [2016/07/09 00:27:00.718069, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Jul 09 00:27:00 casahost smbd[463]: STATUS=daemon 'smbd' finished starting up and ready to serve connecti
~ $ journalctl -p 3 -xb -u nmbd
Jul 09 00:27:00 casahost nmbd[448]: [2016/07/09 00:27:00.364397, 0] ../lib/util/become_daemon.c:135(daemon_status)
Jul 09 00:27:00 casahost nmbd[448]: STATUS=daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface ...NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).
Jul 09 00:27:05 casahost nmbd[448]: [2016/07/09 00:27:05.384515, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Jul 09 00:27:05 casahost nmbd[448]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
Jul 09 00:27:05 casahost nmbd[448]: [2016/07/09 00:27:05.384638, 0] ../source3/nmbd/nmbd_packets.c:759(queue_query_name)
Jul 09 00:27:05 casahost nmbd[448]: queue_query_name: interface 1 has NULL IP address !
Jul 09 00:27:28 casahost nmbd[448]: [2016/07/09 00:27:28.419755, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
Jul 09 00:27:28 casahost nmbd[448]: *****
Jul 09 00:27:28 casahost nmbd[448]:
Jul 09 00:27:28 casahost nmbd[448]: Samba name server LINUX is now a local master browser for workgroup ....
Jul 09 00:27:28 casahost nmbd[448]:
Jul 09 00:27:28 casahost nmbd[448]: *****
systemctl status nmbd smbd
● nmbd.service - Samba NetBIOS name server
Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled; vendor preset: disabled)
Active: active (running) since Sáb 2016-07-09 00:27:00 BRT; 5min ago
Process: 437 ExecStart=/usr/bin/nmbd -D (code=exited, status=0/SUCCESS)
Main PID: 448 (nmbd)
Tasks: 1 (limit: 512)
CGroup: /system.slice/nmbd.service
└─448 /usr/bin/nmbd -D
smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: disabled)
Active: active (running) since Sáb 2016-07-09 00:27:00 BRT; 5min ago
Process: 449 ExecStart=/usr/bin/smbd -D (code=exited, status=0/SUCCESS)
Main PID: 463 (smbd)
Tasks: 4 (limit: 512)
CGroup: /system.slice/smbd.service
├─463 /usr/bin/smbd -D
├─466 /usr/bin/smbd -D
├─467 /usr/bin/smbd -D
└─502 /usr/bin/smbd -D
When I restart the service manually starts to work ..
The folders appear and I can access them without error.
Jul 09 00:33:42 casahost nmbd[448]: [2016/07/09 00:33:42.418338, 0] ../source3/nmbd/nmbd.c:58(terminate)
Jul 09 00:33:42 casahost nmbd[448]: Got SIGTERM: going down...
Jul 09 00:33:42 casahost nmbd[982]: [2016/07/09 00:33:42.456095, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Jul 09 00:33:42 casahost nmbd[982]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
Jul 09 00:33:42 casahost nmbd[982]: [2016/07/09 00:33:42.456180, 0] ../source3/nmbd/nmbd_packets.c:759(queue_query_name)
Jul 09 00:33:42 casahost nmbd[982]: queue_query_name: interface 1 has NULL IP address !
Jul 09 00:33:45 casahost nmbd[982]: [2016/07/09 00:33:45.880993, 0] ../source3/nmbd/nmbd.c:58(terminate)
Jul 09 00:33:45 casahost nmbd[982]: Got SIGTERM: going down...
Jul 09 00:33:45 casahost nmbd[990]: [2016/07/09 00:33:45.926947, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Jul 09 00:33:45 casahost nmbd[990]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
Jul 09 00:33:45 casahost nmbd[990]: [2016/07/09 00:33:45.927073, 0] ../source3/nmbd/nmbd_packets.c:759(queue_query_name)
Jul 09 00:33:45 casahost nmbd[990]: queue_query_name: interface 1 has NULL IP address !
Jul 09 00:34:08 casahost nmbd[990]: [2016/07/09 00:34:08.953314, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
Jul 09 00:34:08 casahost nmbd[990]: *****
Jul 09 00:34:08 casahost nmbd[990]:
Jul 09 00:34:08 casahost nmbd[990]: Samba name server LINUX is now a local master browser for workgroup ....
Jul 09 00:34:08 casahost nmbd[990]:
Jul 09 00:34:08 casahost nmbd[990]: *****
Jul 09 00:33:45 casahost smbd[992]: [2016/07/09 00:33:45.963247, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Jul 09 00:33:45 casahost smbd[992]: STATUS=daemon 'smbd' finished starting up and ready to serve connections
Use the NetworkManager package to connect.
Why begins "In IPv4 non-local loopback" even though defined in the interface?
interfaces = lo enp2s0
Last edited by swatquest (2016-07-09 04:03:23)
Offline
I have similar issue. Ping not working unless restart nmbd.service and winbind.service.
samba version: 4.5.0 or 4.5.2.
It seems the judgement of nmbd.service [ After=network.target ] have problem. Is this a bug?
`--> ping vx-win03
ping: vx-win03: Name or service not known
.-(~)------------------------------------------------------------------------------------------(admin@VM-Arch)-
`--> sudo systemctl restart nmbd.service winbindd.service
[sudo] password for admin:
.-(~)------------------------------------------------------------------------------------------(admin@VM-Arch)-
`--> ping vx-win03
PING vx-win03 (192.168.1.110) 56(84) bytes of data.
64 bytes from bogon (192.168.1.110): icmp_seq=1 ttl=64 time=1.03 ms
64 bytes from bogon (192.168.1.110): icmp_seq=2 ttl=64 time=0.503 ms
64 bytes from bogon (192.168.1.110): icmp_seq=3 ttl=64 time=0.437 ms
64 bytes from bogon (192.168.1.110): icmp_seq=4 ttl=64 time=0.436 ms
64 bytes from bogon (192.168.1.110): icmp_seq=5 ttl=64 time=0.453 ms
--- vx-win03 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.436/0.572/1.033/0.232 ms
.-(~)------------------------------------------------------------------------------------------(admin@VM-Arch)-
`--> cat /var/log/samba/nmbd.log
[2016/12/11 03:09:59.427843, 0] ../lib/util/become_daemon.c:135(daemon_status)
STATUS=daemon 'nmbd' : No local IPv4 non-loopback interfaces available, waiting for interface ...NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).
[2016/12/11 03:10:04.430254, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2016/12/11 03:10:53.161876, 0] ../source3/nmbd/nmbd.c:58(terminate)
Got SIGTERM: going down...
[2016/12/11 03:10:53.212487, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
.-(~)------------------------------------------------------------------------------------------(admin@VM-Arch)-
`--> cat /var/log/samba/winbindd.log
[2016/12/11 03:09:59.465290, 0] ../source3/winbindd/winbindd_cache.c:3245(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 2
[2016/12/11 03:09:59.468296, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'winbindd' finished starting up and ready to serve connections
[2016/12/11 03:10:53.162290, 0] ../source3/winbindd/winbindd.c:279(winbindd_sig_term_handler)
Got sig[15] terminate (is_parent=1)
[2016/12/11 03:10:53.238136, 0] ../source3/winbindd/winbindd_cache.c:3245(initialize_winbindd_cache)
initialize_winbindd_cache: clearing cache and re-creating with version number 2
[2016/12/11 03:10:53.239510, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'winbindd' finished starting up and ready to serve connections
Last edited by gkjarch (2016-12-10 19:48:34)
Offline