nextcloud snap touble letsencrypt

Good afternoon, I cannot reissue the certificate through sudo nextcloud.enable-https lets-encrypt.

Have you met these requirements? (y/n) y
Please enter an email address (for urgent notices or key recovery): n.goncharov@pnhz.kz
Please enter your domain name(s) (space-separated): cloud.pnhz.kz
Attempting to obtain certificates… error running certbot:

Saving debug log to /var/snap/nextcloud/current/certs/certbot/logs/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for cloud.pnhz.kz
Using the webroot path /var/snap/nextcloud/current/certs/certbot for all unmatched domains.
Waiting for verification…
Challenge failed for domain cloud.pnhz.kz
http-01 challenge for cloud.pnhz.kz
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: cloud.pnhz.kz
    Type: connection
    Detail: 212.154.198.218: Fetching
    http://cloud.pnhz.kz/.well-known/acme-challenge/gSw-qTpTxZia2smY2V10CXuJRX-bEO9mL0BK7GWXBPc:
    Connection refused

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

Hi @nickiller22,

check out managing encryption and feel free to create an issue