Forum

Full Version: Samba error: sys_path_to_bdev() failed for path [.]!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Samba stoped working few days ago. All clients are failing to connect. /var/log/samba/log.smbd log is full of this message:
Terminal
[2018/02/05 09:16:03.212296, 0] ../source3/lib/sysquotas.c:461(sys_get_quota)
sys_path_to_bdev() failed for path [.]!

Any ideas?
I think it will require a few more details to sort this out.

For a start what is in your samba config file? What mounts? etc.... The more info you can give the more likely someone can help you.
I did not make any changes in configuration, when samba stopped working. I think problem is related to some automaticly installed update.

smb.conf
Terminal
# DO NOT EDIT THIS FILE. FOR ADDITIONAL SETTINGS OR SHARES DEFINITION
# USE 'net' (man net).

[global]
server string = PI2
# guest ok = yes
guest ok = no
security = user
socket options = TCP_NODELAY SO_RCVBUF=65535 SO_SNDBUF=65535
registry shares = yes
syslog = 0
map to guest = bad user
workgroup = DZB
bind interfaces only = No
encrypt passwords = true
log level = 0
# smb ports = 445
unix extensions = No
wide links = yes

# Some routers requires following performance tweaks
# (see http://forum.xbian.org/thread-3851.html)
# Uncomment following 3 lines if necessary

# aio read size = 2048
# aio write size = 2048
# socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072

include = /etc/samba/user.conf
include = /etc/samba/shares.conf

shares.conf:
Terminal
[data]
path = /data
guest ok = no
read only = no
valid users = user1
browseable = yes
veto files = /._*/.DS_Store/
delete veto files = yes

[download]
path = /data/download
guest ok = no
read only = no
valid users = user1 user2
browseable = yes
veto files = /._*/.DS_Store/
delete veto files = yes
@Dzintars Bergs

Could you please check if Samba is running as daemon or started by inetd? I made some modifications in xbian-package-config-shell and maybe this does not work on your manually editied machine (you remenber your last samba issue)

Please read comments in file /etc/default/samba
Samba was running as daemon before. Now RUN_MODE="inetd" is uncomented:
Terminal
#
# Run mode of Samba (smbd) process. If set to 'inetd', smbd is
# being spawned by inetd daemon on request, otherwise smbd is
# started as daemon via smbd upstart job. After changing this
# variable, you have to run 'sudo xbian-config services select'
# or reboot system
#
RUN_MODE=inetd

I tried to comment the line and restart, it did not help.
Please check if Samba is running as daemon, for example by

Code:
sudo status smbd

or

Code:
pgrep smbd
I checked xbian-config. Samba service was disabled. I enbaled autostort, commented "RUN_MODE=inetd". Now samba works and is running as daemon.

Terminal
root@pi2 ~ # status smbd
smbd start/running, process 1169
So it's working again? Fine

Please do not comment the RUN_MODE line, it's better to write

Code:
RUN_MODE=daemon

instead, because upcoming xbian-config GUI allows you to switch between inetd and daemon mode without editing anything, and for that this line is required
Yes, it works fine now. I changed RUN_MODE to daemon. Thanks again for help! Smile
You're welcome Smile
Reference URL's