ubuntuusers.de

samba spinnt

Status: Gelöst | Ubuntu-Version: Ubuntu MATE 17.04 (Zesty Zapus)
Antworten |

cosinus

Avatar von cosinus

Anmeldungsdatum:
11. Mai 2010

Beiträge: 1374

Wohnort: HB

Moin

Hab hier auf meinem Ubuntu MATE Desktop-PC samba installiert, damit ich von Windows-Clients schnell und unkompliziert an Dateien rankomme.

Seit einiger Zeit, wann genau weiß ich nicht, scheint samba aber zu spinnen, der Service läuft direkt nach dem Booten nicht uns es kommen Fehlermeldungen, die ich nicht richtig einordnen kann, wieso fehlt da zB eine waitpid.c? 😕 (siehe Log unten)

ein systemctl status smbd ergibt:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
root@fuckup:/var/log/samba# systemctl status smbd
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: core-dump) since Sat 2017-07-22 12:55:44 CEST; 11min ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 1341 (code=dumped, signal=ABRT)
   Status: "smbd: ready to serve connections..."

Jul 22 12:55:43 fuckup smbd[1341]: [2017/07/22 12:55:43.550264,  0] ../source3/lib/util.c:803(smb_panic_s3)
Jul 22 12:55:43 fuckup smbd[1341]:   smb_panic(): calling panic action [/usr/share/samba/panic-action 1341]
Jul 22 12:55:44 fuckup smbd[1341]: [2017/07/22 12:55:44.463764,  0] ../source3/lib/util.c:811(smb_panic_s3)
Jul 22 12:55:44 fuckup smbd[1341]:   smb_panic(): action returned status 0
Jul 22 12:55:44 fuckup smbd[1341]: [2017/07/22 12:55:44.464454,  0] ../source3/lib/dumpcore.c:303(dump_core)
Jul 22 12:55:44 fuckup smbd[1341]:   dumping core in /var/log/samba/cores/smbd
Jul 22 12:55:44 fuckup smbd[1341]: 
Jul 22 12:55:44 fuckup systemd[1]: smbd.service: Main process exited, code=dumped, status=6/ABRT
Jul 22 12:55:44 fuckup systemd[1]: smbd.service: Unit entered failed state.
Jul 22 12:55:44 fuckup systemd[1]: smbd.service: Failed with result 'core-dump'.

Ich habe meinen Recher vorhin heu gestartet, das sind die Einträge aus /var/log/log.smbd seit dem letzten reboot:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[2017/07/22 12:55:43.498718,  0] ../source3/lib/interface.c:652(load_interfaces)
  WARNING: no network interfaces found
