Trying to add new SSL certificate results in "Cannot read properties of undefined (reading 'meta')"
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latestdocker 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:
- Add new SSL certificate
- Try to request a certificate from Let's Encrypt (subdomain and wildcard requests throw the same error)
- 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
Any updates by any chance? :(
6 months later, any updates? Getting this error again sadly...
Still getting this error... :(
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
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.
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.
I also encountered the same situation.
Issue is now considered stale. If you want to keep it open, please comment :+1: