FS#59136 - [powerdns] chroot when running from systemd

Attached to Project: Community Packages
Opened by Anton Hvornum (Torxed) - Sunday, 24 June 2018, 21:27 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 25 June 2018, 01:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Jun 24 23:25:18 Hostname systemd[1]: Starting PowerDNS Authoritative Server...
Jun 24 23:25:19 Hostname pdns_server[17102]: UDP server bound to 0.0.0.0:53
Jun 24 23:25:19 Hostname pdns_server[17102]: UDPv6 server bound to [::]:53
Jun 24 23:25:19 Hostname pdns_server[17102]: TCP server bound to 0.0.0.0:53
Jun 24 23:25:19 Hostname pdns_server[17102]: TCPv6 server bound to [::]:53
Jun 24 23:25:19 Hostname pdns_server[17102]: Unable to chroot when running from systemd. Please disable chroot= or set the 'Type' for this service to 'simple'
Jun 24 23:25:19 Hostname systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jun 24 23:25:19 Hostname systemd[1]: pdns.service: Failed with result 'exit-code'.
Jun 24 23:25:19 Hostname systemd[1]: Failed to start PowerDNS Authoritative Server.

Additional info:
* package version(s) powerdns 4.1.3-2

This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 25 June 2018, 01:30 GMT
Reason for closing:  Not a bug
Additional comments about closing:  You set the chroot option, it's your responsibility to set the other options it needs.
Comment by Anton Hvornum (Torxed) - Sunday, 24 June 2018, 21:29 GMT
The fix for it is to modify /usr/lib/systemd/system/pdns.service and set the type to `Type=simple` as per error message.
However, seams odd that this has to be done each installation/upgrade, so a change to the build script may be in order?
Comment by Doug Newgard (Scimmia) - Monday, 25 June 2018, 00:36 GMT
I don't know anything about pdns, where is chroot= coming from? Your config?
Comment by Eli Schwartz (eschwartz) - Monday, 25 June 2018, 01:29 GMT
  • Field changed: Summary ([powerdns] PLEASE ENTER SUMMARY → [powerdns] chroot when running from systemd)
meaningful summaries are meaningful

There's no need to edit the service file on every run, use systemd *.conf.d/ drop-ins.

The pdns.conf shipped in the package disables chroot by default, for exactly this reason.

Loading...