DKIM MANAGER

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

I cannot create a DKIM key. What is the problem?

same issue on Centos 8
messages says:
opendkim.service: Can’t open PID file /var/run/opendkim/opendkim.pid (yet?) after start: No such file or directory

it does exist though…

Same here Ubuntu 18.04

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

same here with Ubuntu 20.04, yesterday it was ok

It helped from : Can't genrate DKIM — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

run :
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

Thank you. Problem solved.

Yep, similar problem. Errno 13] Permission denied: ‘/usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock’

Type your comment> @lowenruh said:

It helped from : Can't genrate DKIM — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

run :
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

Problem solved here too. Thank you.

The solution is to grant permission to Cyberpanel.

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

Type your comment> @Philipinho said:

The solution is to grant permission to Cyberpanel.

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

That way would be wrong.
This way worked for me on centos 8.
You forgot the sudo.

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

I’d like to confirm,

@Master3395 said:
Type your comment> @Philipinho said:

The solution is to grant permission to Cyberpanel.

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

That way would be wrong.
This way worked for me on centos 8.
You forgot the sudo.

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

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

This worked for me.
CENT OS

Perfect, chown worked for me too. Thanks Philipinho!

Type your comment> @friederbluemle said:

Perfect, chown worked for me too. Thanks Philipinho!

This should be fixed in 2.1.1 installer and upgrader now, from what I’ve seen.

@Philipinho Thanks, that worked for me as well.

Type your comment> @Master3395 said:

Type your comment> @friederbluemle said:

Perfect, chown worked for me too. Thanks Philipinho!

This should be fixed in 2.1.1 installer and upgrader now, from what I’ve seen.

No. Still failed in 2.1.1 version:
[Errno 13] Permission denied: ‘/usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock’

Ubuntu 20

Type your comment> @fordiy said:

Type your comment> @Master3395 said:

Type your comment> @friederbluemle said:

Perfect, chown worked for me too. Thanks Philipinho!

This should be fixed in 2.1.1 installer and upgrader now, from what I’ve seen.

No. Still failed in 2.1.1 version:
[Errno 13] Permission denied: ‘/usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock’

Ubuntu 20

Did you try this command?
Or just the chown and after?

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

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

This worked.

Changed to python3.8 and it worked for me too.

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

Thanks!!

Ya’ll are the fucking BOMB! I spent all day trying to figure this out until I read your post!

Hi,
I have the same problem [Errno 13] Permission denied: CyberPanel V2.1.1 on Ubuntu 20.4
I tryed this commant:

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

and it work fine! :slight_smile:

Thanks, 23.09.21