You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both nscd and nsncd are failing to create/write/access the socket over at /var/run/nscd/socket.
I'm on a fresh 23.05 install.
Relevant nsncd logs:
Oct 03 12:20:52 niconix nsncd[717]: Oct 03 12:20:52.637 INFO started, handoff_timeout: 3s, worker_count: 8, path: "/var/run/nscd/socket"
Oct 03 12:20:52 niconix nsncd[717]: Error: Read-only file system (os error 30)
The /var/run/nscd folder does not exist. Creating it and giving permissions (either setting nscd as owner, or even going as far as making it world read+write), changes the error slightly:
Oct 06 09:57:38 niconix nsncd[1325]: Oct 06 09:57:38.078 INFO started, handoff_timeout: 3s, worker_count: 8, path: "/var/run/nscd/socket"
Oct 06 09:57:38 niconix nsncd[1325]: Error: could not bind to socket
Oct 06 09:57:38 niconix nsncd[1325]: Caused by:
Oct 06 09:57:38 niconix nsncd[1325]: Read-only file system (os error 30)
Side note: I found this nsncd issue comment that seems to indicate /var/run should be a symlink to /run but I have no such symlink, and there is contents under /var/run for lightdm and NetworkManager so I'm not sure I'm safe to manually move everything over.
Switching back to nscd shows the same type of error happening:
Steps To Reproduce
Not quite sure at this stage
Expected behavior
nscnd should not fail to manage its socket.
Screenshots
N/A
Additional context
Worth pointing out that I fell victim of this issue. I applied the workaround and reran the script without error eventually. I'm mentioning in case there is a slight chance that the symlink creation not happening could be a side effect of that unexpected initial interruption
I'm not sure what normally creates the /var/run symlink but we should just add a tmpfiles.d rule so that it's always created. We should not depend on long lived filesystem state e.g the rootfs could be tmpfs.
Describe the bug
Both
nscd
andnsncd
are failing to create/write/access the socket over at/var/run/nscd/socket
.I'm on a fresh
23.05
install.Relevant
nsncd
logs:The
/var/run/nscd
folder does not exist. Creating it and giving permissions (either settingnscd
as owner, or even going as far as making it world read+write), changes the error slightly:Side note: I found this nsncd issue comment that seems to indicate
/var/run
should be a symlink to/run
but I have no such symlink, and there is contents under/var/run
forlightdm
andNetworkManager
so I'm not sure I'm safe to manually move everything over.Switching back to
nscd
shows the same type of error happening:Steps To Reproduce
Not quite sure at this stage
Expected behavior
nscnd
should not fail to manage its socket.Screenshots
N/A
Additional context
Worth pointing out that I fell victim of this issue. I applied the workaround and reran the script without error eventually. I'm mentioning in case there is a slight chance that the symlink creation not happening could be a side effect of that unexpected initial interruption
Notify maintainers
Metadata
The text was updated successfully, but these errors were encountered: