× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

SMB service not starting on ReadyNAS 314

MukeshCS
Tutor

SMB service not starting on ReadyNAS 314

Hello Team,

I have a ReadyNAS 314, which has been working fine for last few years.

Current Firmware: 6.10.4

Suddnely, I am unable to start the SMB service on it.

Based on some other discussions, tried downgrading and upgrading the firmware, but no help.

 

I am not an expert with Linux, but have been able to connect to the system via SSH.

An attempt to start the smb service fails with this message:

 

systemctl start smb.service
Failed to start smb.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status smb.service' for details.

 

When searched on the error "The name org.freedesktop.PolicyKit1 was not provided by any .service files" found that it might be due to the fact that I haven't used sudo command before starting the service. sudo command is not accepted by the ssh session for some reason.

 

I referred to the discussion: OS6.2.2 - Service SMB suddenly stopped working, wo... - NETGEAR Communities but could not find a way to look into the smbd.log file

 

I will appreciate any suggestions to solve the problem.

 

Model: RN31400|ReadyNAS 300 Series 4- Bay (Diskless)
Message 1 of 15
StephenB
Guru

Re: SMB service not starting on ReadyNAS 314

You are supposed to log in with ssh using root as the username (and using the NAS admin password).  If you did that, then there's no need for sudo.

 

Did you check for a full OS partition? (or see any errors in the web ui saying that root is full)?

What apps do you have installed? 

 


@MukeshCS wrote:

but could not find a way to look into the smbd.log file

 


Download the log zip file from the logs tab of the web ui.  It's in there (along with a lot of other logs that might have clues on what is going on).

 

For instance, if you look in volume.log, you can scroll down to the df - h section:

=== df -h ===
Filesystem      Size  Used Avail Use% Mounted on
udev             10M  4.0K   10M   1% /dev
/dev/md0        4.0G  650M  3.0G  18% /
...

/dev/md0 is the OS partition - you can see in the above snippet that the OS partition on this NAS is 18% full.  Normally it is ~20% or so.  If it gets full for some reason, the configuration files in the NAS can get corrupted - which is a common cause for your particular problem.

Message 2 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

Thank you very much @StephenB for the guidance.

I am logged in with the root user now, and still unable to start the service.

Output of the df -h command is this:

 

df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 4.0K 10M 1% /dev
/dev/md0 4.0G 1.8G 1.9G 49% /
tmpfs 993M 4.0K 993M 1% /dev/shm
tmpfs 993M 13M 980M 2% /run
tmpfs 497M 4.0K 497M 1% /run/lock
tmpfs 993M 0 993M 0% /sys/fs/cgroup
/dev/md127 3.7T 2.2T 1.6T 58% /data
/dev/md127 3.7T 2.2T 1.6T 58% /home
/dev/md127 3.7T 2.2T 1.6T 58% /apps
/dev/md127 3.7T 2.2T 1.6T 58% /vault
/dev/md127 3.7T 2.2T 1.6T 58% /var/ftp/Folder1
/dev/md127 3.7T 2.2T 1.6T 58% /run/nfs4/data/Folder2
/dev/md127 3.7T 2.2T 1.6T 58% /run/nfs4/data/Folder3
/dev/md127 3.7T 2.2T 1.6T 58% /run/nfs4/data/Folder4
/dev/md127 3.7T 2.2T 1.6T 58% /run/nfs4/data/Folder5
tmpfs 4.0K 0 4.0K 0% /data/Folder6
tmpfs 4.0K 0 4.0K 0% /home/admin/snapshot
tmpfs 4.0K 0 4.0K 0% /home/Folder7/snapshot
tmpfs 4.0K 0 4.0K 0% /home/Folder8/snapshot

 

Root directory is 49% full. How can I free it up?

Looking into the logs directory, I also found systemctl-status.log file and it shows failure for the following services:

 

● smb.service loaded failed failed Samba SMB Daemon

● radar.service loaded failed failed Radar Update

● auto-fw-reminder.service loaded failed failed ReadyNAS Firmware Update Reminder
● auto-fw-update.service loaded failed failed ReadyNAS Firmware Update

 

There are no apps installed, except SMB Plus. app-install.log shows "-- No entries --"

Looked in the web ui logs, there are no errors complaining about the OS drive being full

 

Looking forward to the suggestions. Please do let me know, if you would like to see any other logs, I am happy to share them.

 

 

Message 3 of 15
StephenB
Guru

Re: SMB service not starting on ReadyNAS 314


@MukeshCS wrote:

 

Root directory is 49% full. How can I free it up?

 


What apps do you have installed?

 


@MukeshCS wrote:

 

● smb.service loaded failed failed Samba SMB Daemon

 


Can you try restarting it from ssh - that might give you more information on what's going on.

Message 4 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

Thanks again @StephenB 

