Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solved] Ubuntu xenial install fails #4219

Closed
markc opened this issue Jul 21, 2016 · 8 comments

Comments

@markc
Copy link

commented Jul 21, 2016

A fresh install on a Ramnode VPS...

root@la ~ apt install pdns-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libboost-program-options1.58.0 libbotan-1.10-1 liblua5.3-0
Suggested packages:
  pdns-backend pdns-recursor
The following NEW packages will be installed:
  libboost-program-options1.58.0 libbotan-1.10-1 liblua5.3-0 pdns-server
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,511 kB of archives.
After this operation, 10.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libboost-program-options1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [138 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libbotan-1.10-1 amd64 1.10.12-1 [957 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.3-0 amd64 5.3.1-1ubuntu2 [116 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/universe amd64 pdns-server amd64 4.0.0~alpha2-3build1 [1,300 kB]
Fetched 2,511 kB in 1s (1,388 kB/s)
Selecting previously unselected package libboost-program-options1.58.0:amd64.
(Reading database ... 25380 files and directories currently installed.)
Preparing to unpack .../libboost-program-options1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libbotan-1.10-1.
Preparing to unpack .../libbotan-1.10-1_1.10.12-1_amd64.deb ...
Unpacking libbotan-1.10-1 (1.10.12-1) ...
Selecting previously unselected package liblua5.3-0:amd64.
Preparing to unpack .../liblua5.3-0_5.3.1-1ubuntu2_amd64.deb ...
Unpacking liblua5.3-0:amd64 (5.3.1-1ubuntu2) ...
Selecting previously unselected package pdns-server.
Preparing to unpack .../pdns-server_4.0.0~alpha2-3build1_amd64.deb ...
Unpacking pdns-server (4.0.0~alpha2-3build1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libbotan-1.10-1 (1.10.12-1) ...
Setting up liblua5.3-0:amd64 (5.3.1-1ubuntu2) ...
Setting up pdns-server (4.0.0~alpha2-3build1) ...
Creating user and group pdns...done

Creating config file /etc/powerdns/pdns.conf with new version

Creating config file /etc/default/pdns with new version

Creating config file /etc/powerdns/pdns.d/pdns.local.conf with new version

Creating config file /etc/powerdns/pdns.d/pdns.simplebind.conf with new version
Job for pdns.service failed because the control process exited with error code. See "systemctl status pdns.service" and "journalctl -xe" for details.
invoke-rc.d: initscript pdns, action "start" failed.
dpkg: error processing package pdns-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for systemd (229-4ubuntu7) ...
Errors were encountered while processing:
 pdns-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@la ~ systemctl status pdns.service
● pdns.service - PowerDNS Authoritative Server
   Loaded: loaded (/lib/systemd/system/pdns.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-07-21 23:03:09 AEST; 1s ago
     Docs: man:pdns_server(8)
           man:pdns_control(8)
  Process: 25537 ExecStart=/usr/sbin/pdns_server --daemon --guardian=yes (code=exited, status=232/ADDRESS_FAMILIES)

Jul 21 23:03:09 la systemd[1]: Failed to start PowerDNS Authoritative Server.
Jul 21 23:03:09 la systemd[1]: pdns.service: Unit entered failed state.
Jul 21 23:03:09 la systemd[1]: pdns.service: Failed with result 'exit-code'.

root@la ~ journalctl -xe
Jul 21 23:03:41 la systemd[1]: pdns.service: Control process exited, code=exited status=232
Jul 21 23:03:41 la systemd[1]: Failed to start PowerDNS Authoritative Server.
-- Subject: Unit pdns.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit pdns.service has failed.
-- 
-- The result is failed.
Jul 21 23:03:41 la systemd[1]: pdns.service: Unit entered failed state.
Jul 21 23:03:41 la systemd[1]: pdns.service: Failed with result 'exit-code'.
Jul 21 23:03:43 la systemd[1]: pdns.service: Service hold-off time over, scheduling restart.
Jul 21 23:03:43 la systemd[1]: Stopped PowerDNS Authoritative Server.
-- Subject: Unit pdns.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit pdns.service has finished shutting down.
Jul 21 23:03:43 la systemd[1]: Starting PowerDNS Authoritative Server...
-- Subject: Unit pdns.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit pdns.service has begun starting up.
Jul 21 23:03:43 la systemd[25599]: pdns.service: Failed at step ADDRESS_FAMILIES spawning /usr/sbin/pdns_server: Invalid argument
-- Subject: Process /usr/sbin/pdns_server could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /usr/sbin/pdns_server could not be executed and failed.
-- 
-- The error number returned by this process is 22.
Jul 21 23:03:43 la systemd[1]: pdns.service: Control process exited, code=exited status=232
Jul 21 23:03:43 la systemd[1]: Failed to start PowerDNS Authoritative Server.
-- Subject: Unit pdns.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit pdns.service has failed.
-- 
-- The result is failed.
Jul 21 23:03:43 la systemd[1]: pdns.service: Unit entered failed state.
Jul 21 23:03:43 la systemd[1]: pdns.service: Failed with result 'exit-code'.
@pieterlexis

This comment has been minimized.

Copy link
Member

commented Jul 21, 2016

Is this a 32-bit x86 machine? If so, you'll need to comment out the RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 line in the unit file.

This package is distributed by ubuntu, please file this bug there as well.

@markc

This comment has been minimized.

Copy link
Author

commented Jul 21, 2016

No it's a standard amd64 install. Thank you for the hint, I commented out line 20 in /lib/systemd/system/pdns.service and that solved the problem and allowed the package to install.

#RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6

@markc markc changed the title Ubuntu xenial install fails [Solved] Ubuntu xenial install fails Jul 21, 2016

@markc markc closed this Jul 21, 2016

@binwiederhier

This comment has been minimized.

Copy link

commented Dec 26, 2016

This is still an issue in upstream Ubuntu 16.04 that prevents the first installation:

~# apt-get install pdns-server 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libboost-program-options1.58.0 libbotan-1.10-1 liblua5.3-0
Suggested packages:
  pdns-backend pdns-recursor
The following NEW packages will be installed:
  libboost-program-options1.58.0 libbotan-1.10-1 liblua5.3-0 pdns-server
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,511 kB of archives.
After this operation, 10.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libboost-program-options1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [138 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libbotan-1.10-1 amd64 1.10.12-1 [957 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.3-0 amd64 5.3.1-1ubuntu2 [116 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/universe amd64 pdns-server amd64 4.0.0~alpha2-3build1 [1,300 kB]
Fetched 2,511 kB in 0s (9,609 kB/s)
Selecting previously unselected package libboost-program-options1.58.0:amd64.
(Reading database ... 33125 files and directories currently installed.)
Preparing to unpack .../libboost-program-options1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libbotan-1.10-1.
Preparing to unpack .../libbotan-1.10-1_1.10.12-1_amd64.deb ...
Unpacking libbotan-1.10-1 (1.10.12-1) ...
Selecting previously unselected package liblua5.3-0:amd64.
Preparing to unpack .../liblua5.3-0_5.3.1-1ubuntu2_amd64.deb ...
Unpacking liblua5.3-0:amd64 (5.3.1-1ubuntu2) ...
Selecting previously unselected package pdns-server.
Preparing to unpack .../pdns-server_4.0.0~alpha2-3build1_amd64.deb ...
Unpacking pdns-server (4.0.0~alpha2-3build1) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Processing triggers for systemd (229-4ubuntu12) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libbotan-1.10-1 (1.10.12-1) ...
Setting up liblua5.3-0:amd64 (5.3.1-1ubuntu2) ...
Setting up pdns-server (4.0.0~alpha2-3build1) ...
Creating user and group pdns...done

Creating config file /etc/powerdns/pdns.conf with new version

Creating config file /etc/default/pdns with new version

Creating config file /etc/powerdns/pdns.d/pdns.local.conf with new version

Creating config file /etc/powerdns/pdns.d/pdns.simplebind.conf with new version
Job for pdns.service failed because the control process exited with error code. See "systemctl status pdns.service" and "journalctl -xe" for details.
invoke-rc.d: initscript pdns, action "start" failed.
dpkg: error processing package pdns-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu4) ...
Processing triggers for systemd (229-4ubuntu12) ...
Errors were encountered while processing:
 pdns-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
@skaag

This comment has been minimized.

Copy link

commented Jul 17, 2017

Can confirm it is still an issue today. Same fix above applies (and still works).

@lbr88

This comment has been minimized.

Copy link

commented Sep 17, 2017

Just here to say that this is still an issue.

@rgacogne

This comment has been minimized.

Copy link
Member

commented Sep 17, 2017

Can you confirm you see the following message in your logs:

pdns.service: Failed at step ADDRESS_FAMILIES spawning /usr/sbin/pdns_server: Invalid argument

If so, can you please post the output of uname -a, because it looks like the kernel version doesn't match the one expected by systemd.

@yakatz

This comment has been minimized.

Copy link

commented Dec 25, 2017

Same issue. In my case, it looks like an issue because it might be because it is a VM using OpenVZ:

Linux pns01 2.6.32-042stab126.2 #1 SMP Wed Dec 6 18:08:29 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux

@zeha

This comment has been minimized.

Copy link
Collaborator

commented Dec 25, 2017

If you're running pdns inside some form of VPS/VM/Container/..., you'll need to figure out yourself which of the systemd features are unavailable in that box, and edit the .service file accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants
You can’t perform that action at this time.