Samba server not visible

Hi, I have Samba server configured on my Raspberry Pi 3, I don’t touched anything but it seems that not working properly in these days. Also tried to reboot(it start to works but then stops, services are running but not visible by other computers.

root@DietPi:~# service smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd)
   Active: active (running) since Tue 2017-05-16 02:08:43 CEST; 7h ago
  Process: 14066 ExecReload=/etc/init.d/smbd reload (code=exited, status=0/SUCCESS)
  Process: 1062 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/smbd.service
           ├─1071 /usr/sbin/smbd -D
           ├─1084 /usr/sbin/smbd -D
           ├─2753 /usr/sbin/smbd -D
           └─2856 /usr/sbin/smbd -D

May 16 07:43:55 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:07:44 DietPi systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:07:45 DietPi smbd[12607]: Reloading /etc/samba/smb.conf: smbd.
May 16 08:07:45 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:30:43 DietPi systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:30:43 DietPi smbd[13405]: Reloading /etc/samba/smb.conf: smbd.
May 16 08:30:43 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:57:13 DietPi systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
May 16 08:57:13 DietPi smbd[14066]: Reloading /etc/samba/smb.conf: smbd.
May 16 08:57:13 DietPi systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
root@DietPi:~# service nmbd status
● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
   Loaded: loaded (/etc/init.d/nmbd)
   Active: active (running) since Tue 2017-05-16 02:08:44 CEST; 7h ago
  Process: 1074 ExecStart=/etc/init.d/nmbd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/nmbd.service
           └─1092 /usr/sbin/nmbd -D

May 16 02:08:44 DietPi nmbd[1074]: Starting NetBIOS name server: nmbdinvalid permissions on directory '/var/log/samba/cores': has 0775 should be 0700
May 16 02:08:44 DietPi nmbd[1074]: Failed to create /var/log/samba/cores for user 0 with mode 0700
May 16 02:08:44 DietPi nmbd[1074]: Unable to setup corepath for nmbd: Success
May 16 02:08:44 DietPi nmbd[1074]: .
May 16 02:08:44 DietPi systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd).
root@DietPi:~# cat /etc/samba/smb.conf 
[global]

   workgroup = WORKGROUP
   server string = %h server
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog only = no
   syslog = 0

   panic action = /usr/share/samba/panic-action %d

   security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

   load printers = no

[dietpi]
   comment = DietPi Share
   path = /mnt/dietpi_userdata
   browseable = yes
   create mask = 0775
   directory mask = 0775
   valid users = root
   writeable = yes

[DATI200]
   comment = Disco dati
   path = /mnt/ab8c6eea-8424-417c-b268-5f3bdbbd153a
   browseable = yes
   create mask = 0775
   directory mask = 0775
   valid users = root
   writeable = yes

[DATI1TB]
   comment = Disco multimediale
   path = /mnt/2f9c68e0-f8f2-401b-81e5-98488f9d7ae0
   browseable = yes
   create mask = 0775
   directory mask = 0775
   valid users = root
   writeable = yes

What can I do?
Thank you.

P.S.: I’m running DietPi V149

Hi,

I see a few additional share entries :wink:

Aside from complaints regarding log file permission, Samba appears to be running fine. Does the DietPi share work with IP/hostname?
Win = Run > //IPADDRESS/dietpi
Win = Run > //HOSTNAME/dietpi

It was working with both(IP address and hostname) but now it doesn’t work with either of them.

It seems that also FTP connections not working properly.

I don’t know if it may help but every time that I’m doing something and DietPi stop services it stuck on stopping transmission-daemon service. And it’s very slow in stopping all services.

I don’t know which are the problems.

