mirror of
https://github.com/PowerDNS-Admin/PowerDNS-Admin.git
synced 2026-04-25 08:45:55 +03:00
[GH-ISSUE #40] Unable to Delete Domain #28
Labels
No labels
bug / broken-feature
bug / broken-feature
docs / request
feature / request
help / other
mod / help-wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PowerDNS-Admin-PowerDNS-Admin#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fredericmohr on GitHub (May 13, 2016).
Original GitHub issue: https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/40
Originally assigned to: @ivanfilippov on GitHub.
During PDNS setup, I created the test entries for example.com (see powerdns documentation).
After I installed PowerDNS-Admin, I created all my domains and their DNS records and resolution works fine.
However, I can't delete the example.com domain. I was able to delete all records for the domain, using the web UI, but when I go to manage -> delete domain and accept the permanent deletion, I get redirected to the domain overview and example.com is still there. There's no log entry in the GUI logfile, and only the following in uwsgi/app/powerdnsadmin.log
The same goes for domains I created directly in the WebUI.
@ivanfilippov commented on GitHub (May 13, 2016):
Hi @fredericmohr
Can you tell me what version of PowerDNS you're using?
@ivanfilippov commented on GitHub (May 14, 2016):
Hi @fredericmohr
I'm trying this on a fresh pdns-3.4.8 with the PowerDNS-Admin
masterand I can't replicate it. I createdexample.comusing these queries:Do you have the LOG_FILE parameter set in
config.py? Not sure if it works as I expect it to in uwsgi mode, but check for its existence and see if that log is more useful.You can also try running PowerDNS-Admin via
python run.pyin it's directory (make sure to dosource ./flask/bin/activatefirst), then connect to it directly viahttp://localhost:9393and watch the console as you try to delete example.com@fredericmohr commented on GitHub (May 14, 2016):
Strange, this problem only seems to occur in Firefox. Deleting in Chrome works fine. I added my DB Version, since I'm not using MySQL but MariaDB, but I don't think that's the problem. This looks Browser Specific (I'm on Kubuntu 16.04 Desktop and Ubuntu 14.04 Server btw)
Current PowerDNS-Admin settings during tests (In production I use LOGLEVEL='WARNING' and debug = False)
@fredericmohr commented on GitHub (May 14, 2016):
Oh, and another thing. In chrome, the domain still shows after the redirect, until I do a page refresh...
@ivanfilippov commented on GitHub (May 15, 2016):
Hi @fredericmohr
I was able to replicate both the Firefox and the Chrome issues. I've pushed a fix to this branch here: https://github.com/ivanfilippov/PowerDNS-Admin/tree/fix_domain_deletion_issues. Are you able to try it out to tell me if the issue is fixed for you as well? If it's fixed I'll merge it into the main repo.
@fredericmohr commented on GitHub (May 17, 2016):
Works perfectly in both Chrome and Firefox now :)
Since I had to switch origin url to test the patch, will this be merged into this repository? Because currently I switched to the fork, which makes me a bit uneasy on a production server ;)
@ivanfilippov commented on GitHub (May 19, 2016):
Hi @fredericmohr
I've created PR #42 for @ngoduykhanh to review, once accepted you can switch back to master. :)
@ngoduykhanh commented on GitHub (May 19, 2016):
Hi @ivanfilippov ,
Your changes look good to me. Thank you for the PR. Merged.