I use OMV as file and media server. I've been running a Tvheadend container (host mode) and an Oscam container (bridge mode) for several months without problems. Oscam is listening to TVH requests on port 9000. The setup used to work without problems for several months. Some weeks ago, I started to run into issues. At apparently random times (usually once or twice per day), the Oscam container would lose its "connection" to the TVH container and start writing "unknown socket" errors in it's log file. At that stage I also lost my ability to descramble programs via Oscam. Restarting either Tvheadend or Oscam (no matter which) solved the problem and reestablished the proper configuration.
In order to "debug" the problem, I compared the timestamps of when Oscam starts writing the "unknown socket" errors, with the OMV syslog, and found smbd error messages appeared coincidently. Here the output of systemctl status smbd, which describes the errors (the last two lines also appear in the syslog):
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-09-12 22:07:02 CEST; 22h ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 1998 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 7 (limit: 4915)
Memory: 24.4M
CGroup: /system.slice/smbd.service
├─ 1998 /usr/sbin/smbd --foreground --no-process-group
├─ 2001 /usr/sbin/smbd --foreground --no-process-group
├─ 2002 /usr/sbin/smbd --foreground --no-process-group
├─ 2200 /usr/sbin/smbd --foreground --no-process-group
├─ 2221 /usr/sbin/smbd --foreground --no-process-group
├─10039 /usr/sbin/smbd --foreground --no-process-group
└─32614 /usr/sbin/smbd --foreground --no-process-group
Sep 12 22:07:02 MyRS.local systemd[1]: Starting Samba SMB Daemon...
Sep 12 22:07:02 MyRS.local smbd[1998]: [2020/09/12 22:07:02.268971, 0] ../lib/util/become_daemon.c:138(daemon_ready)
Sep 12 22:07:02 MyRS.local smbd[1998]: daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
Sep 12 22:07:02 MyRS.local systemd[1]: Started Samba SMB Daemon.
Sep 12 22:07:05 MyRS.local systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid → /run/samba/smbd.pid; please update the unit file accordingly.
Sep 13 12:26:32 MyRS.local smbd[16754]: [2020/09/13 12:26:32.298743, 0] ../source3/smbd/process.c:335(read_packet_remainder)
Sep 13 12:26:32 MyRS.local smbd[16754]: read_fd_with_timeout failed for client 192.168.1.1 read error = NT_STATUS_END_OF_FILE.
Alles anzeigen
192.168.1.1 is the IP address of my gateway. Do you have any idea, what "breaks" the connection of the two docker containers? I'm wondering whether the smbd error is causal or just coincident with that breakage, but also don't know how to "debug" this further...
Any help appreciated...