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

High CPU ultilization with v2.12.4

Open boehser-enkel opened this issue 1 year ago • 11 comments

Image

[7/3/2025] [12:54:47 PM] [Migrate  ] › ℹ  info      Current database version: none

[7/3/2025] [12:54:47 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-1' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token

dns_cloudflare_api_token = x0LC7yyOC5zKoy-KQMSuCkPs5AgcZ4q_HO_542VP' > '/etc/letsencrypt/credentials/credentials-1' && chmod 600 '/etc/letsencrypt/credentials/credentials-1'; }

[7/3/2025] [12:54:47 PM] [Global   ] › ⬤  debug     CMD: [ -f '/etc/letsencrypt/credentials/credentials-2' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token

dns_cloudflare_api_token = x0LC7yyOC5zKoy-KQMSuCkPs5AgcZ4q_HO_542VP' > '/etc/letsencrypt/credentials/credentials-2' && chmod 600 '/etc/letsencrypt/credentials/credentials-2'; }

[7/3/2025] [12:54:47 PM] [Certbot  ] › ▶  start     Installing cloudflare...

[7/3/2025] [12:54:47 PM] [Global   ] › ⬤  debug     CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir cloudflare==4.0.* acme==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+') certbot-dns-cloudflare==$(certbot --version | grep -Eo '[0-9](\.[0-9]+)+')  && deactivate

[7/3/2025] [12:54:48 PM] [Certbot  ] › ✖  error     ERROR: Cannot install certbot-dns-cloudflare==4.0.0 and cloudflare==4.0.* because these package versions have conflicting dependencies.

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

[7/3/2025] [12:54:48 PM] [Global   ] › ✖  error     Some plugins failed to install. Please check the logs above CommandError: Some plugins failed to install. Please check the logs above

    at /app/lib/certbot.js:39:14

    at Immediate.<anonymous> (/app/node_modules/batchflow/lib/batchflow.js:80:9)

    at process.processImmediate (node:internal/timers:483:21) {

  previous: undefined,

  code: 1,

  public: false

}

boehser-enkel avatar Jul 03 '25 12:07 boehser-enkel

Replying to say, I noticed the same thing. My docker host kept revving up and down every 3-5 min (or so) trying to execute the certbot cmd, causing high CPU utilization throughout

Going back to 2.12.3 fixes this immediately

paddesb avatar Jul 03 '25 14:07 paddesb

I did notice the same Image

FideliusFalcon avatar Jul 03 '25 14:07 FideliusFalcon

Probably no need to chime in, but same same.

Image

taulen avatar Jul 03 '25 14:07 taulen

Btw seems there is a related older issue, and this comment fixed it for me. https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4606#issuecomment-3025013155

taulen avatar Jul 03 '25 16:07 taulen

Btw seems there is a related older issue, and this comment fixed it for me. #4606 (comment)

Fixed the error for me as well. Solution: run the following command on your docker host, replacing with the name of your npm-container: docker exec -it <containername> sh -c "sed -i 's/cloudflare==4.0.\*/cloudflare/' /app/global/certbot-dns-plugins.json" && docker restart <containername>

mccount avatar Jul 05 '25 12:07 mccount

Yup. Also saw memory charting like it has a memory leak starting after we updated 1st July. (the drops are from overnight snapshot backups)

Memory top, CPU Bottom

Image

After rollback to 2.12.3

Image

weeemrcb avatar Jul 05 '25 14:07 weeemrcb

I am facing the same issue since updating to the latest build on the 1st of July. It seems both CPU utilization and memory utilization is affected. For me memory usage has slowly been going up, so maybe it is some memory leak:

Image Image

Edit: Fixed in newest version

AdnanSilajdzic avatar Jul 09 '25 14:07 AdnanSilajdzic

Fixed in release: v2.12.5

c11umw avatar Jul 28 '25 14:07 c11umw

Weirdly still seeing this problem in 2.12.6

Kieranwest avatar Sep 01 '25 19:09 Kieranwest

Weirdly still seeing this problem in 2.12.6

Updated to 2.12.6, but don't see the issue. Memory is going up, but very slowly. Not like it did before. And CPU has no change.

Image

The spike at the beginning was the install/update

c11umw avatar Sep 10 '25 13:09 c11umw

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

github-actions[bot] avatar Mar 23 '26 02:03 github-actions[bot]