CyberPanel Community

DKIM Key Generation fails - Permission denied

dd
ddegner #1

While in the “DKIM MANAGER” panel I try to generate a key by selecting my website and clicking the “Generate Now” button.

I receive an error:
[Errno 13] Permission denied: ‘/usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock’

I ssh into that folder and the lock file is being generated on “Generate Now”, they have the permissions of -rwxr-xr-x 1 root root.

It looks like this is a common problem recently but I haven’t found an answer anywhere.

8 replies
dd
ddegner #2

Is this a more common problem with Python?

Ph
Philipinho #5

The solution is to grant permission to Cyberpanel.

chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/

Je
Jeff #6

Hey Philipinho
Great explanation you explained exactly right, it worked for me in 2023, thank you very much :slight_smile:

here e.g. abbreviate the original error code:
/usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock

  1. Change the python3.10 version to your version

  2. delete this subfolders:
    publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock

  3. run this command without sudo:

chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/

ta
taha albareda #7

this works with me but with some changes:
the -R after the cyberpanel:cyberpanel
and the paython3.8 (i change it with the python3.10) as my server running this version.
here is the code:
chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache/

and everyone, should go to the path above and make sure it’s the same as in his server, and if he has python version older or newer, he should edit above commend with the number of python version as in his server.

ta
taha albareda #8

chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache/

and everyone, should go to the path above and make sure it’s the same as in his server, and if he has python version older or newer, he should edit above commend with the number of python version as in his server.

Sign in to reply