NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.38k stars 2.71k forks source link

ClouDNS throws unrecognized arguments error #3644

Open dreed47 opened 8 months ago

dreed47 commented 8 months ago

Checklist

Describe the bug ClouDNS throws unrecognized arguments error.

CommandError: usage: 
  certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...

Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
it will attempt to use a webserver both for obtaining and installing the
certificate. 
certbot: error: unrecognized arguments: --dns-cloudns-credentials /etc/letsencrypt/credentials/credentials-12

    at /app/lib/utils.js:16:13
    at ChildProcess.exithandler (node:child_process:410:5)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

Nginx Proxy Manager Version v2.11.1

To Reproduce Steps to reproduce the behavior:

  1. Add a new Lets Encrypt SSL certificate
  2. Add your ClouDNS hosted domain name
  3. Select ClouDNS
  4. SAdd dns_cloudns_auth_id and dns_cloudns_auth_password values and click save
  5. See error

Expected behavior Expecting the SSL cert to be added

Screenshots

Operating System

Additional context

github-actions[bot] commented 1 month ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

chrwei commented 1 month ago

I had this issue with digitialocean too, i believe it's the same problem.

Manually running the command fails, but manually running it though the python venv succeeds. My "fix" is to change internal/certificate.js and edit the command variable to be

const certbotCommand = '/opt/certbot/bin/python /opt/certbot/bin/certbot';

with this change it works via the UI.

seems to be something odd in how the venv is being called