[2017/07/22 12:55:43.540720,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/22 12:55:43.547637,  0] ../source3/smbd/server.c:1248(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.
[2017/07/22 12:55:43.548027,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 1341): open_sockets_smbd() failed
[2017/07/22 12:55:43.550126,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 9 stack frames:
   #0 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f5395b202fc]
   #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f5395b203d0]
   #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f539805c9df]
   #3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14abe1) [0x7f5397c55be1]
   #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14af31) [0x7f5397c55f31]
   #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0(exit_server+0x12) [0x7f53956e3c12]
   #6 /usr/sbin/smbd(main+0x11e9) [0x5574455b4f59]
   #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f53943b33f1]
   #8 /usr/sbin/smbd(_start+0x2a) [0x5574455b55fa]
[2017/07/22 12:55:43.550264,  0] ../source3/lib/util.c:803(smb_panic_s3)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 1341]
29	../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis nicht gefunden.
[2017/07/22 12:55:44.463764,  0] ../source3/lib/util.c:811(smb_panic_s3)
  smb_panic(): action returned status 0
[2017/07/22 12:55:44.464454,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd

Tronde Team-Icon

Avatar von Tronde

Anmeldungsdatum:
23. November 2006

Beiträge: 1640

Hallo cosinus,

die folgenden Logeinträge liefern einige Hinweise:

1
2
3
4
5
6
[2017/07/22 12:55:43.540720,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/22 12:55:43.547637,  0] ../source3/smbd/server.c:1248(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.
[2017/07/22 12:55:43.548027,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 1341): open_sockets_smbd() failed

Diesen drei Einträgen ist zu entnehmen, dass der Dienst smbd gestartet wird, es jedoch keine Sockets gibt, an die er gebunden werden kann. Sprich der Dienst findet kein Netzwerkinterface, wo er den Port 445 binden kann um seine Dienste anzubieten. Daraufhin stürzt der Dienst ab und schreibt einen Core-Dump.

Im Netz habe ich etliche ältere Beiträge gefunden, die dieses Problem beschreiben. Ursache war stets, dass das Netzwerk noch nicht fertig konfiguriert war, während der smbd sich an eine Schnittstelle binden wollte. Dies lag meist an einem Fehler in der Startreihenfolge. Jedoch beziehen sich die gefundenen Beiträge alle auf ältere Init-Systeme und bieten für systemd keine passende Lösung.

Funktioniert denn deine Netzwerkanbindung nach dem Bootvorgang? Kannst du mal versuchen, wenn die Netzwerkverbindung sichergestellt ist, den smbd.service manuell zu starten und zu prüfen, ob er dann wie erwartet startet und läuft?

LG
Tronde

cosinus

(Themenstarter)
Avatar von cosinus

Anmeldungsdatum:
11. Mai 2010

Beiträge: 1374

Wohnort: HB

Hi und danke für deine AW 👍

Das mit den sockets ist mir garnicht aufgefallen, hab da nur die fehlende Datei gesehen und dann hier den Post eröffnet 😕

Netzwerk direkt nach dem Booten müsste ich mal testen. Ist die denn nicht automatisch da? Hab hier kein WLAN, aber IPs sind manuell konfiguriert aber nicht über /etc/network/interfaces (vllt ist das ja auch schon der Fehler)

Also ich kann im laufenden Betrieb smbd starten, dann läuft er auch. Hier mal das Log:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
root@fuckup:~# systemctl start smbd
root@fuckup:~# systemctl status smbd
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2017-07-22 14:30:25 CEST; 4s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 4894 (smbd)
   Status: "smbd: ready to serve connections..."
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/smbd.service
           ├─4894 /usr/sbin/smbd
           ├─4895 /usr/sbin/smbd
           ├─4896 /usr/sbin/smbd
           └─4898 /usr/sbin/smbd

Jul 22 14:30:25 fuckup systemd[1]: Starting Samba SMB Daemon...
Jul 22 14:30:25 fuckup systemd[1]: smbd.service: Supervising process 4894 which is not our child. We'll most likely not notice when it exits.
Jul 22 14:30:25 fuckup smbd[4894]: [2017/07/22 14:30:25.814708,  0] ../lib/util/become_daemon.c:124(daemon_ready)
Jul 22 14:30:25 fuckup smbd[4894]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections
Jul 22 14:30:25 fuckup systemd[1]: Started Samba SMB Daemon.

Hier die letzten 100 Zeilen von log.smbd:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
root@fuckup:~# tail -n 100 /var/log/samba/log.smbd
   #0 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f352b2302fc]
   #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f352b2303d0]
   #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f352d76c9df]
   #3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14abe1) [0x7f352d365be1]
   #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14af31) [0x7f352d365f31]
   #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0(exit_server+0x12) [0x7f352adf3c12]
   #6 /usr/sbin/smbd(main+0x11e9) [0x55bffcdcaf59]
   #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f3529ac33f1]
   #8 /usr/sbin/smbd(_start+0x2a) [0x55bffcdcb5fa]
[2017/07/20 21:39:07.296393,  0] ../source3/lib/util.c:803(smb_panic_s3)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 1352]
29	../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis nicht gefunden.
[2017/07/20 21:39:08.111591,  0] ../source3/lib/util.c:811(smb_panic_s3)
  smb_panic(): action returned status 0
[2017/07/20 21:39:08.111707,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2017/07/20 21:39:55.862723,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/20 23:00:31.957114,  0] ../source3/lib/interface.c:652(load_interfaces)
  WARNING: no network interfaces found
[2017/07/20 23:00:31.977279,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/20 23:00:31.980543,  0] ../source3/smbd/server.c:1248(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.
[2017/07/20 23:00:31.981595,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 1342): open_sockets_smbd() failed
[2017/07/20 23:00:31.982627,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 9 stack frames:
   #0 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f95599d82fc]
   #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f95599d83d0]
   #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f955bf149df]
   #3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14abe1) [0x7f955bb0dbe1]
   #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14af31) [0x7f955bb0df31]
   #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0(exit_server+0x12) [0x7f955959bc12]
   #6 /usr/sbin/smbd(main+0x11e9) [0x56268e9fff59]
   #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f955826b3f1]
   #8 /usr/sbin/smbd(_start+0x2a) [0x56268ea005fa]
[2017/07/20 23:00:31.982762,  0] ../source3/lib/util.c:803(smb_panic_s3)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 1342]
29	../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis nicht gefunden.
[2017/07/20 23:00:32.746896,  0] ../source3/lib/util.c:811(smb_panic_s3)
  smb_panic(): action returned status 0
[2017/07/20 23:00:32.750023,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2017/07/21 21:51:25.240392,  0] ../source3/lib/interface.c:652(load_interfaces)
  WARNING: no network interfaces found
[2017/07/21 21:51:25.280896,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/21 21:51:25.288304,  0] ../source3/smbd/server.c:1248(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.
[2017/07/21 21:51:25.288615,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 1381): open_sockets_smbd() failed
[2017/07/21 21:51:25.290964,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 9 stack frames:
   #0 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f17611702fc]
   #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f17611703d0]
   #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f17636ac9df]
   #3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14abe1) [0x7f17632a5be1]
   #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14af31) [0x7f17632a5f31]
   #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0(exit_server+0x12) [0x7f1760d33c12]
   #6 /usr/sbin/smbd(main+0x11e9) [0x5611f5d7ef59]
   #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f175fa033f1]
   #8 /usr/sbin/smbd(_start+0x2a) [0x5611f5d7f5fa]
[2017/07/21 21:51:25.291880,  0] ../source3/lib/util.c:803(smb_panic_s3)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 1381]
29	../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis nicht gefunden.
[2017/07/21 21:51:26.117826,  0] ../source3/lib/util.c:811(smb_panic_s3)
  smb_panic(): action returned status 0
[2017/07/21 21:51:26.117921,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2017/07/21 22:57:48.182323,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/22 12:55:43.498718,  0] ../source3/lib/interface.c:652(load_interfaces)
  WARNING: no network interfaces found
[2017/07/22 12:55:43.540720,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/07/22 12:55:43.547637,  0] ../source3/smbd/server.c:1248(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.
[2017/07/22 12:55:43.548027,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 1341): open_sockets_smbd() failed
[2017/07/22 12:55:43.550126,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 9 stack frames:
   #0 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f5395b202fc]
   #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f5395b203d0]
   #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f539805c9df]
   #3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14abe1) [0x7f5397c55be1]
   #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x14af31) [0x7f5397c55f31]
   #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0(exit_server+0x12) [0x7f53956e3c12]
   #6 /usr/sbin/smbd(main+0x11e9) [0x5574455b4f59]
   #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f53943b33f1]
   #8 /usr/sbin/smbd(_start+0x2a) [0x5574455b55fa]
[2017/07/22 12:55:43.550264,  0] ../source3/lib/util.c:803(smb_panic_s3)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 1341]
29	../sysdeps/unix/sysv/linux/waitpid.c: Datei oder Verzeichnis nicht gefunden.
[2017/07/22 12:55:44.463764,  0] ../source3/lib/util.c:811(smb_panic_s3)
  smb_panic(): action returned status 0
[2017/07/22 12:55:44.464454,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2017/07/22 14:30:25.814708,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections

cosinus

(Themenstarter)
Avatar von cosinus

Anmeldungsdatum:
11. Mai 2010

Beiträge: 1374

Wohnort: HB

So es geht wieder. Ich hab eben testweise die IP über /etc/network/interfaces festgelegt.

Beim reboot hab ich dann per systemctl festgestellt, dass er die Schnittstelle enp1s0 angeblich nicht finden konnte, obwohl die so wirklich hieß. 😕

Dann nächster Test: in /etc/grub/default die Zeile GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" eingetragen, damit er wieder eth0 für die Benennung der Netzwerkschnittstelle nimmt. Reboot und es geht wieder.

So, mal sehen was passiert wenn ich die IP nun wieder per NetworkManager in MATE vergebe.

cosinus

(Themenstarter)
Avatar von cosinus

Anmeldungsdatum:
11. Mai 2010

Beiträge: 1374

Wohnort: HB

Hab alles wieder zurückgestellt auf den Ursprung, ging natürlich nicht. Aber ich hab den Fehler in der smb.conf gefunden, ha da wohl mal irgendwann mit Optionen gespielt. Also hab ich die Zeilen

1
2
# interfaces = 192.168.2.0/24 enp1s0
# bind interfaces only = yes

wieder auskommentiert. Ist mir vorher nicht aufgefallen, dass die Problemen machen 😕

Aber es geht nun wieder.

Antworten |