NginxProxyManager / nginx-proxy-manager

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

Internal Error when request new ssl certificate #3291

Open fhazal opened 1 year ago

fhazal commented 1 year ago
npminternal

Checklist

Describe the bug

i try to create new reverse proxy and when i try create a new ssl certificate it's keep give me internal error and when i try to add cerificates by using Add SSL cerificates function this error come out :

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-14" --agree-tos --authenticator webroot --email "myemail@gmail.com" --preferred-challenges "dns,http" --domains "mydomain.myowndomain.com.my" Saving debug log to /tmp/letsencrypt-log/letsencrypt.log Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.

at ChildProcess.exithandler (node:child_process:402:12)
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.10.4

port 80 is already open, and i do a portforward too for this port (80,443,81)

i try to create new domain and try to generate new SSL certificate but everything seems not working, it's working fine in previous version i don't know what wrong with this version. And i also try to untick force SSL and HTTP/2 support disable and still receive the error.

i try to uninstall NPM and reinstall it again but the result is same.

i also try to Test Server Reachability and i receive "Communication with the API failed, is NPM running correctly?"

please help me.

this is my docker-compose.yml

port 80 and 443 is already in use.

version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '8484:80'
      - '81:81'
      - '4443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
EDIflyer commented 1 year ago

@fhazal please try using the PR I created at #3121 and see if that does the trick - has been working for me for a few months now.

fhazal commented 1 year ago

@fhazal please try using the PR I created at #3121 and see if that does the trick - has been working for me for a few months now.

i try that method also, still not working, im using portainer my os is ubuntu 22.04

fhazal commented 1 year ago

got any solutions for this issue?? i try install using fresh server also give me the same result, it's like something wrong with cert issue, can anyone help?

EDIflyer commented 1 year ago

hopefully someone else has an idea - mine are all renewing OK. Perhaps worth trying spinning up a Linode or similar VPS using free credit to see if that works OK and would isolate if it's an NPM issue or a firewall issue?

LightningRhino commented 1 year ago

Same child_process error for me. Also the weird error with the reachability. I'm stuck here.

hoey94 commented 1 year ago

I encounter the same error when requesting a new SSL certificate. image

EDIflyer commented 1 year ago

@hoey94 have you tried the PR I mention above?

noonecheck commented 1 year ago

同样的问题,请问解决了吗

Gunterwa commented 6 months ago

Any update?

jzonta commented 4 months ago

If you use Cloudflare, run pip install --upgrade cloudflare==2.19.*

This worked for me