GithubHelp home page GithubHelp logo

Comments (8)

ivanfilippov avatar ivanfilippov commented on June 18, 2024

Hi @fredericmohr

Can you tell me what version of PowerDNS you're using?

from powerdns-admin.

ivanfilippov avatar ivanfilippov commented on June 18, 2024

Hi @fredericmohr

I'm trying this on a fresh pdns-3.4.8 with the PowerDNS-Admin master and I can't replicate it. I created example.com using these queries:

INSERT INTO domains (name, type) values ('example.com', 'NATIVE');
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'example.com','localhost [email protected] 1','SOA',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'example.com','dns-us1.powerdns.net','NS',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'example.com','dns-eu1.powerdns.net','NS',86400,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'www.example.com','192.0.2.10','A',120,NULL); 
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'mail.example.com','192.0.2.12','A',120,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'localhost.example.com','127.0.0.1','A',120,NULL);
INSERT INTO records (domain_id, name, content, type,ttl,prio) VALUES (1,'example.com','mail.example.com','MX',120,25);

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.py in it's directory (make sure to do source ./flask/bin/activate first), then connect to it directly via http://localhost:9393 and watch the console as you try to delete example.com

from powerdns-admin.

fredericmohr avatar fredericmohr commented on June 18, 2024

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)

ubuntu@powerdns:~$ pdns_server --version
May 14 10:33:57 PowerDNS Authoritative Server 3.4.8 ([email protected]) (C) 2001-2015 PowerDNS.COM BV
May 14 10:33:57 Using 64-bits mode. Built on 20160203082222 by [email protected], gcc 4.7.2.
May 14 10:33:57 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
May 14 10:33:57 Features: botan1.10 libdl lua 
May 14 10:33:57 Built-in modules: bind gmysql gpgsql pipe gsqlite3 lua geo tinydns mydns opendbx remote random

DB: MariaDB 10.0.24 (AWS RDS Instance)

2016-05-14 10:45:31,321 - MODEL - INFO - Added domain chrometest.com successfully
2016-05-14 10:45:37,158 - MODEL - INFO - Delete domain chrometest.com successfully
2016-05-14 10:45:46,918 - MODEL - INFO - Added domain fftest.com successfully
# ff delete request doesn't show up in log file.

Current PowerDNS-Admin settings during tests (In production I use LOGLEVEL='WARNING' and debug = False)

#config.py
LOGLEVEL='DEBUG'

#run.py
app.run(debug = True, 

from powerdns-admin.

fredericmohr avatar fredericmohr commented on June 18, 2024

Oh, and another thing. In chrome, the domain still shows after the redirect, until I do a page refresh...

from powerdns-admin.

ivanfilippov avatar ivanfilippov commented on June 18, 2024

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.

from powerdns-admin.

fredericmohr avatar fredericmohr commented on June 18, 2024

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 ;)

from powerdns-admin.

ivanfilippov avatar ivanfilippov commented on June 18, 2024

Hi @fredericmohr

I've created PR #42 for @ngoduykhanh to review, once accepted you can switch back to master. :)

from powerdns-admin.

ngoduykhanh avatar ngoduykhanh commented on June 18, 2024

Hi @ivanfilippov ,

Your changes look good to me. Thank you for the PR. Merged.

from powerdns-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.