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

Random Failure of LetsEncrypt renewal script #137

Closed
keeganbrown opened this issue Jul 5, 2017 · 1 comment
Closed

Random Failure of LetsEncrypt renewal script #137

keeganbrown opened this issue Jul 5, 2017 · 1 comment

Comments

@keeganbrown
Copy link
Contributor

keeganbrown commented Jul 5, 2017

Just capturing this in an issue for posterity.

Output from command /opt/letsencrypt/letsencrypt-auto renew --rsa-key-size 4096 --renew-hook "/usr/bin/monit restart nginx":

Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://ppa.launchpad.net/nginx/stable/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://nyc2.mirrors.digitalocean.com/ubuntu xenial InRelease
Get:5 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease [41.5 kB]
Get:4 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [102 kB]
Get:6 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease [102 kB]
Hit:7 https://deb.nodesource.com/node_6.x xenial InRelease
Get:8 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [257 kB]
Get:9 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [163 kB]
Get:10 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [572 kB]
Get:11 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [232 kB]
Get:12 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [492 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main Sources [77.8 kB]
Get:14 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [195 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [297 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [141 kB]
Get:17 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 Packages [58.8 kB]
Fetched 2,834 kB in 1s (1,672 kB/s)
Reading package lists... Done
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-headers-4.4.0-75
  linux-headers-4.4.0-75-generic linux-headers-4.4.0-77 linux-headers-4.4.0-77-generic linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic
  linux-image-4.4.0-66-generic linux-image-4.4.0-72-generic linux-image-4.4.0-75-generic linux-image-4.4.0-77-generic linux-image-4.4.0-79-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libpython-dev libpython2.7-dev libssl1.0.0 python-pip-whl python2.7-dev python3-virtualenv
Suggested packages:
  augeas-doc augeas-tools
Recommended packages:
  libssl-doc
The following NEW packages will be installed:
  augeas-lenses libaugeas0 libpython-dev libpython2.7-dev python-dev python-pip-whl python-virtualenv python2.7-dev python3-virtualenv virtualenv
The following packages will be upgraded:
  libssl-dev libssl1.0.0 openssl
3 upgraded, 10 newly installed, 0 to remove and 32 not upgraded.
19 not fully installed or removed.
Need to get 0 B/32.6 MB of archives.
After this operation, 44.7 MB of additional disk space will be used.
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
Preconfiguring packages ...
(Reading database ... 269550 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.0.2g-1ubuntu4.8_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.2g-1ubuntu4.8) over (1.0.2g-1ubuntu4.6) ...
Preparing to unpack .../libssl1.0.0_1.0.2g-1ubuntu4.8_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2g-1ubuntu4.8) over (1.0.2g-1ubuntu4.6) ...
Preparing to unpack .../openssl_1.0.2g-1ubuntu4.8_amd64.deb ...
Unpacking openssl (1.0.2g-1ubuntu4.8) over (1.0.2g-1ubuntu4.6) ...
Selecting previously unselected package augeas-lenses.
Preparing to unpack .../augeas-lenses_1.4.0-0ubuntu1_all.deb ...
Unpacking augeas-lenses (1.4.0-0ubuntu1) ...
Selecting previously unselected package libaugeas0.
Preparing to unpack .../libaugeas0_1.4.0-0ubuntu1_amd64.deb ...
Unpacking libaugeas0 (1.4.0-0ubuntu1) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.12-1ubuntu0~16.04.1_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.1) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.11-1_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.11-1) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../python2.7-dev_2.7.12-1ubuntu0~16.04.1_amd64.deb ...
Unpacking python2.7-dev (2.7.12-1ubuntu0~16.04.1) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../python-dev_2.7.11-1_amd64.deb ...
Unpacking python-dev (2.7.11-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../python-pip-whl_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python-virtualenv.
Preparing to unpack .../python-virtualenv_15.0.1+ds-3ubuntu1_all.deb ...
Unpacking python-virtualenv (15.0.1+ds-3ubuntu1) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../python3-virtualenv_15.0.1+ds-3ubuntu1_all.deb ...
Unpacking python3-virtualenv (15.0.1+ds-3ubuntu1) ...
Selecting previously unselected package virtualenv.
Preparing to unpack .../virtualenv_15.0.1+ds-3ubuntu1_all.deb ...
Unpacking virtualenv (15.0.1+ds-3ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up apport (2.20.1-0ubuntu2.6) ...
insserv: warning: script 'puma' missing LSB tags and overrides
insserv: There is a loop between service monit and puma if stopped
insserv:  loop involving service puma at depth 2
insserv:  loop involving service monit at depth 1
insserv: Stopping puma depends on monit and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package apport (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up nginx-common (1.12.0-1+xenial1) ...
insserv: warning: script 'puma' missing LSB tags and overrides
insserv: There is a loop between service monit and puma if stopped
insserv:  loop involving service puma at depth 2
insserv:  loop involving service monit at depth 1
insserv: Stopping puma depends on monit and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package nginx-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libnginx-mod-http-auth-pam:
 libnginx-mod-http-auth-pam depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-auth-pam (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-dav-ext:
 libnginx-mod-http-dav-ext depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-dav-ext (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-echo:
 libnginx-mod-http-echo depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-echo (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-geoip:
 libnginx-mod-http-geoip depends on nginx-coNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                                      No apport report written because MaxReports is reached already
                                                      No apport report written because MaxReports is reached already
                                                                                                                    mmon (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-geoip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-image-filter:
 libnginx-mod-http-image-filter depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-image-filter (--configure):
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                             dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-subs-filter:
 libnginx-mod-http-subs-filter depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-subs-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-upstream-fair:No apport report written because MaxReports is reached already

 libnginx-mod-http-upstream-fair depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-upstream-fair (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-http-xslt-filter:No apport report written because MaxReports is reached already

 libnginx-mod-http-xslt-filter depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-http-xslt-filter (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-mail:No apport report written because MaxReports is reached already

 libnginx-mod-mail depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-mail (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnginx-mod-stream:No apport report written because MaxReports is reached already

 libnginx-mod-stream depends on nginx-common (= 1.12.0-1+xenial1); however:
  Package nginx-common is not configured yet.

dpkg: error processing package libnginx-mod-stream (--configure):
 dependency problems - leaving unconfigured
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.8) ...No apport report written because MaxReports is reached already

Setting up libssl-dev:amd64 (1.0.2g-1ubuntu4.8) ...
dpkg: dependency problems prevent configuration of nginx-full:
 nginx-full depends on libnginx-mod-http-auth-pam (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-auth-pam is not configured yet.
 nginx-full depends on libnginx-mod-http-dav-ext (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-dav-ext is not configured yet.
 nginx-full depends on libnginx-mod-http-echo (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-echo is not configured yet.
 nginx-full depends on libnginx-mod-http-geoip (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-geoip is not configured yet.
 nginx-full depends on libnginx-mod-http-image-filter (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-image-filter is not configured yet.
 nginx-full depends on libnginx-mod-http-subs-filter (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-subs-filter is not configured yet.
 nginx-full depends on libnginx-mod-http-upstream-fair (= 1.12.0-1+xenial1); however:
  Package libnginx-mod-http-upstream
dpkg: error processing package nginx-full (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx:No apport report written because MaxReports is reached already

 nginx depends on nginx-full (<< 1.12.0-1+xenial1.1~) | nginx-light (<< 1.12.0-1+xenial1.1~) | nginx-extras (<< 1.12.0-1+xenial1.1~); however:
  Package nginx-full is not configured yet.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.
 nginx depends on nginx-full (>= 1.12.0-1+xenial1) | nginx-light (>= 1.12.0-1+xenial1) | nginx-extras (>= 1.12.0-1+xenial1); however:
  Package nginx-full is not configured yet.
  Package nginx-light is not installed.
  Package nginx-extras is not installed.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
Setting up openssh-server (1:7.2p2-4ubuntu2.2) ...No apport report written because MaxReports is reached already

insserv: warning: script 'puma' missing LSB tags and overrides
insserv: There is a loop between service monit and puma if stopped
insserv:  loop involving service puma at depth 2
insserv:  loop involving service monit at depth 1
insserv: Stopping puma depends on monit and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package openssh-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up postgresql-common (182.pgdg16.04+1) ...No apport report written because MaxReports is reached already

insserv: warning: script 'puma' missing LSB tags and overrides
insserv: There is a loop between service monit and puma if stopped
insserv:  loop involving service puma at depth 2
insserv:  loop involving service monit at depth 1
insserv: Stopping puma depends on monit and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package postgresql-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-9.4:No apport report written because MaxReports is reached already

 postgresql-9.4 depends on postgresql-common (>= 142~); however:
  Package postgresql-common is not configured yet.

dpkg: error processing package postgresql-9.4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-contrib-9.4:No apport report written because MaxReports is reached already

 postgresql-contrib-9.4 depends on postgresql-9.4 (= 9.4.12-1.pgdg16.04+1); however:
  Package postgresql-9.4 is not configured yet.

dpkg: error processing package postgresql-contrib-9.4 (--configure):
 dependency problems - leaving unconfigured
Setting up unattended-upgrades (0.90ubuntu0.6) ...No apport report written because MaxReports is reached already

insserv: warning: script 'puma' missing LSB tags and overrides
insserv: There is a loop between service monit and puma if stopped
insserv:  loop involving service puma at depth 2
insserv:  loop involving service monit at depth 1
insserv: Stopping puma depends on monit and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package unattended-upgrades (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up openssl (1.0.2g-1ubuntu4.8) ...No apport report written because MaxReports is reached already

Setting up augeas-lenses (1.4.0-0ubuntu1) ...
Setting up libaugeas0 (1.4.0-0ubuntu1) ...
Setting up libpython2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.1) ...
Setting up libpython-dev:amd64 (2.7.11-1) ...
Setting up python2.7-dev (2.7.12-1ubuntu0~16.04.1) ...
Setting up python-dev (2.7.11-1) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.4) ...
Setting up python-virtualenv (15.0.1+ds-3ubuntu1) ...
Setting up python3-virtualenv (15.0.1+ds-3ubuntu1) ...
Setting up virtualenv (15.0.1+ds-3ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 apport
 nginx-common
 libnginx-mod-http-auth-pam
 libnginx-mod-http-dav-ext
 libnginx-mod-http-echo
 libnginx-mod-http-geoip
 libnginx-mod-http-image-filter
 libnginx-mod-http-subs-filter
 libnginx-mod-http-upstream-fair
 libnginx-mod-http-xslt-filter
 libnginx-mod-mail
 libnginx-mod-stream
 nginx-full
 nginx
 openssh-server
 postgresql-common
 postgresql-9.4
 postgresql-contrib-9.4
 unattended-upgrades
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)
@keeganbrown
Copy link
Contributor Author

keeganbrown commented Jul 12, 2017

Fixed with #138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant