I have the Samba app installed but it stopped working. I SSH’d into it on my RPi2, and this is what smbstatus gave me:
Samba version 4.2.14-Debian
PID Username Group Machine Protocol Version
Failed to initialize session_global: NT_STATUS_ACCESS_DENIED
Service pid machine Connected at
Failed to initialize session_global: NT_STATUS_ACCESS_DENIED
Failed to traverse sessions: NT_STATUS_ACCESS_DENIED
messaging_dgm_lockfile_create: Could not create lock directory: No such file or directory
messaging_dgm_init: messaging_dgm_create_lockfile failed: No such file or direct ory
No locked files
I posted the response from the smbstatus because I assume that it’s part of, if not the, problem.
You would need to give a bit more information, eg from where to where are you trying to connect?
Also post the outputs of grab-logs -J sudo systemctl status samba
Output from second command:
Loaded: loaded (/lib/systemd/system/samba.service; enabled)
Active: failed (Result: exit-code) since Thu 2017-11-02 19:36:57 CDT; 1h 10min ago
Process: 292 ExecStart=/etc/init.d/samba.distributed start (code=exited, status=1/FAILURE)
Main PID: 292 (code=exited, status=1/FAILURE)
Nov 02 19:36:49 osmc systemd[1]: Starting Samba Server…
Nov 02 19:36:57 osmc samba.distributed[292]: Starting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'sys…tails.
Nov 02 19:36:57 osmc samba.distributed[292]: failed!
Nov 02 19:36:57 osmc systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
Nov 02 19:36:57 osmc systemd[1]: Failed to start Samba Server.
Nov 02 19:36:57 osmc systemd[1]: Unit samba.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
This is really strange as the logfile indcates samba is running while the systemd don’t think so. Maybe it is only the nmdb service crashed. Nov 02 19:36:57 osmc systemd[1]: Unit samba.service entered failed state. Nov 02 20:40:59 osmc nmbd[1356]: Samba name server OSMC has stopped being a local master browser for workgroup WORKGROUP on subnet 192.168.1.71
Suggest a couple of tests (please post the outputs: ps -aux | grep mbd sudo systemctl restart samba sudo systemctl status samba grab-logs -A cat /etc/samba/smb.conf | paste-log
It’s not appearing Windows Explorer. I tried entering \\IPaddress\osmc in bar at the top and tried adding a network location using that same address and neither changed anything.
Nov 02 21:16:59 osmc nmbd[1356]:
Nov 02 21:16:59 osmc nmbd[1356]: Samba name server OSMC has stopped being a local master browser for workgroup WORKGROUP on…168.1.71
Nov 02 21:16:59 osmc nmbd[1356]:
Nov 02 21:16:59 osmc nmbd[1356]: *****
Nov 02 21:17:17 osmc nmbd[1356]: [2017/11/02 21:17:17.000098, 0] …/source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
Nov 02 21:17:17 osmc nmbd[1356]: *****
Nov 02 21:17:17 osmc nmbd[1356]:
Nov 02 21:17:17 osmc nmbd[1356]: Samba name server OSMC is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.71
Nov 02 21:17:17 osmc nmbd[1356]:
Nov 02 21:17:17 osmc nmbd[1356]: *****
Hint: Some lines were ellipsized, use -l to show in full.
Normally that should be OK as you only can have one master and that role is always being negotiated.
The strange part is that you nmdb earlier failed to start while now it is working while you still can not connect