I tried to generate DKIM keys but it was not successful. The message was this:
[Errno 13] Permission denied: ‘/usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock’
My other CyberPanel install on a different server was running fine. Can anyone point out what causes this to fail?
Had the same problem, here’s how I solved it.
First off, /usr/local/CyberCP/lib/python3.6
was not present on my system, but python3.8
instead. So I created a symbolic link for force the path to traverse python3.8
instead (commands issued as root, otherwise prepend sudo
):
$ ln -s python3.8 /usr/local/CyberCP/lib/python3.6
Second, directory /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache
and everything beyond belonged to root:root. So I changed ownership of directory and beyond to cyberpanel:cyberpanel:
$ chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache
And then I was able to issue DKIM certificates!
@simyseng : Can you confirm the ownership of .suffix_cache and below on your server where it ran correctly?
@CyberPanel: please enable MarkDown in forums!
1 Like
Type your comment> @simyseng said:
It’s a bug. Update CyberPanel with this shell
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
I’ve got the same problem and tried your solution. But unfortunately, this update is messing up my sudo rights of my main user. I already had the same problem with the update and it took a while to fix the user groups and sudo rights. So I’ve decided to just roll back to the last snapshot. Why is this update changing my sudo rights?
I’ve now also changed the ownership
chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache
And everything is working fine again.
1 Like
Yes. This is the solution.
Getting same error again now even i added the dkim key from downloading file by ssh it still not works. Please can you tell how can i fix it
This worked for me for atleast i am getting the keys in cyberpanel now with it:
chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/pythonVERSIONHERE/site-packages/tldextract/.suffix_cache