As I said earlier, there are no apps installed except "SMB Plus".

In the past I had Plex, VPN and few other apps installe,d but had uninstalled them long time back.

Restarting the service doesn't give any more details, as the service is already stopped. Anyways tried restarting it and this is what I get:

 

systemctl restart smb.service
Job for smb.service failed because the control process exited with error code.
See "systemctl status smb.service" and "journalctl -xe" for details.

 

systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-02-07 10:35:33 AEDT; 2min 10s ago
Process: 8038 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 8038 (code=exited, status=1/FAILURE)

Feb 07 10:35:32 MukeshNAS systemd[1]: Starting Samba SMB Daemon...
Feb 07 10:35:33 MukeshNAS systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Feb 07 10:35:33 MukeshNAS systemd[1]: Failed to start Samba SMB Daemon.
Feb 07 10:35:33 MukeshNAS systemd[1]: smb.service: Unit entered failed state.
Feb 07 10:35:33 MukeshNAS systemd[1]: smb.service: Failed with result 'exit-code'.

 

journalctl -xe
-- Logs begin at Thu 2021-01-28 11:29:14 AEDT, end at Sun 2021-02-07 10:37:58 AEDT. --
Feb 07 08:40:15 MukeshNAS ng-csd[3570]: Faild to get changes. Error #18
Feb 07 08:40:15 MukeshNAS ng-csd[3570]: Failed to downsync changes. Error #18
Feb 07 08:40:45 MukeshNAS ng-csd[3570]: Encountered OneDriveError: resyncRequired
Feb 07 08:40:45 MukeshNAS ng-csd[3570]: Faild to get changes. Error #18
Feb 07 08:40:45 MukeshNAS ng-csd[3570]: Failed to downsync changes. Error #18
Feb 07 08:41:16 MukeshNAS ng-csd[3570]: Encountered OneDriveError: resyncRequired
Feb 07 08:41:16 MukeshNAS ng-csd[3570]: Faild to get changes. Error #18
Feb 07 08:41:16 MukeshNAS ng-csd[3570]: Failed to downsync changes. Error #18
Feb 07 08:41:46 MukeshNAS ng-csd[3570]: Encountered OneDriveError: resyncRequired
Feb 07 08:41:46 MukeshNAS ng-csd[3570]: Faild to get changes. Error #18
Feb 07 08:41:46 MukeshNAS ng-csd[3570]: Failed to downsync changes. Error #18
Feb 07 08:42:16 MukeshNAS ng-csd[3570]: Encountered OneDriveError: resyncRequired
Feb 07 08:42:16 MukeshNAS ng-csd[3570]: Faild to get changes. Error #18
Feb 07 08:42:16 MukeshNAS ng-csd[3570]: Failed to downsync changes. Error #18
Feb 07 08:42:47 MukeshNAS ng-csd[3570]: Encountered OneDriveError: resyncRequired
Feb 07 08:42:47 MukeshNAS ng-csd[3570]: Faild to get changes. Error #18
Feb 07 08:42:47 MukeshNAS ng-csd[3570]: Failed to downsync changes. Error #18
Feb 07 08:43:00 MukeshNAS dbus[2687]: [system] Activating service name='org.opensuse.Snapper' (using servicehelper)
Feb 07 08:43:00 MukeshNAS dbus[2687]: [system] Successfully activated service 'org.opensuse.Snapper'
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 522 failed
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 522 failed
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 507 failed
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 518 failed
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 501 failed
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 499 failed
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:00 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:00 MukeshNAS snapperd[32163]: loading 480 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 506 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 417 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 373 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 324 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 311 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 522 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: ^
Feb 07 08:43:01 MukeshNAS snapperd[32163]: loading 281 failed
Feb 07 08:43:01 MukeshNAS org.opensuse.Snapper[2687]: :1: parser error : Document is empty

Message 5 of 15
StephenB
Guru

Re: SMB service not starting on ReadyNAS 314


@MukeshCS wrote:

 

In the past I had Plex, VPN and few other apps installe,d but had uninstalled them long time back.

It could be something left behind by one of those - plex can leave behind transcoding files in the OS partition.  To rule that out you can try this:

# mount --bind / /mnt
# cd /mnt
# find . -name chunk*.m4s

If you find this, just remove them.

 

Undo the mount when done with 

# umount /mnt

 

But 49% isn't full enough to corrupt the configuration files.  Do you have a back up of the data?

Message 6 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

Searching for the error message: "Failed to start Samba SMB Daemon" I also reinstalled samba following this article: Solved: Re: Readynas 104 SMB won't activate - NETGEAR Communities

Rebooted the NAS, still the service failed to start:

 

systemctl start smb.service
Job for smb.service failed because the control process exited with error code.
See "systemctl status smb.service" and "journalctl -xe" for details.
root@MukeshNAS:~# systemctl status -a smb
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-02-07 10:49:32 AEDT; 6s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 7555 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 7555 (code=exited, status=1/FAILURE)

