You are not logged in.

#1 2022-10-14 13:57:54

gtarch
Member
Registered: 2022-10-14
Posts: 4

[SOLVED] NSD fails to start

I have a new installation of Arch and I'm trying to get NSD to work, but it refuses to get started by systemd.
systemctl start nsd gives me the following message in the logs:
nsd[25563]: error: unable to open the database /etc/nsd/nsd.db: Read-only file system

The thing is that /etc is not read only and neither is nsd.db. It (nsd.db) is owned by nsd and has read-write permissions.
NSD runs fine as root if I start it on the command line. So what could be the problem?

Last edited by gtarch (2022-10-15 12:07:45)

Offline

#2 2022-10-14 14:33:15

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] NSD fails to start

The service file seems to be set up for a db in /var/db/nsd with limited access to other parts of the filesystem: https://github.com/archlinux/svntogit-c … ervice#L10

Offline

#3 2022-10-14 15:13:55

gtarch
Member
Registered: 2022-10-14
Posts: 4

Re: [SOLVED] NSD fails to start

Thank you very much, Raynman!
I modified my config file to use /var/db/nsd/nsd.db and now it starts without a problem.

Offline

#4 2022-10-14 17:30:54

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] NSD fails to start

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB