nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

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

Open EpicLPer opened this issue 2 years ago • 7 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

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 avatar Jan 22 '24 07:01 EpicLPer

Any updates by any chance? :(

EpicLPer avatar Jan 24 '24 04:01 EpicLPer

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

EpicLPer avatar Jun 18 '24 12:06 EpicLPer

Still getting this error... :(

EpicLPer avatar Jul 07 '24 15:07 EpicLPer

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

mufazmi avatar Aug 01 '24 12:08 mufazmi

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 avatar Aug 02 '24 10:08 EpicLPer

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.

EpicLPer avatar Aug 02 '24 10:08 EpicLPer

I also encountered the same situation.

loveayhz avatar Aug 16 '24 18:08 loveayhz

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

github-actions[bot] avatar Feb 22 '25 02:02 github-actions[bot]