Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SMB Server does not work

Featured Replies

Some days ago I found the array with all my disks unlocked.

 

After rebooting the server all seems to be ok, but since then (I do not know if the problem existed before), I can not access my server via SMB from any device at home (Home Assistant OS, Android Mobile, Windows 11..)

 

I tryed to stop the smb server, reestart the server and activate again but nothing changed.

 

I have also tryed to make a share folder public but it cotinued not having access.

 

Find attached my diagnostic file.

 

Thank you very much

 

nasdiego-diagnostics-20230511-1208.zip

Solved by dlandon

  • Community Expert

Give the name of a share you are trying to access, I checked a couple and they were not being exported.

  • Author

The following shares are, between other, setup a smb shared:

Andrea, Casa

image.png.3c79ae25ea6c8bb7084b3eff1661bb5f.png

image.png.0bd4fe5a47c5e41a5e88161d918603cd.png

 

Regarding System Logs it a shows:

image.thumb.png.ac8f930a41c4b0f5547e5c260049d827.png

In several periods of time

Thank you again

  • Community Expert

image.png

This is a problem, Samba is failing to start because of that secrest.tdb error, try deleting /boot/config/smbpasswd and reboot, note that I believe deleting that file will lose user stored passwords.

 

  • Author

I proceed to delete smbpasswd and Reestart (I have to force the shootdown) the system.

Once reestarted, smb continous not working.

I checked that smbpasswd whas reseted (as you said without other users different than root).

There are logs I am getting and the diagnostics file:image.thumb.png.d663e56ce7f10052fbe677453d88d28c.png

 

 

nasdiego-diagnostics-20230511-1534.zip

  • Community Expert

@dlandonany idea what could cause the secrets.tdb fail to load?

Having this issue (smb all of a sudden not working) as well as constant hard locks, since upgrading to 12rc5, rolling back - even after restoring from backup before everything...will post my own thread once I power cycle and turn on syslog server 

At a command line, what is the output of these commands:

ls -la /var/lib/

and

ls -la /var/lib/samba/

 

  • Author
2 hours ago, dlandon said:

At a command line, what is the output of these commands:

ls -la /var/lib/

and

ls -la /var/lib/samba/

 

root@NASDiego:~# ls -la /var/lib/
total 16
drwxr-xr-x 14 root       root   280 Nov 20 22:27 ./
drwxr-xr-x 15 root       root   360 Dec 31  2019 ../
drwxr-xr-x  2 root       root    40 Oct  6  2022 arpd/
drwxr-xr-x  2 messagebus root    60 May 11 15:24 dbus/
drwxr-x---  2 root       root    40 Aug 28  2022 dhcpcd/
drwx--x---  1 root       root   254 May 11 16:18 docker/
drwxr-xr-x 10 root       root   220 Nov 20 22:26 libvirt/
drwxr-xr-x  6 rpc        rpc    220 May 11 16:18 nfs/
drwx------  7 root       root   140 May 11 15:25 nginx/
drwxrwxr-x  2 ntp        ntp     60 May 11 21:24 ntp/
drwxrwx---  2 root       apache 100 May 11 21:45 php/
drwxr-xr-x  6 root       root   160 Nov 20 22:26 pkgtools/
drwxr-xr-x  4 root       root    80 Nov 15 21:10 samba/
drwxr-xr-x  2 root       root    40 May  1  2022 swtpm-localca/
root@NASDiego:~# ls -la /var/lib/samba/
total 0
drwxr-xr-x  4 root root  80 Nov 15 21:10 ./
drwxr-xr-x 14 root root 280 Nov 20 22:27 ../
drwxrwx---  2 root root  40 Nov 15 21:10 bind-dns/
drwx------  3 root root 100 May 11 16:18 private/

 

Thank you again

  • Author

Up

  • Community Expert

Like mentioned above upgrade to v6.12-rc5 and post new diags.

  • Author
1 hour ago, JorgeB said:

Like mentioned above upgrade to v6.12-rc5 and post new diags.

