[GH-ISSUE #2953] Unable to request certificate on new install #2011

Closed
opened 2026-02-26 07:33:41 +03:00 by kerem · 1 comment
Owner

Originally created by @nrgbistro on GitHub (May 26, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2953

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
When requesting a new cloudflare DNS challenge for an SSL cert, I get this error:

Error: Command failed: mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
dns_cloudflare_api_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' > '/etc/letsencrypt/credentials/credentials-2' && chmod 600 '/etc/letsencrypt/credentials/credentials-2'
/bin/sh: can't create /etc/letsencrypt/credentials/credentials-2: Permission denied

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Socket. (node:internal/child_process:458:11)
    at Socket.emit (node:events:513:28)
    at Pipe. (node:net:301:12)

I tried manually creating credentials-1 and setting permissions inside the container, that is why it decided to use credentials-2.

Nginx Proxy Manager Version
v2.9.22

To Reproduce
Steps to reproduce the behavior:

  1. Create an SSL certificate on a fresh installation
  2. Choose cloudflare as the provider and give the api key to edit the zone DNS
  3. Click save
  4. See error

Expected behavior
An SSL certificate is created

Operating System
Unraid v6.11.5

Originally created by @nrgbistro on GitHub (May 26, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2953 **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** When requesting a new cloudflare DNS challenge for an SSL cert, I get this error: ``` Error: Command failed: mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token dns_cloudflare_api_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' > '/etc/letsencrypt/credentials/credentials-2' && chmod 600 '/etc/letsencrypt/credentials/credentials-2' /bin/sh: can't create /etc/letsencrypt/credentials/credentials-2: Permission denied at ChildProcess.exithandler (node:child_process:402:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1100:16) at Socket. (node:internal/child_process:458:11) at Socket.emit (node:events:513:28) at Pipe. (node:net:301:12) ``` I tried manually creating `credentials-1` and setting permissions inside the container, that is why it decided to use `credentials-2`. **Nginx Proxy Manager Version** v2.9.22 **To Reproduce** Steps to reproduce the behavior: 1. Create an SSL certificate on a fresh installation 2. Choose cloudflare as the provider and give the api key to edit the zone DNS 3. Click save 4. See error **Expected behavior** An SSL certificate is created **Operating System** Unraid v6.11.5
kerem 2026-02-26 07:33:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@nrgbistro commented on GitHub (May 26, 2023):

Issue was resolved by updating the version to v2.10.3

<!-- gh-comment-id:1564931272 --> @nrgbistro commented on GitHub (May 26, 2023): Issue was resolved by updating the version to v2.10.3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2011
No description provided.