ZoeyVid / NPMplus

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://hub.docker.com/r/zoeyvid/npmplus
MIT License
518 stars 22 forks source link

[Bug Report] Failed to Start on Developer Build #1103

Closed shedowe19 closed 2 weeks ago

shedowe19 commented 1 month ago

npmplus_logs.txt Here are the Logs, you can see after:

"2024/09/20 11:07:25 [notice] 1715#1715: ModSecurity-nginx v1.0.3 (rules loaded inline/local/remote: 0/21/0)"

Failed:

/app/lib/utils.js:19
                    reject(new error.CommandError(stderr, isError));
                           ^
CommandError
    at /app/lib/utils.js:19:13
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:338:12) {
  previous: undefined,
  code: Error: Command failed: certbot-ocsp-fetcher.sh -c /data/tls/certbot -o /data/tls/certbot/live --quiet --no-reload-webserver

      at genericNodeError (node:internal/errors:984:15)
      at wrappedFn (node:internal/errors:538:14)
      at ChildProcess.exithandler (node:child_process:422:12)
      at ChildProcess.emit (node:events:519:28)
      at maybeClose (node:internal/child_process:1105:16)
      at Socket.<anonymous> (node:internal/child_process:457:11)
      at Socket.emit (node:events:519:28)
      at Pipe.<anonymous> (node:net:338:12) {
    code: 1,
    killed: false,
    signal: null,
    cmd: 'certbot-ocsp-fetcher.sh -c /data/tls/certbot -o /data/tls/certbot/live --quiet --no-reload-webserver'
  },
  public: false
}

Node.js v20.15.1
shedowe19 commented 1 month ago

Here are the Complete Start Code:



