Error: "No Such File or Directory" While Installing Certs #2602
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, I found an issue with the "update - CF SSL Certificate" feature in the 3x-ui v2.4.7 update. During script execution, the following error occurs:
"[INF] Certificate issued successfully, Installing...
[Sat Nov 16 01:54:41 AM PST 2024] The domain 'example.com' seems to already have an ECC cert, let's use it.
[Sat Nov 16 01:54:41 AM PST 2024] Installing cert to: /root/cert-CF/example.com/fullchain.pem
/root/.acme.sh/acme.sh: line 5925: /root/cert-CF/example.com/fullchain.pem: No such file or directory
[ERR] Certificate installation failed, script exiting...
".
Later, I discovered that the directory "${certPath}/${CF_Domain}" must exist before installing the certificate; otherwise, acme will throw such error. Therefore, I am submitting this PR and hope you can review it as soon as possible.