Unexpected error no attribute IAuthenticator

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. crt.sh | 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: ???.ddns.net

I ran this command: docker-compose up -d
version: "2"
services:
nextcloud:
image: Package nextcloud · GitHub
container_name: nextcloud
environment:
- PUID=1001 #change PUID if needed: ????
- PGID=100 #change PGID if needed: users
- TZ=America/Chicago #change Time Zone if needed
network_mode: bridge
volumes:
- /srv/dev-disk-by-uuid-xxxxx/appdata/Nextcloud/config:/config #/srv/dev-disk-... needs to be adjusted
- /srv/dev-disk-by-uuid-xxxxx/appdata/Nextcloud/data:/data #/srv/dev-disk-... needs to be adjusted
depends_on:
- mariadb

ports: # uncomment this and the next line if you want to bypass the proxy

- 81:80 # HOST_PORT:CONTAINER_PORT

- 444:443

HOST_PORT, the port, external to the container, that the host routes to the CONTAINER_PORT (port-forwarding)

CONTAINER_PORT, the port, within the container the application is listening on

restart: unless-stopped

mariadb:
image: Package mariadb · GitHub
container_name: nextclouddb
environment:
- PUID=1001 #change PUID if needed: ???
- PGID=100 #change PGID if needed: users
- MYSQL_ROOT_PASSWORD=?????#change password
- TZ=America/Chicago #Change Time Zone if needed
- MYSQL_DATABASE=nextclouddb #optional

- MYSQL_USER=???#optional - doesn't work well; cannot login

- MYSQL_PASSWORD=???#optional

network_mode: bridge
volumes:
  - /srv/dev-disk-by-uuid-xxxxx/appdata/nextclouddb:/config    #/srv/dev-disk-... needs to be adjusted
ports:
  - 3306:3306
restart: unless-stopped

swag:
image: Package swag · GitHub #swag, formerly known as letsencrypt (see: Introducing SWAG - Secure Web Application Gateway | LinuxServer.io)
container_name: swag # Secure Web Application Gateway (SWAG)
cap_add: # add container capability: NET_ADMIN
- NET_ADMIN # for Fail2Ban
environment:
- PUID=1001 #change PUID if needed: appuser
- PGID=100 #change PGID if needed: users
- TZ=America/Chicago # change Time Zone if needed
- URL=ddns.net #insert your domain name - yourdomain.url
- SUBDOMAINS=???, # will try to get cert with subdomain & without
- VALIDATION=http
- EMAIL=???@gmail.com # define email; required to renew certificate
- ONLY_SUBDOMAINS=true #optional
network_mode: bridge
volumes:
- /srv/dev-disk-by-uuid-xxxxx/appdata/swag:/config #/srv/dev-disk-... needs to be adjusted
ports:
- 444:443
- 81:80
restart: unless-stopped

It produced this output:
[custom-init] No custom services found, skipping...
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service 00-legacy: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service 00-legacy successfully started
cont-init: info: running /etc/cont-init.d/01-envfile
cont-init: info: /etc/cont-init.d/01-envfile exited 0
cont-init: info: running /etc/cont-init.d/01-migrations
[migrations] started
[migrations] 01-nginx-site-confs-default: executing...
[migrations] 01-nginx-site-confs-default: succeeded
[migrations] done
cont-init: info: /etc/cont-init.d/01-migrations exited 0
cont-init: info: running /etc/cont-init.d/10-adduser


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support the app dev(s) visit:
Certbot: Support EFF's Work on Certbot | Electronic Frontier Foundation

To support LSIO projects visit:
Donate | LinuxServer.io

GID/UID

User uid: 1001
User gid: 100

cont-init: info: /etc/cont-init.d/10-adduser exited 0
cont-init: info: running /etc/cont-init.d/11-folders
cont-init: info: /etc/cont-init.d/11-folders exited 0
cont-init: info: running /etc/cont-init.d/12-samples
cont-init: info: /etc/cont-init.d/12-samples exited 0
cont-init: info: running /etc/cont-init.d/13-nginx
Setting resolver to 127.0.0.11
Setting worker_processes to 2
cont-init: info: /etc/cont-init.d/13-nginx exited 0
cont-init: info: running /etc/cont-init.d/14-php
cont-init: info: /etc/cont-init.d/14-php exited 0
cont-init: info: running /etc/cont-init.d/15-keygen
generating self-signed keys in /config/keys, you can replace these with your own keys if required
Generating a RSA private key
................................................+++++
.....................................................+++++
writing new private key to '/config/keys/cert.key'

cont-init: info: /etc/cont-init.d/15-keygen exited 0
cont-init: info: running /etc/cont-init.d/20-permissions
cont-init: info: /etc/cont-init.d/20-permissions exited 0
cont-init: info: running /etc/cont-init.d/30-test-run
cont-init: info: /etc/cont-init.d/30-test-run exited 0
cont-init: info: running /etc/cont-init.d/31-require-url
cont-init: info: /etc/cont-init.d/31-require-url exited 0
cont-init: info: running /etc/cont-init.d/40-folders
cont-init: info: /etc/cont-init.d/40-folders exited 0
cont-init: info: running /etc/cont-init.d/41-samples
cont-init: info: /etc/cont-init.d/41-samples exited 0
cont-init: info: running /etc/cont-init.d/42-fail2ban
cont-init: info: /etc/cont-init.d/42-fail2ban exited 0
cont-init: info: running /etc/cont-init.d/43-crontabs
cont-init: info: /etc/cont-init.d/43-crontabs exited 0
cont-init: info: running /etc/cont-init.d/45-nginx
cont-init: info: /etc/cont-init.d/45-nginx exited 0
cont-init: info: running /etc/cont-init.d/50-certbot
Variables set:
PUID=1001
PGID=100
TZ=America/Chicago
URL=ddns.net
SUBDOMAINS=????,
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=true
VALIDATION=http
CERTPROVIDER=
DNSPLUGIN=
EMAIL=?????@gmail.com
STAGING=

Created .donoteditthisfile.conf
Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Only subdomains, no URL in cert
Sub-domains processed are: -d ????.ddns.net
E-mail address entered: ????@gmail.com
http validation is selected
Generating new certificate
An unexpected error occurred:
AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-vuzmm7ra/log or re-run Certbot with -v for more details.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container

My web server is (include version): OpenMediaVault

The operating system my web server runs on is (include version):
Ubuntu 22.04 LTS host running OpenmediaVault 6 as a guest OS in KVM

My hosting provider, if applicable, is: N/A

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): direct and Cockpit

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
root@d53633a07f31:/tmp# certbot --version
An unexpected error occurred:
AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-7fi2xw5b/log or re-run Certbot with -v for more details.

I think it would be worth having a read through this issue. It seems that the project has temporarily downgraded Certbot to make it work again, you may have to pull your Docker image again (to version 1.32.0-ls163).

3 Likes

removed swag entirely from docker, reinstalled. Certbot version is now 1.32.0. This error no longer occurs.
Thanks.

2 Likes

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