Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Deleting certificate blocks the application #322

Open
antonio-ivanovski opened this issue Jun 4, 2024 · 1 comment
Open

[Bug] Deleting certificate blocks the application #322

antonio-ivanovski opened this issue Jun 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@antonio-ivanovski
Copy link

antonio-ivanovski commented Jun 4, 2024

Current Behavior

I have deleted a certificate while still being attached to a host. Turns out you should not do this as it will block the app.

Currently the docker container prints this logs

Expected Behavior

  • Deleting certificate that is being attached to a host doesn't block the application.
  • Deleting certificate will show WARNING to the user about this action
  • Deleting certificate will detach it from the host that is being attached

Steps To Reproduce

No response

Environment

  • OS:
  • OS version:
  • CPU:
  • Docker version:
  • Device model:
  • Browser/OS:

Container creation

name: nginxproxymanager
services:
  nginxproxymanager:
    cpu_shares: 90
    command: []
    container_name: nginxproxymanager
    deploy:
      resources:
        limits:
          memory: 1846M
        reservations:
          memory: "134217728"
    hostname: nginxproxymanager
    image: jc21/nginx-proxy-manager:2.11.2
    labels:
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/NginxProxyManager/icon.png
    ports:
      - target: 80
        published: "80"
        protocol: tcp
      - target: 443
        published: "443"
        protocol: tcp
      - target: 81
        published: "81"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/nginxproxymanager/data
        target: /data
      - type: bind
        source: /DATA/AppData/nginxproxymanager/etc/letsencrypt
        target: /etc/letsencrypt
    devices: []
    cap_add: []
    environment: []
    network_mode: bridge
    privileged: false

Container log

nginxproxymanager  | �[1;34m❯ �[1;36mStarting nginx ...�[0m
nginxproxymanager  | nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/npm-6/fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/letsencrypt/live/npm-6/fullchain.pem, r) error:10000080:BIO routines::no such file)

Container inspect

No response

Anything else?

Related to #224, but I cannot find the mentioned files for me to restore them. I have un-blocked the app by adding dummy certs in the missing places.

@antonio-ivanovski antonio-ivanovski added the bug Something isn't working label Jun 4, 2024
@nrgbistro
Copy link

I have the same issue. Deleted a few certificates and now I can't use the UI anymore, I just get 500 errors and a similar log message in my NPM container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants