NginxProxyManager / nginx-proxy-manager

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

core dumped from Uncaught SyntaxError: Unexpected end of JSON #2580

Open jaredatron opened 1 year ago

jaredatron commented 1 year ago

Fresh docker install cannot create first SSL Cert. Throws JSON Parse error.

v2.9.19 © 2022 jc21.com. Theme by [Tabler]

Steps to reproduce the behavior:

  1. using this Dockerfile:
version: "3"

services:
  app:
    image: docker.io/jc21/nginx-proxy-manager:latest
    restart: unless-stopped
    ports:
      - '80:80' # Public HTTP Port
      - '443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  1. docker-compose up -d
  2. visit http://${ipAddress}:81
  3. login as admin@example.com
  4. change admin password
  5. hit "add SSL Certificate"
  6. enter domain anme
  7. click "Test Server Reachability"

browser error: Communication with the API failed, is NPM running correctly?

logs:

[2/2/2023] [8:17:20 PM] [SSL      ] › ℹ  info      Testing http challenge for carbonlinc.io
Uncaught SyntaxError: Unexpected end of JSON input

FROM
./run: line 19:   299 Trace/breakpoint trap   (core dumped) node --abort_on_uncaught_exception --max_old_space_size=250 index.js

Operating System

The data and letsencrypt directories started out empty but now look like:

$ tree data
data
├── access
├── custom_ssl
├── database.sqlite
├── letsencrypt-acme-challenge
├── logs
│   ├── fallback_access.log
│   └── fallback_error.log
└── nginx
    ├── dead_host
    ├── default_host
    ├── default_www
    ├── dummycert.pem
    ├── dummykey.pem
    ├── proxy_host
    ├── redirection_host
    ├── stream
    └── temp

12 directories, 5 files
$ tree letsencrypt
letsencrypt
└── renewal-hooks
    ├── deploy
    ├── post
    └── pre

4 directories, 0 files
jaredatron commented 1 year ago

This could be a duplicate of https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2442

timnolte commented 1 year ago

I too cannot use the "Test Server Reachability" functionality as I'm also seeing the same error response and core dump in the logs. Whether this is a duplicate of https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2442 or not is not clear. Though I also have problems with renewing certificates and had to simply request a new certificate on a domain that is expiring soon.

robsiera commented 1 year ago

Me too. Fresh docker install v2.9.2. Same OS (Ubuntu Linux 22.04.2). Same issue. Same Errors.

zero-thermo commented 1 year ago

Also running into these errors with NPM v2.9.21 docker-compose setup on Debian 11 (bullseye).

durzo commented 1 year ago

+1 here too

Will2knz commented 1 year ago

Same issue here too

nrgbistro commented 1 year ago

Also getting this issue. Renewal seems to work but I cannot test or add a new domain to create a cert for.

oliversturm commented 1 year ago

FWIW, I see the same problem. However, when I tried to ignore the error and create the certificate, it worked fine. Now it's already in the list, when I run "test server reachability" from the menu the same error comes up. I don't care too much since everything else seems to be working, just thought I'd mention it because it seems to be a bit different from other experiences described here.

EmileSpa commented 1 year ago

The same error still exists in version 2.10.3.

DartLazer commented 1 year ago

I have the same error in version 2.19. It only prevents me from creating a certificate for one of the domains, the others seem to work fine.

lloydsmart commented 10 months ago

Getting the same error, running in Docker on Unraid. Can't add an SSL certificate and clicking "Test Server Reachability" crashes the container, every time.

github-actions[bot] commented 3 months ago

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