Feb 07 10:49:29 MukeshNAS systemd[1]: Starting Samba SMB Daemon...
Feb 07 10:49:32 MukeshNAS systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Feb 07 10:49:32 MukeshNAS systemd[1]: Failed to start Samba SMB Daemon.
Feb 07 10:49:32 MukeshNAS systemd[1]: smb.service: Unit entered failed state.
Feb 07 10:49:32 MukeshNAS systemd[1]: smb.service: Failed with result 'exit-code'.

Message 7 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

I followed the suggestion to look for left over files from Plex, there isn't anything:


root@MukeshNAS:~# mount --bind / /mnt
root@MukeshNAS:~# cd /mnt
root@MukeshNAS:/mnt# find . -name chunk*.m4s
root@MukeshNAS:/mnt#

Message 8 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

Sorry forgot to answer the question about the backup.

I have over 2 TB of data on the NAS and there is no ther place, where I can back it up, unfortunately 😞

Message 9 of 15
StephenB
Guru

Re: SMB service not starting on ReadyNAS 314


@MukeshCS wrote:

I followed the suggestion to look for left over files from Plex, there isn't anything:


root@MukeshNAS:~# mount --bind / /mnt
root@MukeshNAS:~# cd /mnt
root@MukeshNAS:/mnt# find . -name chunk*.m4s
root@MukeshNAS:/mnt#


Ok.  There are certainly other possibilities, but it's hard to explain what to look for.

 

When I mount my OS partition this way, I then see

root@NAS:/mnt# du -sh *
0       apps
6.4M    bin
0       boot
0       data
24K     dev
11M     etc
30M     frontview
0       ftp_ban.tbl
0       home
4.0K    homes
33M     lib
4.0K    lib64
0       media
0       mnt
4.6M    opt
0       proc
40K     root
0       run
11M     sbin
0       srv
0       sys
0       tmp
273M    usr
613M    var
root@NAS:/mnt#

That might give you some idea on where the space is going.

 

No idea on what's happening with the smb.service problem though.

Message 10 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

Thanks @StephenB 

I can understand that it's difficult to troubleshoot via these messages, but I appreciate you looking into this for me.

Here is the output:

du -sh *
0 1
0 apps
6.4M bin
0 boot
0 data
24K dev
13M etc
30M frontview
0 ftp_ban.tbl
0 home
4.0K homes
33M lib
4.0K lib64
428K log-archive
12K logs
0 media
0 mnt
4.7M opt
0 proc
24K root
0 run
11M sbin
0 srv
0 sys
1.4M tmp
268M usr
1.9G var
0 vault

 

Looks like var directory is consuming most of the space.

Are you thinking that factory reset might be the only option to fix this issue with SMB?

Message 11 of 15
StephenB
Guru

Re: SMB service not starting on ReadyNAS 314

You can delete the folders that weren't in my list.  And you can delete everything in tmp.

 

Going down a level, here is what I see in /mnt/var

root@NAS:/mnt/var# du -sh *
104M    backups
45M     cache
0       cores
0       ftp
386M    lib
0       local
4.0K    lock
59M     log
0       mail
8.0K    netatalk
0       opt
20M     readynasd
4.0K    run
4.0K    spool
0       tmp
4.0K    www
root@NAS:/mnt/var#

@MukeshCS wrote:

Are you thinking that factory reset might be the only option to fix this issue with SMB?


It's perhaps not the only way, but it is one way, and we easily could end up there.

 

 

 

Message 12 of 15
hoge
Initiate

Re: SMB service not starting on ReadyNAS 314

Hello,

 

I faced same issue on 6.10.4.

 

The issue resolved by downgrading to 6.10.2.

When downgrading,I can easily start SMB service.

 

So I might think 6.10.4 has a severe bug.

 

If you've worried about the issue,try it!

 

Model: RN528X|ReadyNAS 528X - Premium Performance Business Data Storage - 8-Bay
Message 13 of 15
StephenB
Guru

Re: SMB service not starting on ReadyNAS 314


@hoge wrote:

 

The issue resolved by downgrading to 6.10.2.

When downgrading,I can easily start SMB service.

 


I'm running 6.10.4 on several ReadyNAS, and am not seeing this problem on any of them.

 

Though it is easy to downgrade to 6.10.3 or 6.10.2 and see.

Message 14 of 15
MukeshCS
Tutor

Re: SMB service not starting on ReadyNAS 314

@hoge thanks for your response.
I did try that but it did not make any difference.
In the end had to take a backup of data and then factory reset the device.
It’s working as expected now.
Message 15 of 15
Top Contributors
Discussion stats
  • 14 replies
  • 3052 views
  • 4 kudos
  • 3 in conversation
Announcements