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

Trying to add new SSL certificate results in "Cannot read properties of undefined (reading 'meta')" #3489

Open EpicLPer opened 10 months ago

EpicLPer commented 10 months ago

Checklist

Describe the bug Trying to add any new SSL certificate from Let's Encrypt (renewing works fine) results in the console throwing the below error. The web interface simply shows "Internal Error".
It seems to save it just fine, but later when NPM tries to "process" that certificate somehow it seems to fail.

The Web Interface shows:

TypeError: Cannot read properties of undefined (reading 'meta')
    at /app/internal/certificate.js:212:52

The Docker Log shows:

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/npm-39/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/npm-39/privkey.pem
This certificate expires on 2024-04-21.
These files will be updated when the certificate renews.
... trunkated for Github ...
[1/22/2024] [7:29:00 AM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[1/22/2024] [7:29:00 AM] [Nginx    ] › ℹ  info      Reloading Nginx
[1/22/2024] [7:29:00 AM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload
[1/22/2024] [7:29:01 AM] [Global   ] › ⬤  debug     CMD: openssl x509 -in /etc/letsencrypt/live/npm-39/fullchain.pem -subject -noout
[1/22/2024] [7:29:01 AM] [Global   ] › ⬤  debug     CMD: openssl x509 -in /etc/letsencrypt/live/npm-39/fullchain.pem -issuer -noout
[1/22/2024] [7:29:01 AM] [Global   ] › ⬤  debug     CMD: openssl x509 -in /etc/letsencrypt/live/npm-39/fullchain.pem -dates -noout
[1/22/2024] [7:29:01 AM] [Express  ] › ⚠  warning   Cannot read properties of undefined (reading 'meta')

Nginx Proxy Manager Version 2.11.1 (same issue before I upgraded from, I believe, 2.10.4)

To Reproduce Steps to reproduce the behavior:

  1. Add new SSL certificate
  2. Try to request a certificate from Let's Encrypt (subdomain and wildcard requests throw the same error)
  3. Check the error logs for above error

Expected behavior Certificate should generate and import appropriatly.

Screenshots None

Operating System Ubuntu 22.04.2 LTS

Additional context None

EpicLPer commented 10 months ago

Any updates by any chance? :(

EpicLPer commented 5 months ago

6 months later, any updates? Getting this error again sadly...

EpicLPer commented 4 months ago

Still getting this error... :(

mufazmi commented 4 months ago

I have also installed it on Proxmox via Proxmox scripts. It was working fine when I installed it in Docker, but this time, when I installed it on Proxmox VE, it started giving errors on the dashboard and add proxy page:

TypeError: Cannot read properties of undefined (reading 'call') at r (main.bundle.js?v=2.11.3:1:361) at main.bundle.js?v=2.11.3:13:151124

EpicLPer commented 4 months ago

I have also installed it on Proxmox via Proxmox scripts. It was working fine when I installed it in Docker, but this time, when I installed it on Proxmox VE, it started giving errors on the dashboard and add proxy page:

TypeError: Cannot read properties of undefined (reading 'call') at r (main.bundle.js?v=2.11.3:1:361) at main.bundle.js?v=2.11.3:13:151124

This seems to be an unrelated error and probably worth a new issue.

EpicLPer commented 4 months ago

A little update to this: I simply installed NPM from scratch and manually transferred all old data over without copy/pasting anything... this worked...

So my guess is something in the old database got corrupted.

loveayhz commented 3 months ago

I also encountered the same situation.