usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.49k stars 582 forks source link

[BUG] unable to delete orphaned _acme-challenge dns records through panel #1104

Open cagivacode opened 11 months ago

cagivacode commented 11 months ago

Running the latest stable panel.

Not sure why acme.sh is leaving _acme-challenge txt records behind on occasion. But the whole cert saga is another issue. If there are multiple challenge txt fields -- renewal will often fail.

Go to the panel > goto add/modify DNS records select a _acme-challenge record to delete.

result is a a python code about "none" type selected and fails. The txt record is not deleted.

The issue has to do with the domainOwner_id field which is NULL when the _acme-challenge record is inserted by acme.sh.

usmannasir commented 11 months ago

can you show me screen shot of the records you cant delete?

cagivacode commented 10 months ago

They are the standard _acme-challenge records added during cert renewal. I will have to turn off my cron job to delete them and wait for the cert to be renewed to get a screenshot.