Sudo certbot renew Errors

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
www.batcavelounge.eu
I ran this command:
sudo certbot renew
It produced this output:
:~/letsencrypt$ sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/batcavelounge.eu.conf

Cert is due for renewal, auto-renewing…
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] dlopen() “/usr/share/nginx/modules/ngx_http_image_filter_module.so” failed (/usr/share/nginx/modules/ngx_http_image_filter_module.so: undefined symbol: gdImageCreateFromWebpPtr) in /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

Could not choose appropriate plugin: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] dlopen() “/usr/share/nginx/modules/ngx_http_image_filter_module.so” failed (/usr/share/nginx/modules/ngx_http_image_filter_module.so: undefined symbol: gdImageCreateFromWebpPtr) in /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:1\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’,)
Attempting to renew cert (batcavelounge.eu) from /etc/letsencrypt/renewal/batcavelounge.eu.conf produced an unexpected error: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] dlopen() “/usr/share/nginx/modules/ngx_http_image_filter_module.so” failed (/usr/share/nginx/modules/ngx_http_image_filter_module.so: undefined symbol: gdImageCreateFromWebpPtr) in /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:1\nnginx: configuration file /etc/nginx/nginx.conf test failed\n’,). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/batcavelounge.eu/fullchain.pem (failure)


All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/batcavelounge.eu/fullchain.pem (failure)

1 renew failure(s), 0 parse failure(s)
My web server is (include version):
nginx version: nginx/1.12.1 (Ubuntu)
The operating system my web server runs on is (include version):
Welcome to Ubuntu 17.10 (GNU/Linux 4.13.0-38-generic x86_64)
My hosting provider, if applicable, is:
OVH
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
NO
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):certbot 0.22.2

Hi @batcave

there is something undefined.

So you should remove that module.

I think it would be better to fix the module. But Ubuntu 17.10 is like, ancient. I have no idea if it's even easily possible.

@batcave You might want to try to update nginx to the most recent version first. If that doesn't work, try updating libgd3. If that also didn't work, try the work-around by removing the module.

Cert is due for renewal, auto-renewing…
Could not choose appropriate plugin: The requested nginx plugin does not appear to be installed
Attempting to renew cert (batcavelounge.eu) from /etc/letsencrypt/renewal/batcavelounge.eu.conf produced an unexpected error: The requested nginx plugin does not appear to be installed. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/batcavelounge.eu/fullchain.pem (failure)


/libgd-2.2.5$ nginx -t
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2019/04/13 18:16:45 [warn] 32090#32090: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
2019/04/13 18:16:45 [emerg] 32090#32090: dlopen() “/usr/share/nginx/modules/ngx_http_image_filter_module.so” failed (/usr/share/nginx/modules/ngx_http_image_filter_module.so: undefined symbol: gdImageCreateFromWebpPtr) in /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
scoot@ns5000316:~/libgd-2.2.5$ sudo nginx -t
nginx: [emerg] dlopen() “/usr/share/nginx/modules/ngx_http_image_filter_module.so” failed (/usr/share/nginx/modules/ngx_http_image_filter_module.so: undefined symbol: gdImageCreateFromWebpPtr) in /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.