NginxProxyManager / nginx-proxy-manager

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

Testing http challenge Uncaught SyntaxError: Unexpected end of JSON input #3261

Open jeberhardt87 opened 11 months ago

jeberhardt87 commented 11 months ago

Checklist

Describe the bug When clicking on "Test Server reachability" in the SSL Certificates menu I get the following error: "Communication with the API failed, is NPM running correctly?" In the log I see the following:

10/16/2023] [11:50:13 AM] [SSL      ] › ℹ  info      Testing http challenge for cloud.mikropositronik.de
nginx-proxy-app-1  | Uncaught SyntaxError: Unexpected end of JSON input
nginx-proxy-app-1  | 
nginx-proxy-app-1  | FROM
nginx-proxy-app-1  | bash: line 1:   235 Trace/breakpoint trap   (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js
nginx-proxy-app-1  | ❯ Starting backend ...
nginx-proxy-app-1  | [10/16/2023] [11:50:16 AM] [Global   ] › ℹ  info      Using MySQL configuration
nginx-proxy-app-1  | [10/16/2023] [11:50:17 AM] [Global   ] › ✖  error     connect ECONNREFUSED 172.19.0.2:3306
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [Migrate  ] › ℹ  info      Current database version: 20211108145214
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [Setup    ] › ℹ  info      Logrotate Timer initialized
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [Setup    ] › ℹ  info      Logrotate completed.
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
nginx-proxy-app-1  | [10/16/2023] [11:50:18 AM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
nginx-proxy-app-1  | [10/16/2023] [11:50:19 AM] [Global   ] › ℹ  info      Backend PID 290 listening on port 3000 ...
nginx-proxy-app-1  | [10/16/2023] [11:50:20 AM] [Nginx    ] › ℹ  info      Reloading Nginx
nginx-proxy-app-1  | [10/16/2023] [11:50:20 AM] [SSL      ] › ℹ  info      Renew Complete
nginx-proxy-app-1  | [10/16/2023] [11:50:21 AM] [SSL      ] › ✖  error     connect ECONNREFUSED 172.19.0.2:3306
nginx-proxy-app-1  | [10/16/2023] [11:50:21 AM] [SSL      ] › ✖  error     connect ECONNREFUSED 172.19.0.2:3306

Nginx Proxy Manager Version v2.10.4

To Reproduce Steps to reproduce the behavior:

  1. Go to 'SSL Certificates'
  2. Click on 'Test Server Reachability'
  3. See error

Expected behavior Server should be reachable

Operating System docker compose on Ubuntu 23

tomasagray commented 11 months ago

Bump. Same issue here. Also running within a docker container, with similar log output, minus the SQL errors.

marmik18 commented 8 months ago

+1, same issue faced by me.

github-actions[bot] commented 2 months ago

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