Platform information:
Hardware: Raspberry Pi 3 Model B Rev 1.2
OS: Raspbian GNU/Linux 11 (bullseye)
openHAB version: openhabian 4.2.0
when I tried to share the logs, i tried to edit die smb.conf in the outlined way by ‘uncommand’ the [openHAB-logs] section … into this
But unfortunately, after that and after a reboot, no file shares worked at all.
Then I tried to heal it by following these steps:
I did’t change the mask even if the docu shows 0777, because all went fine before.
But when I followed the instructions on the docu, I got an Error on this step:
Something like: ‘/opt/openhab/conf’ - File not found
How can I fix it?
thx guys
/opt/openhab/conf seems to belong to a non apt-package based installation.
For apt based installations I think the related folder can be found at
/var/lib/openhab/conf.
Means what ? Any error message ?
Check if the configuration contains errors:
sudo testparm /etc/samba/smb.conf
Check if you can find error messages in the log files located in /var/log/samba/.
“no file shares worked at all.”
This means that not a single folder is shared via SMB! That not even the standard folders that worked before are available as share.
Oliver2
(Oliver)
July 28, 2024, 10:15pm
4
Is Samba active? What is the output of
systemctl status smbd nmbd
openhabian@OpenHab:~ $ systemctl status smbd nmbd
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: >
Active: active (running) since Sun 2024-07-28 22:47:56 CEST; 2 days ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 827 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (c>
Main PID: 829 (smbd)
Status: “smbd: ready to serve connections…”
Tasks: 4 (limit: 2176)
CPU: 8.482s
CGroup: /system.slice/smbd.service
├─829 /usr/sbin/smbd --foreground --no-process-group
├─842 /usr/sbin/smbd --foreground --no-process-group
├─843 /usr/sbin/smbd --foreground --no-process-group
└─854 /usr/sbin/smbd --foreground --no-process-group
Jul 28 22:47:55 OpenHab systemd[1]: Starting Samba SMB Daemon…
Jul 28 22:47:56 OpenHab systemd[1]: Started Samba SMB Daemon.
Jul 30 22:50:18 OpenHab smbd[26982]: pam_unix(samba:session): session closed for>
Jul 30 22:50:18 OpenHab smbd[26984]: pam_unix(samba:session): session closed for>
Jul 30 22:50:20 OpenHab smbd[26986]: pam_unix(samba:session): session closed for>
lines 1-23…skipping…
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-07-28 22:47:56 CEST; 2 days ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 827 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 829 (smbd)
Status: “smbd: ready to serve connections…”
Tasks: 4 (limit: 2176)
CPU: 8.482s
CGroup: /system.slice/smbd.service
├─829 /usr/sbin/smbd --foreground --no-process-group
├─842 /usr/sbin/smbd --foreground --no-process-group
├─843 /usr/sbin/smbd --foreground --no-process-group
└─854 /usr/sbin/smbd --foreground --no-process-group
Jul 28 22:47:55 OpenHab systemd[1]: Starting Samba SMB Daemon…
Jul 28 22:47:56 OpenHab systemd[1]: Started Samba SMB Daemon.
Jul 30 22:50:18 OpenHab smbd[26982]: pam_unix(samba:session): session closed for user nobody
Jul 30 22:50:18 OpenHab smbd[26984]: pam_unix(samba:session): session closed for user nobody
Jul 30 22:50:20 OpenHab smbd[26986]: pam_unix(samba:session): session closed for user nobody
● nmbd.service - Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-07-28 22:47:55 CEST; 2 days ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 753 (nmbd)
lines 1-30