Sorry, my English is not as well as I want but I undertooth in @dlandon post that someone (I didn't get alluded to due to I am not in v6.12-rc5) that posts 6.12-rc5 diagnostics to evaluate.

I also understand that the problems of @OneMeanRabbit started when he upgraded to 6.12-rc5.

 

So, being me in 6.11.5, are you recommending me to upgrade to 6.12-rc5?

 

Thank you

Edited by dellorianes

  • Community Expert
18 minutes ago, dellorianes said:

So, being me in 6.11.5, are you recommending me to upgrade to 6.12-rc5?

Yes, but if you didn't yet that try booting in safe mode first, if the same error is there upgrade.

  • Author
8 hours ago, JorgeB said:

Yes, but if you didn't yet that try booting in safe mode first, if the same error is there upgrade.

Tryed safe mode and continued the same.

 

Upgraded to 6.12-rc5 and the same again. Find diagnostics attached.

 

May 15 22:47:17 NASDiego kernel: Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
May 15 22:47:17 NASDiego kernel: ACPI: Early table checksum verification disabled
May 15 22:47:17 NASDiego kernel: floppy0: no floppy controllers found
May 15 22:47:17 NASDiego kernel: Bluetooth: hci0: FW download error recovery failed (-19)
May 15 22:47:17 NASDiego kernel: i915 0000:00:02.0: [drm] failed to retrieve link info, disabling eDP
May 15 22:47:26 NASDiego mcelog: failed to prefill DIMM database from DMI data
May 15 22:47:27 NASDiego smbd[1563]:   tdb(/var/lib/samba/private/secrets.tdb): tdb_transaction_recover: failed to read recovery record
May 15 22:47:27 NASDiego smbd[1563]:   Failed to open /var/lib/samba/private/secrets.tdb
May 15 22:47:27 NASDiego smbd[1564]:   tdb(/var/lib/samba/private/secrets.tdb): tdb_transaction_recover: failed to read recovery record
May 15 22:47:27 NASDiego smbd[1564]:   Failed to open /var/lib/samba/private/secrets.tdb
May 15 22:47:27 NASDiego smbd[1564]:   exit_daemon: daemon failed to start: smbd can not open secrets.tdb, error code 13
May 15 22:47:27 NASDiego winbindd[1577]:   tdb(/var/lib/samba/private/secrets.tdb): tdb_transaction_recover: failed to read recovery record
May 15 22:47:27 NASDiego winbindd[1577]:   Failed to open /var/lib/samba/private/secrets.tdb
May 15 22:47:59 NASDiego kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x0000000000000299 (\AMW0.SHWM) (20220331/utaddress-204)

 

nasdiego-diagnostics-20230515-2252.zip

  • Solution

Start by removing the smb-extra.conf entries:

 path = /mnt/disks/gDrive
      comment =
      browseable = yes
      # Public
      public = yes
      writeable = yes
      vfs objects =

That's a UD disk and UD can do the sharing for you.

  • Author
9 hours ago, dlandon said:

Start by removing the smb-extra.conf entries:

 path = /mnt/disks/gDrive
      comment =
      browseable = yes
      # Public
      public = yes
      writeable = yes
      vfs objects =

That's a UD disk and UD can do the sharing for you.

 

After removing that, SMB server started to work again.

 

Fix common problems also warned me to change macvlan to ipvlan in Docker settings.

 

Thank you very much.

 

Now, I also have this warning after reset. Should I do something with them?

 

May 16 07:26:52 NASDiego kernel: Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA
May 16 07:26:52 NASDiego kernel: ACPI: Early table checksum verification disabled
May 16 07:26:52 NASDiego kernel: floppy0: no floppy controllers found
May 16 07:26:52 NASDiego kernel: i915 0000:00:02.0: [drm] failed to retrieve link info, disabling eDP
May 16 07:26:57 NASDiego mcelog: failed to prefill DIMM database from DMI data
May 16 07:27:28 NASDiego kernel: ACPI Warning: SystemIO range 0x0000000000000295-0x0000000000000296 conflicts with OpRegion 0x0000000000000290-0x0000000000000299 (\AMW0.SHWM) (20220331/utaddress-204)
May 16 07:27:55 NASDiego rpc.statd[10765]: Failed to read /var/lib/nfs/state: Success
May 16 07:28:05 NASDiego kernel: BTRFS info (device sdi1): using crc32c (crc32c-intel) checksum algorithm
May 16 07:28:35 NASDiego kernel: BTRFS info (device loop2): using crc32c (crc32c-intel) checksum algorithm
May 16 07:28:40 NASDiego kernel: BTRFS info (device loop3): using crc32c (crc32c-intel) checksum algorithm

 

Edited by dellorianes

  • Community Expert

You can ignore those.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.