[SOLVED] Samba error: sys_path_to_bdev() failed for path [.]! - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Others (/forum-24.html) +--- Thread: [SOLVED] Samba error: sys_path_to_bdev() failed for path [.]! (/thread-3961.html) |
Samba error: sys_path_to_bdev() failed for path [.]! - Dzintars Bergs - 10th Feb, 2018 01:53 AM 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? RE: Samba error: sys_path_to_bdev() failed for path [.]! - Skywatch - 10th Feb, 2018 11:18 PM 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. RE: Samba error: sys_path_to_bdev() failed for path [.]! - Dzintars Bergs - 10th Feb, 2018 11:40 PM 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 RE: Samba error: sys_path_to_bdev() failed for path [.]! - Nachteule - 10th Feb, 2018 11:57 PM @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 RE: Samba error: sys_path_to_bdev() failed for path [.]! - Dzintars Bergs - 11th Feb, 2018 12:12 AM 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. RE: Samba error: sys_path_to_bdev() failed for path [.]! - Nachteule - 11th Feb, 2018 12:15 AM Please check if Samba is running as daemon, for example by Code: sudo status smbd or Code: pgrep smbd RE: Samba error: sys_path_to_bdev() failed for path [.]! - Dzintars Bergs - 11th Feb, 2018 12:18 AM 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 RE: Samba error: sys_path_to_bdev() failed for path [.]! - Nachteule - 11th Feb, 2018 12:22 AM 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 RE: Samba error: sys_path_to_bdev() failed for path [.]! - Dzintars Bergs - 11th Feb, 2018 12:31 AM Yes, it works fine now. I changed RUN_MODE to daemon. Thanks again for help! RE: Samba error: sys_path_to_bdev() failed for path [.]! - Nachteule - 11th Feb, 2018 12:32 AM You're welcome |