| \ || . | \ \ | | | || /| || . | || | |[-[ |_||| ||||| /|| _|/_/ ||

Version: 2.11.3+23ff8eb Date: Fri Sep 20 11:06:19 CEST 2024 User: root PUID: 0 User ID: 0 PGID: 0 Group ID: 0

nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, no OCSP responder URL in the certificate "/data/tls/custom/npm-35/fullchain.pem" reading config file /etc/logrotate acquired lock on state file /data/etc/logrotate.statusReading state from file: /data/etc/logrotate.status Allocating hash table for state file, size 64 entries Creating new state Creating new state

Handling 1 logs

rotating pattern: /data/nginx/*.log after 1 days (7 rotations) empty log files are not rotated, old logs are removed considering log /data/nginx/access.log Now: 2024-09-20 11:06 Last rotated at 2024-09-20 00:00 log does not need rotating (log has been rotated at 2024-09-20 00:00, which is less than a day ago) considering log /data/nginx/stream.log Now: 2024-09-20 11:06 Last rotated at 2024-06-21 20:00 log does not need rotating (log is empty) not running postrotate script, since no logs were rotated [SETTING UP STORAGE -] {0} @ {0/s} [20-Sep-2024 11:06:19] NOTICE: fpm is running, pid 1658 [20-Sep-2024 11:06:19] NOTICE: ready to handle connections [Global ] › ℹ info Using Sqlite: /data/etc/npm/database.sqlite

WebSocket server ready to accept new client connections [Migrate ] › ℹ info Current database version: none [Certbot ] › ▶ start Installing cloudflare... [Certbot ] › ☒ complete Installed cloudflare [Setup ] › ℹ info Added Certbot plugins cloudflare [IP Ranges] › ℹ info Fetching IP Ranges from online services... [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v4 [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v6 [SSL ] › ℹ info Certbot Renewal Timer initialized [IP Ranges] › ℹ info IP Ranges Renewal Timer initialized [Global ] › ℹ info Backend PID 1663 listening on port 48693 ... [Nginx ] › ℹ info Starting Nginx 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" 2024/09/20 11:06:20 [warn] 1715#1715: "ssl_stapling" ignored, no OCSP responder URL in the certificate "/data/tls/custom/npm-35/fullchain.pem" 2024/09/20 11:06:20 [notice] 1715#1715: ModSecurity-nginx v1.0.3 (rules loaded inline/local/remote: 0/21/0)

/app/lib/utils.js:19 reject(new error.CommandError(stderr, isError)); ^ CommandError at /app/lib/utils.js:19:13 at ChildProcess.exithandler (node:child_process:430:5) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:338:12) { previous: undefined, code: Error: Command failed: certbot-ocsp-fetcher.sh -c /data/tls/certbot -o /data/tls/certbot/live --quiet --no-reload-webserver

  at genericNodeError (node:internal/errors:984:15)
  at wrappedFn (node:internal/errors:538:14)
  at ChildProcess.exithandler (node:child_process:422:12)
  at ChildProcess.emit (node:events:519:28)
  at maybeClose (node:internal/child_process:1105:16)
  at Socket.<anonymous> (node:internal/child_process:457:11)
  at Socket.emit (node:events:519:28)
  at Pipe.<anonymous> (node:net:338:12) {
code: 1,
killed: false,
signal: null,
cmd: 'certbot-ocsp-fetcher.sh -c /data/tls/certbot -o /data/tls/certbot/live --quiet --no-reload-webserver'

}, public: false }

Node.js v20.15.1 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz 0% OK: 95 MiB in 97 packages fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz 0% OK: 95 MiB in 97 packages '/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/README.md' -> '/data/etc/modsecurity/crs-plugins/README.md' '/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/empty-after.conf' -> '/data/etc/modsecurity/crs-plugins/empty-after.conf' '/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/empty-before.conf' -> '/data/etc/modsecurity/crs-plugins/empty-before.conf' '/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/empty-config.conf' -> '/data/etc/modsecurity/crs-plugins/empty-config.conf' no DEFAULT_CERT_ID set, using dummycerts. fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz 0% OK: 95 MiB in 97 packages Working on file: /data/nginx/custom/events.conf Working on file: /data/nginx/custom/http.conf Working on file: /data/nginx/custom/http_top.conf Working on file: /data/nginx/custom/root_top.conf Working on file: /data/nginx/custom/server_dead.conf Working on file: /data/nginx/custom/server_proxy.conf Working on file: /data/nginx/custom/server_redirect.conf Working on file: /data/nginx/custom/server_stream.conf Working on file: /data/nginx/custom/server_stream_tcp.conf Working on file: /data/nginx/custom/server_stream_udp.conf Working on file: /data/nginx/custom/stream.conf Working on file: /data/nginx/custom/stream_top.conf Working on file: /data/nginx/default.conf Working on file: /data/nginx/ip_ranges.conf Working on file: /data/nginx/proxy_host/1.conf Working on file: /data/nginx/proxy_host/10.conf Working on file: /data/nginx/proxy_host/11.conf Working on file: /data/nginx/proxy_host/12.conf Working on file: /data/nginx/proxy_host/13.conf Working on file: /data/nginx/proxy_host/16.conf Working on file: /data/nginx/proxy_host/17.conf Working on file: /data/nginx/proxy_host/2.conf Working on file: /data/nginx/proxy_host/21.conf Working on file: /data/nginx/proxy_host/23.conf Working on file: /data/nginx/proxy_host/28.conf Working on file: /data/nginx/proxy_host/29.conf Working on file: /data/nginx/proxy_host/3.conf Working on file: /data/nginx/proxy_host/30.conf Working on file: /data/nginx/proxy_host/4.conf Working on file: /data/nginx/proxy_host/5.conf Working on file: /data/nginx/proxy_host/6.conf Working on file: /data/nginx/proxy_host/7.conf Working on file: /data/nginx/proxy_host/8.conf Working on file: /data/nginx/proxy_host/9.conf Success. removed '/usr/local/nginx/logs/nginx.pid' removed '/run/nginx-1.sock' removed '/run/nginx-10.sock' removed '/run/nginx-11.sock' removed '/run/nginx-12.sock' removed '/run/nginx-13.sock' removed '/run/nginx-16.sock' removed '/run/nginx-17.sock' removed '/run/nginx-2.sock' removed '/run/nginx-21.sock' removed '/run/nginx-23.sock' removed '/run/nginx-28.sock' removed '/run/nginx-29.sock' removed '/run/nginx-3.sock' removed '/run/nginx-30.sock' removed '/run/nginx-4.sock' removed '/run/nginx-5.sock' removed '/run/nginx-6.sock' removed '/run/nginx-7.sock' removed '/run/nginx-8.sock' removed '/run/nginx-9.sock' removed '/run/php83.sock'

Zoey2936 commented 1 month ago

Hi, can you please execute this inside the container please: certbot-ocsp-fetcher.sh -c /data/tls/certbot -o /data/tls/certbot/live --no-reload-webserver; echo $?

shedowe19 commented 1 month ago
/app # certbot-ocsp-fetcher.sh -c /data/tls/certbot -o /data/tls/certbot/live --no-reload-webserver; echo $?
Running in stand-alone mode...

LINEAGE RESULT  REASON
npm-10  not updated     valid staple file on disk
npm-11  not updated     valid staple file on disk
npm-12  not updated     valid staple file on disk
npm-14  not updated     valid staple file on disk
npm-15  not updated     valid staple file on disk
npm-16  not updated     valid staple file on disk
npm-17  not updated     valid staple file on disk
npm-18  not updated     valid staple file on disk
npm-2   failed to update        leaf certificate expired
npm-20  not updated     valid staple file on disk
npm-21  not updated     valid staple file on disk
npm-23  not updated     valid staple file on disk
npm-25  not updated     valid staple file on disk
npm-26  not updated     valid staple file on disk
npm-27  not updated     valid staple file on disk
npm-3   not updated     valid staple file on disk
npm-34  not updated     valid staple file on disk
npm-36  not updated     valid staple file on disk
npm-37  not updated     valid staple file on disk
npm-6   not updated     valid staple file on disk
npm-7   not updated     valid staple file on disk
npm-8   not updated     valid staple file on disk
npm-9   not updated     valid staple file on disk

Install the BSD utility `column` for properly formatted output.
If the version of `column` supports the `--output-separator` flag,
the output will be formatted as TSV.
shedowe19 commented 1 month ago

Here are the Output

shedowe19 commented 1 month ago
/app # openssl x509 -enddate -noout -in /data/tls/certbot/live/npm-2/fullchain.pem
notAfter=Aug 26 07:18:15 2024 GMT

?

Zoey2936 commented 1 month ago

Did you removed a number at the end of the output?

shedowe19 commented 1 month ago

Weird npm-6 is pm.clawsucht.de (Nginx Proxy Manager) and the npm-2 is the pm.clawsucht.de (Expired Certificate).

After i deleted npm-2 Folder in certbot, it give no more Failures.

Zoey2936 commented 1 month ago

So it works with npm-2 deleted?

shedowe19 commented 1 month ago

Yes but now i have another Problem: ``` 2024-09-20 13:16:29,906:DEBUG:certbot._internal.main:certbot version: 2.11.0 2024-09-20 13:16:29,907:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/local/bin/certbot 2024-09-20 13:16:29,907:DEBUG:certbot._internal.main:Arguments: ['--logs-dir', '/tmp/certbot-log', '--work-dir', '/tmp/certbot-work', '--config-dir', '/data/tls/certbot', '--config', '/data/tls/certbot/config.ini', '--cert-name', 'npm-39', '--domains', 'analytics.clawsucht.de', '--authenticator', 'dns-cloudflare', '--dns-cloudflare-credentials', '/data/tls/certbot/credentials/credentials-39', '--email', 'shedowe@clawsucht.de'] 2024-09-20 13:16:29,907:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#dns-cloudflare,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) 2024-09-20 13:16:29,917:DEBUG:certbot._internal.log:Root logging level set at 30 2024-09-20 13:16:29,918:DEBUG:certbot._internal.plugins.selection:Requested authenticator dns-cloudflare and installer None 2024-09-20 13:16:29,918:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: dns-cloudflare Description: Obtain certificates using a DNS TXT record (if you are using Cloudflare for DNS). Interfaces: Authenticator, Plugin Entry point: EntryPoint(name='dns-cloudflare', value='certbot_dns_cloudflare._internal.dns_cloudflare:Authenticator', group='certbot.plugins') Initialized: <certbot_dns_cloudflare._internal.dns_cloudflare.Authenticator object at 0x7fe979df8110> Prep: True 2024-09-20 13:16:29,918:DEBUG:certbot._internal.plugins.selection:Selected authenticator <certbot_dns_cloudflare._internal.dns_cloudflare.Authenticator object at 0x7fe979df8110> and installer None 2024-09-20 13:16:29,918:INFO:certbot._internal.plugins.selection:Plugins selected: Authenticator dns-cloudflare, Installer None 2024-09-20 13:16:30,622:DEBUG:acme.client:Sending GET request to https://acme.zerossl.com/v2/DV90. 2024-09-20 13:16:30,623:DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): acme.zerossl.com:443 2024-09-20 13:16:30,833:DEBUG:urllib3.connectionpool:https://acme.zerossl.com:443 "GET /v2/DV90 HTTP/11" 200 645 2024-09-20 13:16:30,833:DEBUG:acme.client:Received response: HTTP 200 Server: nginx Date: Fri, 20 Sep 2024 11:16:30 GMT Content-Type: application/json Content-Length: 645 Connection: keep-alive Access-Control-Allow-Origin: Strict-Transport-Security: max-age=15724800; includeSubDomains

{ "newNonce": "https://acme.zerossl.com/v2/DV90/newNonce", "newAccount": "https://acme.zerossl.com/v2/DV90/newAccount", "newOrder": "https://acme.zerossl.com/v2/DV90/newOrder", "revokeCert": "https://acme.zerossl.com/v2/DV90/revokeCert", "keyChange": "https://acme.zerossl.com/v2/DV90/keyChange", "meta": { "termsOfService": "https://secure.trust-provider.com/repository/docs/Legacy/20230516_Certificate_Subscriber_Agreement_v_2_6_click.pdf", "website": "https://zerossl.com", "caaIdentities": ["sectigo.com", "trust-provider.com", "usertrust.com", "comodoca.com", "comodo.com"], "externalAccountRequired": true } } 2024-09-20 13:16:30,833:DEBUG:certbot._internal.main: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/certbot/_internal/main.py", line 741, in _determine_account acc, acme = client.register( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/client.py", line 209, in register regr = perform_registration(acme, config, tos_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/client.py", line 248, in perform_registration raise errors.Error(msg) certbot.errors.Error: Server requires external account binding. Please use --eab-kid and --eab-hmac-key. 2024-09-20 13:16:30,834:DEBUG:certbot._internal.log:Exiting abnormally: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/certbot/_internal/main.py", line 741, in _determine_account acc, acme = client.register( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/client.py", line 209, in register regr = perform_registration(acme, config, tos_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/client.py", line 248, in perform_registration raise errors.Error(msg) certbot.errors.Error: Server requires external account binding. Please use --eab-kid and --eab-hmac-key.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/certbot", line 8, in sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/main.py", line 19, in main return internal_main.main(cli_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/main.py", line 1894, in main return config.func(config, plugins) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/main.py", line 1582, in certonly le_client = _init_le_client(config, auth, installer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/main.py", line 833, in _init_le_client acc, acme = _determine_account(config) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/certbot/_internal/main.py", line 754, in _determine_account raise errors.Error( certbot.errors.Error: Unable to register an account with ACME server. Server requires external account binding. Please use --eab-kid and --eab-hmac-key. 2024-09-20 13:16:30,835:ERROR:certbot._internal.log:Unable to register an account with ACME server. Server requires external account binding. Please use --eab-kid and --eab-hmac-key.

shedowe19 commented 1 month ago

Okay, i must Register on ZeroSSL and now i have the 2 Things i need. ^^

Now the Ticket can Close

shedowe19 commented 1 month ago

image

Perfect ^^

shedowe19 commented 1 month ago
2024/09/20 14:08:33 [notice] 1655#1655: ModSecurity-nginx v1.0.3 (rules loaded inline/local/remote: 0/21/0)
[Certbot  ] › ▶  start     Installing cloudflare...
[Certbot  ] › ☒  complete  Installed cloudflare
[SSL      ] › ℹ  info      Requesting Certbot certificates via Cloudflare for Cert #43: lxc.clawsucht.de
[SSL      ] › ℹ  info      Command: certbot --logs-dir /tmp/certbot-log --work-dir /tmp/certbot-work --config-dir /data/tls/certbot certonly --config "/data/tls/certbot/config.ini" --cert-name "npm-43" --domains "lxc.clawsucht.de" --authenticator dns-cloudflare --dns-cloudflare-credentials "/data/tls/certbot/credentials/credentials-43" --email "shedowe@clawsucht.de" 
[SSL      ] › ℹ  info      Requesting a certificate for lxc.clawsucht.de
Waiting 10 seconds for DNS changes to propagate
Successfully received certificate.
Certificate is saved at: /data/tls/certbot/live/npm-43/fullchain.pem
Key is saved at:         /data/tls/certbot/live/npm-43/privkey.pem
This certificate expires on 2024-12-19.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/23.conf
[Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/23.conf
[Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/23.conf"
}
[Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/23.conf.err
[Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/23.conf.err"
}
[Nginx    ] › ℹ  info      Reloading Nginx
2024/09/20 14:10:36 [warn] 1655#1655: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/20 14:10:36 [warn] 1655#1655: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/20 14:10:36 [warn] 1655#1655: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/20 14:10:36 [warn] 1655#1655: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/20 14:10:36 [warn] 1655#1655: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/20 14:10:36 [warn] 1655#1655: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/20 14:10:36 [warn] 1655#1655: deleting socket /run/nginx-23.sock

And the next error when i create new certificate, the old npm not deleted and when i manually delete it give the error

Zoey2936 commented 1 month ago

for your last commt, what is the issue exactly?

shedowe19 commented 1 month ago

@Zoey2936 How can i fix it?

Zoey2936 commented 1 month ago

If you tell me what the issue is

shedowe19 commented 1 month ago

Working on file: /data/nginx/proxy_host/3.conf Working on file: /data/nginx/proxy_host/30.conf Working on file: /data/nginx/proxy_host/4.conf Working on file: /data/nginx/proxy_host/5.conf Working on file: /data/nginx/proxy_host/6.conf Working on file: /data/nginx/proxy_host/7.conf Working on file: /data/nginx/proxy_host/8.conf Working on file: /data/nginx/proxy_host/9.conf Success.


| \ || . | \ \ | | | || /| || . | || | |[-[ |_||| ||||| /|| _|/_/ ||

Version: 2.11.3+8dfb3d2 Date: Sat Sep 28 08:42:57 CEST 2024 User: root PUID: 0 User ID: 0 PGID: 0 Group ID: 0

nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem" nginx: [emerg] cannot load certificate "/data/tls/certbot/live/npm-40/fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/data/tls/certbot/live/npm-40/fullchain.pem, r) error:10000080:BIO routines::no such file) nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

shedowe19 commented 1 month ago

When i issue a new certifricate NPM restart and it give offline Failure when i click on it it has the old config and not renew the Config?

shedowe19 commented 1 month ago

when i click save a new config will use, but it not clear the config right, now i have a failure a removed certificate are missing?

shedowe19 commented 1 month ago

and another: when i renew the Certificate it not revoke a old certificate before

Zoey2936 commented 1 month ago

your error description are very bad...

Zoey2936 commented 1 month ago

please don't understand that wrong, it is good that your are repüorting errors, but "when i click save a new config will use, but it not clear the config right, now i have a failure a removed certificate are missing?" is something, where I don't understand what the error is

shedowe19 commented 1 month ago
[Certbot  ] › ▶  start     Installing cloudflare...
[Certbot  ] › ☒  complete  Installed cloudflare
[SSL      ] › ℹ  info      Requesting Certbot certificates via Cloudflare for Cert #3: adguard.clawsucht.nrw
[SSL      ] › ℹ  info      Command: certbot --logs-dir /tmp/certbot-log --work-dir /tmp/certbot-work --config-dir /data/tls/certbot certonly --config "/data/tls/certbot/config.ini" --cert-name "npm-3" --domains "adguard.clawsucht.nrw" --authenticator dns-cloudflare --dns-cloudflare-credentials "/data/tls/certbot/credentials/credentials-3" --email "shedowe@clawsucht.de" 
[SSL      ] › ℹ  info      Requesting a certificate for adguard.clawsucht.nrw
Waiting 10 seconds for DNS changes to propagate
Successfully received certificate.
Certificate is saved at: /data/tls/certbot/live/npm-3/fullchain.pem
Key is saved at:         /data/tls/certbot/live/npm-3/privkey.pem
This certificate expires on 2024-12-27.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf
[Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/1.conf"
}
[Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf
[Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/1.conf"
}
[Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/1.conf.err"
}
[Nginx    ] › ℹ  info      Reloading Nginx
2024/09/28 10:06:59 [warn] 602#602: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/28 10:06:59 [warn] 602#602: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/28 10:06:59 [warn] 602#602: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/28 10:06:59 [warn] 602#602: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/28 10:06:59 [warn] 602#602: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
2024/09/28 10:06:59 [warn] 602#602: "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"

Here i have created conf withoud SSL and i would add SSL and it give me the SSL Certificate but not update the Config. I must manual update by clicking on Edit an Save

shedowe19 commented 1 month ago

Now with the new Build i have the Following Start Error:

OK: 95 MiB in 97 packages
'/usr/local/nginx/conf/conf.d/include/goaccess.conf' -> '/usr/local/nginx/conf/conf.d/goaccess.conf'
'/usr/local/nginx/conf/conf.d/include/goaccess-no-server-name.conf' -> '/usr/local/nginx/conf/conf.d/goaccess-no-server-name.conf'
Working on file: /data/nginx/custom/events.conf
Working on file: /data/nginx/custom/http.conf
Working on file: /data/nginx/custom/http_top.conf
Working on file: /data/nginx/custom/root_top.conf
Working on file: /data/nginx/custom/server_dead.conf
Working on file: /data/nginx/custom/server_proxy.conf
Working on file: /data/nginx/custom/server_redirect.conf
Working on file: /data/nginx/custom/server_stream.conf
Working on file: /data/nginx/custom/server_stream_tcp.conf
Working on file: /data/nginx/custom/server_stream_udp.conf
Working on file: /data/nginx/custom/stream.conf
Working on file: /data/nginx/custom/stream_top.conf
Working on file: /data/nginx/default.conf
Working on file: /data/nginx/proxy_host/1.conf
Working on file: /data/nginx/proxy_host/10.conf
Working on file: /data/nginx/proxy_host/11.conf
Working on file: /data/nginx/proxy_host/12.conf
Working on file: /data/nginx/proxy_host/13.conf
Working on file: /data/nginx/proxy_host/14.conf
Working on file: /data/nginx/proxy_host/15.conf
Working on file: /data/nginx/proxy_host/16.conf
Working on file: /data/nginx/proxy_host/18.conf
Working on file: /data/nginx/proxy_host/19.conf
Working on file: /data/nginx/proxy_host/2.conf
Working on file: /data/nginx/proxy_host/3.conf
Working on file: /data/nginx/proxy_host/4.conf
Working on file: /data/nginx/proxy_host/5.conf
Working on file: /data/nginx/proxy_host/6.conf
Working on file: /data/nginx/proxy_host/7.conf
Working on file: /data/nginx/proxy_host/8.conf
Working on file: /data/nginx/proxy_host/9.conf
Success.
-------------------------------------
 _ _  ___  __ __       _
| \ || . \|  \  \ ___ | | _ _  ___
|   ||  _/|     || . \| || | |[_-[
|_\_||_|  |_|_|_||  _/|_| \__|/__/
                 |_|
-------------------------------------
Version:  2.11.3+a770b35
Date:     Mon Sep 30 21:00:23 CEST 2024
User:     root
PUID:     0
User ID:  0
PGID:     0
Group ID: 0
-------------------------------------
nginx: [emerg] "ssl_stapling" directive is duplicate in /usr/local/nginx/conf/conf.d/goaccess-no-server-name.conf:17
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Zoey2936 commented 1 month ago

can you please retry?

shedowe19 commented 1 month ago
OK: 95 MiB in 97 packages
'/usr/local/nginx/conf/conf.d/include/goaccess.conf' -> '/usr/local/nginx/conf/conf.d/goaccess.conf'
'/usr/local/nginx/conf/conf.d/include/goaccess-no-server-name.conf' -> '/usr/local/nginx/conf/conf.d/goaccess-no-server-name.conf'
Working on file: /data/nginx/custom/events.conf
Working on file: /data/nginx/custom/http.conf
Working on file: /data/nginx/custom/http_top.conf
Working on file: /data/nginx/custom/root_top.conf
Working on file: /data/nginx/custom/server_dead.conf
Working on file: /data/nginx/custom/server_proxy.conf
Working on file: /data/nginx/custom/server_redirect.conf
Working on file: /data/nginx/custom/server_stream.conf
Working on file: /data/nginx/custom/server_stream_tcp.conf
Working on file: /data/nginx/custom/server_stream_udp.conf
Working on file: /data/nginx/custom/stream.conf
Working on file: /data/nginx/custom/stream_top.conf
Working on file: /data/nginx/default.conf
Working on file: /data/nginx/proxy_host/1.conf
Working on file: /data/nginx/proxy_host/10.conf
Working on file: /data/nginx/proxy_host/11.conf
Working on file: /data/nginx/proxy_host/12.conf
Working on file: /data/nginx/proxy_host/13.conf
Working on file: /data/nginx/proxy_host/14.conf
Working on file: /data/nginx/proxy_host/15.conf
Working on file: /data/nginx/proxy_host/16.conf
Working on file: /data/nginx/proxy_host/18.conf
Working on file: /data/nginx/proxy_host/19.conf
Working on file: /data/nginx/proxy_host/2.conf
Working on file: /data/nginx/proxy_host/3.conf
Working on file: /data/nginx/proxy_host/4.conf
Working on file: /data/nginx/proxy_host/5.conf
Working on file: /data/nginx/proxy_host/6.conf
Working on file: /data/nginx/proxy_host/7.conf
Working on file: /data/nginx/proxy_host/8.conf
Working on file: /data/nginx/proxy_host/9.conf
Success.
-------------------------------------
 _ _  ___  __ __       _
| \ || . \|  \  \ ___ | | _ _  ___
|   ||  _/|     || . \| || | |[_-[
|_\_||_|  |_|_|_||  _/|_| \__|/__/
                 |_|
-------------------------------------
Version:  2.11.3+a6c1c06
Date:     Mon Sep 30 21:30:21 CEST 2024
User:     root
PUID:     0
User ID:  0
PGID:     0
Group ID: 0
-------------------------------------
nginx: [emerg] "ssl_stapling" directive is duplicate in /usr/local/nginx/conf/conf.d/goaccess-no-server-name.conf:17
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

No its the same Issue.

Zoey2936 commented 1 month ago

please retry again

shedowe19 commented 1 month ago
-------------------------------------
 _ _  ___  __ __       _
| \ || . \|  \  \ ___ | | _ _  ___
|   ||  _/|     || . \| || | |[_-[
|_\_||_|  |_|_|_||  _/|_| \__|/__/
                 |_|
-------------------------------------
Version:  2.11.3+cba0ccd
Date:     Mon Sep 30 22:06:04 CEST 2024
User:     root
PUID:     0
User ID:  0
PGID:     0
Group ID: 0
-------------------------------------
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
reading config file /etc/logrotate
acquired lock on state file /data/etc/logrotate.statusReading state from file: /data/etc/logrotate.status
Allocating hash table for state file, size 64 entries
Creating new state
Creating new state
Handling 1 logs
rotating pattern: /data/nginx/*.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /data/nginx/access.log
  Now: 2024-09-30 22:06
  Last rotated at 2024-09-30 06:32
  log does not need rotating (log has been rotated at 2024-09-30 06:32, which is less than a day ago)
considering log /data/nginx/stream.log
  Now: 2024-09-30 22:06
  Last rotated at 2024-09-28 09:00
  log does not need rotating (log is empty)
not running postrotate script, since no logs were rotated
 [SETTING UP STORAGE -] {0} @ {0/s}
[30-Sep-2024 22:06:04] NOTICE: fpm is running, pid 1144
[30-Sep-2024 22:06:04] NOTICE: ready to handle connections
[Global   ] › ℹ  info      Using Sqlite: /data/etc/npm/database.sqlite
 [PARSING /data/nginx/access.log] {4956} @ {0/s}
 [PARSING /data/nginx/access.log] {9683} @ {0/s}
 [PARSING /data/nginx/access.log] {14344} @ {0/s}

WebSocket server ready to accept new client connections
[Migrate  ] › ℹ  info      Current database version: none
[Migrate  ] › ℹ  info      [stream_domain] Migrating Up...
node:internal/fs/rimraf:60
    callback(err);
    ^
TypeError: callback is not a function
    at CB (node:internal/fs/rimraf:60:5)
    at node:internal/fs/rimraf:91:14
    at FSReqCallback.oncomplete (node:fs:187:23)
Node.js v20.15.1
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
  0%                                             OK: 95 MiB in 97 packages
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
  0%                                             OK: 95 MiB in 97 packages
sed: /data/nginx/default.conf: No such file or directory
sed: /data/nginx/default.conf: No such file or directory
'/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/README.md' -> '/data/etc/modsecurity/crs-plugins/README.md'
'/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/empty-after.conf' -> '/data/etc/modsecurity/crs-plugins/empty-after.conf'
'/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/empty-before.conf' -> '/data/etc/modsecurity/crs-plugins/empty-before.conf'
'/usr/local/nginx/conf/conf.d/include/coreruleset/plugins/empty-config.conf' -> '/data/etc/modsecurity/crs-plugins/empty-config.conf'
no DEFAULT_CERT_ID set, using dummycerts.
sed: /data/nginx/default.conf: No such file or directory
sed: /data/nginx/default.conf: No such file or directory
sed: /data/nginx/default.conf: No such file or directory
sed: /data/nginx/default.conf: No such file or directory
'/usr/local/nginx/conf/conf.d/include/default.conf' -> '/data/nginx/default.conf'
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
  0%                                             OK: 95 MiB in 97 packages
Working on file: /data/nginx/custom/events.conf
Working on file: /data/nginx/custom/http.conf
Working on file: /data/nginx/custom/http_top.conf
Working on file: /data/nginx/custom/root_top.conf
Working on file: /data/nginx/custom/server_dead.conf
Working on file: /data/nginx/custom/server_proxy.conf
Working on file: /data/nginx/custom/server_redirect.conf
Working on file: /data/nginx/custom/server_stream.conf
Working on file: /data/nginx/custom/server_stream_tcp.conf
Working on file: /data/nginx/custom/server_stream_udp.conf
Working on file: /data/nginx/custom/stream.conf
Working on file: /data/nginx/custom/stream_top.conf
Working on file: /data/nginx/default.conf
Working on file: /data/nginx/proxy_host/1.conf
Working on file: /data/nginx/proxy_host/10.conf
Working on file: /data/nginx/proxy_host/11.conf
Working on file: /data/nginx/proxy_host/12.conf
Working on file: /data/nginx/proxy_host/13.conf
Working on file: /data/nginx/proxy_host/14.conf
Working on file: /data/nginx/proxy_host/15.conf
Working on file: /data/nginx/proxy_host/16.conf
Working on file: /data/nginx/proxy_host/18.conf
Working on file: /data/nginx/proxy_host/19.conf
Working on file: /data/nginx/proxy_host/2.conf
Working on file: /data/nginx/proxy_host/3.conf
Working on file: /data/nginx/proxy_host/4.conf
Working on file: /data/nginx/proxy_host/5.conf
Working on file: /data/nginx/proxy_host/6.conf
Working on file: /data/nginx/proxy_host/7.conf
Working on file: /data/nginx/proxy_host/8.conf
Working on file: /data/nginx/proxy_host/9.conf
Success.
removed '/usr/local/nginx/logs/nginx.pid'
removed '/run/php83.sock'

Here are the next error

Zoey2936 commented 1 month ago

Please try again

shedowe19 commented 1 month ago
-------------------------------------
 _ _  ___  __ __       _
| \ || . \|  \  \ ___ | | _ _  ___
|   ||  _/|     || . \| || | |[_-[
|_\_||_|  |_|_|_||  _/|_| \__|/__/
                 |_|
-------------------------------------
Version:  2.11.3+40b59be
Date:     Mon Sep 30 23:17:40 CEST 2024
User:     root
PUID:     0
User ID:  0
PGID:     0
Group ID: 0
-------------------------------------
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/data/tls/dummycert.pem"
reading config file /etc/logrotate
acquired lock on state file /data/etc/logrotate.statusReading state from file: /data/etc/logrotate.status
Allocating hash table for state file, size 64 entries
Creating new state
Creating new state
Handling 1 logs
rotating pattern: /data/nginx/*.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
considering log /data/nginx/access.log
  Now: 2024-09-30 23:17
  Last rotated at 2024-09-30 06:32
  log does not need rotating (log has been rotated at 2024-09-30 06:32, which is less than a day ago)
considering log /data/nginx/stream.log
  Now: 2024-09-30 23:17
  Last rotated at 2024-09-28 09:00
  log does not need rotating (log is empty)
not running postrotate script, since no logs were rotated
 [SETTING UP STORAGE -] {0} @ {0/s}
[30-Sep-2024 23:17:40] NOTICE: fpm is running, pid 1172
[30-Sep-2024 23:17:40] NOTICE: ready to handle connections
[Global   ] › ℹ  info      Using Sqlite: /data/etc/npm/database.sqlite
 [PARSING /data/nginx/access.log] {4811} @ {0/s}
 [PARSING /data/nginx/access.log] {9440} @ {0/s}
 [PARSING /data/nginx/access.log] {14261} @ {14261/s}

WebSocket server ready to accept new client connections
[Migrate  ] › ℹ  info      Current database version: none
[Migrate  ] › ℹ  info      [stream_domain] Migrating Up...
migration file "20240921100301_regenerate_default_host.js" failed
migration failed with error: err is not defined
[Global   ] › ✖  error     err is not defined
[Migrate  ] › ℹ  info      Current database version: none
[Migrate  ] › ℹ  info      [stream_domain] Migrating Up...
migration file "20240921100301_regenerate_default_host.js" failed
migration failed with error: err is not defined
[Global   ] › ✖  error     err is not defined
[Migrate  ] › ℹ  info      Current database version: none
[Migrate  ] › ℹ  info      [stream_domain] Migrating Up...
migration file "20240921100301_regenerate_default_host.js" failed
migration failed with error: err is not defined
[Global   ] › ✖  error     err is not defined
[Migrate  ] › ℹ  info      Current database version: none
[Migrate  ] › ℹ  info      [stream_domain] Migrating Up...
migration file "20240921100301_regenerate_default_host.js" failed

The Failure is in loop

ne0ark commented 1 month ago

I was also running into the same issue with develop switch back to latest.

Zoey2936 commented 1 month ago

please retry, it should now be fixed

ne0ark commented 1 month ago

please retry, it should now be fixed

I still see the error:

[Migrate  ] › ℹ  info      Current database version: none
[Migrate  ] › ℹ  info      [stream_domain] Migrating Up...
migration file "20240921100301_regenerate_default_host.js" failed
migration failed with error: err is not defined
[Global   ] › ✖  error     err is not defined
Zoey2936 commented 1 month ago

And you pulled the develop tag again?

ne0ark commented 1 month ago

And you pulled the develop tag again?

Yes

Zoey2936 commented 1 month ago

Can you please pull it again?

ne0ark commented 1 month ago

Can you please pull it again?

The issue seems resolved. Thanks!

shedowe19 commented 1 month ago

Yes i close the Ticket now!

The Issue is Resolved. Thanks @Zoey2936

shedowe19 commented 3 weeks ago

IMG_0766 Please look at this Issue

Zoey2936 commented 3 weeks ago

please retry