You are not logged in.
I have an Arch machine mounting a samba folder via CIFS:
mount -t cifs -o username="artvandelay",password="bosco",uid=1000,gid=1000,dir_mode=0755,file_mode=0644,port=12345,nosharesock,actimeo=30 //vandelayindustries.com/latex /home/art/latex
(domain and credentials are fictional )
Samba server is running on Alpine (smbd).
When I restart smbd on the server (rc-service samba restart), the CIFS mounted folder just dies and is unable to reestablish connection:
ls: latex: Host is down
I tried downgrading cifs-utils and linux(-lts), it didn't help.
I'm sure this worked before, and it does on Alpine CIFS client to Alpine SMB server.
Last edited by karabaja4 (2025-07-02 22:47:57)
Offline
I was unable to reproduce this behavior with an Arch client and a Debian Samba server and your mount options.
This looks not like an Arch issue to me.
Offline
ls: latex: Host is down
Have you tried to nmap the server to see whether that's true (for the relevant ports, 137-139 + 445)
Firewall?
Offline
ls: latex: Host is down
Have you tried to nmap the server to see whether that's true (for the relevant ports, 137-139 + 445)
Firewall?
It's a custom port (12345), and no, it's not true, the server is up, port is open and it's accessible from non-Arch clients. I can also umount and remount on the Arch client and the mounted folder works again.
Last edited by karabaja4 (2025-07-03 07:59:03)
Offline
DId you
nmap latex
?
Might also be a DNS problem, notably if you relying on https://wiki.archlinux.org/title/Samba# … host_names
Offline
"latex" is a directory name, it's how ls reports a disconnected host on a mounted folder.
~ >> nmap -p 12345 vandelayindustries.com
Starting Nmap 7.97 ( https://nmap.org ) at 2025-07-03 10:04 +0200
Nmap scan report for vandelayindustries.com (*.*.*.*)
Host is up (0.021s latency).
rDNS record for *.*.*.*: static.*.*.*.*.clients.your-server.de
PORT STATE SERVICE
12345/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.61 seconds
~ >> ls
ls: cannot access 'latex': Host is down
umount latex
mount -t cifs ... latex
... and everything works again.
I'm not relying on DNS, it also happens when I mount via IP directly.
Last edited by karabaja4 (2025-07-03 08:08:46)
Offline
Older posts specifically mentioning "Host is down" point to a SMB protocol mismatch error.
Can you verify the working CIFS mount protocol version via
mount
?
Offline
Protocol is SMB3_11 in all cases (I tried to force it on both ends, but it also auto-negotiates it without forcing it).
New information:
Happens only when a custom port is used (12345 in the example above), does not happen when default (445) port is used.
Not an Arch specific issue, actually happens on Alpine to Alpine on 6.12.35 kernels, that was a mistake in my testing.
There is no issue with Arch 6.6.72 kernel on the client (!). So it's some kind of kernel regression.
For now I probably won't be disecting the kernel, I'll just write a cron or something to remount when a disconnect happens or use a default port.
Last edited by karabaja4 (2025-07-07 00:55:17)
Offline
https://wiki.archlinux.org/title/Fstab# … ile_system ?
Is it actually the older kernel or rather (also?) an older https://archlinux.org/packages/extra/x86_64/cifs-utils/ ?
Edit: custom port aside, https://github.com/torvalds/linux/commi … 7de0577a1d looks interesting
Last edited by seth (2025-07-07 06:14:35)
Offline
Is it actually the older kernel or rather (also?) an older https://archlinux.org/packages/extra/x86_64/cifs-utils/ ?
Kernel only.
pacman -U https://archive.archlinux.org/packages/l/linux-lts/linux-lts-6.6.72-1-x86_64.pkg.tar.zst
Offline