root@DietPi:~# netstat -tap 
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost:37641         *:*                     LISTEN      3057/Plex Plug-in [
tcp        0      0 localhost:mysql         *:*                     LISTEN      1610/mysqld     
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      1111/smbd       
tcp        0      0 localhost:40141         *:*                     LISTEN      2938/Plex Plug-in [
tcp        0      0 *:32400                 *:*                     LISTEN      1708/Plex Media Ser
tcp        0      0 localhost:32401         *:*                     LISTEN      1708/Plex Media Ser
tcp        0      0 *:32469                 *:*                     LISTEN      2711/Plex DLNA Serv
tcp        0      0 *:51413                 *:*                     LISTEN      1086/transmission-d
tcp        0      0 *:ssh                   *:*                     LISTEN      479/dropbear    
tcp        0      0 localhost:32600         *:*                     LISTEN      2714/Plex Tuner Ser
tcp        0      0 localhost:33789         *:*                     LISTEN      3181/Plex Plug-in [
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      1111/smbd       
tcp        0      0 localhost:34975         *:*                     LISTEN      2899/Plex Plug-in [
tcp        0      0 localhost:35075         *:*                     LISTEN      2769/Plex Plug-in [
tcp        0      0 localhost:36707         *:*                     LISTEN      2488/Plex Plug-in [
tcp        0      0 *:9091                  *:*                     LISTEN      1086/transmission-d
tcp        0      0 localhost:39141         *:*                     LISTEN      3154/Plex Plug-in [
tcp        0      0 *:1255                  *:*                     LISTEN      2711/Plex DLNA Serv
tcp        1      0 localhost:46870         localhost:36707         CLOSE_WAIT  2711/Plex DLNA Serv
tcp        0      0 localhost:32400         localhost:54094         TIME_WAIT   -               
tcp       32      0 DietPi.station:37996    ec2-52-209-184-60:https CLOSE_WAIT  2711/Plex DLNA Serv
tcp        0      0 DietPi.station:32469    vodafone.station:35230  TIME_WAIT   -               
tcp        0      0 localhost:32400         localhost:54100         TIME_WAIT   -               
tcp        0      0 localhost:32400         localhost:54096         TIME_WAIT   -               
tcp        0      0 localhost:32400         localhost:54098         TIME_WAIT   -               
tcp        0    196 DietPi.station:ssh      MBP-di-Gioele.sta:64230 ESTABLISHED 2606/dropbear   
tcp        1      0 localhost:46872         localhost:36707         CLOSE_WAIT  2711/Plex DLNA Serv
tcp        0      0 localhost:32400         localhost:54092         TIME_WAIT   -               
tcp        0      0 DietPi.station:43446    li1411-200.member:https ESTABLISHED 1708/Plex Media Ser
tcp        0      0 DietPi.station:32469    vodafone.station:35226  TIME_WAIT   -               
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN      1111/smbd       
tcp6       0      0 [::]:http               [::]:*                  LISTEN      1152/apache2    
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      1099/proftpd: (acce
tcp6       0      0 [::]:51413              [::]:*                  LISTEN      1086/transmission-d
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      479/dropbear    
tcp6       0      0 [::]:https              [::]:*                  LISTEN      1152/apache2    
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN      1111/smbd       
tcp6       1      0 DietPi.station:ftp      MBP-di-Gioele.sta:64278 CLOSE_WAIT  3259/proftpd: 192.1
tcp6       1      0 DietPi.station:ftp      net-47-53-44-63.cu:1024 CLOSE_WAIT  3115/proftpd: 47.53
tcp6       1      0 DietPi.station:ftp      MBP-di-Gioele.sta:64270 CLOSE_WAIT  3182/proftpd: 192.1

Sorry for multiple posts.

It stuck here when I try to launch dietpi-software:

root@DietPi:~# dietpi-software
 [Info] Checking RootFS R/W access. Please wait...
 [Ok] RootFS R/W access.
 [Info] Initializing database, please wait...
 [Info] Reading database, please wait...
 ───────────────────────────────────────
 DietPi     | 21:16 | Tue 16/05/17 
 ───────────────────────────────────────
 V150       | RPi 3 Model B (armv7l)
 ───────────────────────────────────────
 IP Address | 192.168.1.50
 ───────────────────────────────────────

 Welcome to DietPi-Software 

 [Ok] NTPD: time sync | Completed

 [Info] Detecting drives, please wait...
 [Info] Detected non-UUID mount: /dev/mmcblk0p1
 [Info] Detected non-UUID mount: /dev/mmcblk0p2
 [Info] Detected UUID mount: /dev/sda1
 [Info] Processing drive information, please wait...

USB drive may be failing, or insufficient power supply. Check dmesg for any information:

dmesg | grep sda

Most likely the cause for Transmission hangs aswell.

But the problem is that /dev/sdb power off and I need to turn it off and then on to re-use it. Every time I use /dev/sda it’s always on…