mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2026-04-26 16:15:54 +03:00
[GH-ISSUE #72] NSEDIT #39
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
question
upstream
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsedit#39
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 @mrlesmithjr on GitHub (Jan 7, 2016).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/72
Seeing the following errors after updating to latest code. Thoughts? At login screen you enter username/password and it just sits here. Below is what is in the apache error logs.
[Thu Jan 07 15:46:07.695556 2016] [:error] [pid 2093] [client 192.168.1.188:56247] PHP Notice: Undefined variable: apivers in /var/www/html/nsedit/includes/misc.inc.php on line 12
[Thu Jan 07 15:46:07.695583 2016] [:error] [pid 2093] [client 192.168.1.188:56247] PHP Notice: Undefined variable: apivers in /var/www/html/nsedit/includes/misc.inc.php on line 49
[Thu Jan 07 15:46:07.695671 2016] [:error] [pid 2093] [client 192.168.1.188:56247] PHP Notice: Undefined variable: menutype in /var/www/html/nsedit/index.php on line 29
[Thu Jan 07 15:46:41.251464 2016] [:error] [pid 17692] [client 192.168.1.188:56255] PHP Warning: include_once(includes/config.inc.php): failed to open stream: No such file or directory in /var/www/html/nsedit/index.php on line 3
[Thu Jan 07 15:46:41.251495 2016] [:error] [pid 17692] [client 192.168.1.188:56255] PHP Warning: include_once(): Failed opening 'includes/config.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/nsedit/index.php on line 3
[Thu Jan 07 15:46:41.251671 2016] [:error] [pid 17692] [client 192.168.1.188:56255] PHP Notice: Undefined variable: apivers in /var/www/html/nsedit/includes/misc.inc.php on line 12
[Thu Jan 07 15:46:41.251719 2016] [:error] [pid 17692] [client 192.168.1.188:56255] PHP Notice: Undefined variable: apivers in /var/www/html/nsedit/includes/misc.inc.php on line 49
[Thu Jan 07 15:46:41.251814 2016] [:error] [pid 17692] [client 192.168.1.188:56255] PHP Notice: Undefined variable: menutype in /var/www/html/nsedit/index.php on line 29
@ruben-herold commented on GitHub (Jan 7, 2016):
what is in your misc.inc.php and in your config.inc.php
@tuxis-ie commented on GitHub (Jan 7, 2016):
The latest code includes apivers for 4.0 compatibility. There should be a better check for that, apparently.
@tuxis-ie commented on GitHub (Jan 7, 2016):
Reading back, you should see a notice in the web interface with a link to documentation about it? Login should be blocked..
@mrlesmithjr commented on GitHub (Jan 7, 2016):
We were able to restore back to a current version and it is working again.
But I will look through and see if I can figure out what happened. One
thing I did notice as well was/is config.inc.php prior to the latest code
was working with it being in root of nsedit instead of includes/ but it
would not work with the current version so a symlink was created within
includes/ but still a no go. I will dig deeper as I am very confused now
how it was ever working before :)
I use Ansible for all of my deployments and have done these 100's of times
w/out any issues but s--t happens right? :)
https://github.com/mrlesmithjr/ansible-powerdns
And here are the tasks within the Ansible role with the configuration of
nsedit at the bottom. Last updated in November and things seemed to still
work.
https://github.com/mrlesmithjr/ansible-powerdns/blob/master/tasks/debian_pdns_server.yml
Appreciate the follow up. And I will be in touch soon after I dig a little
deeper.
On Thu, Jan 7, 2016 at 4:44 PM, Tuxis Internet Engineering V.O.F. <
notifications@github.com> wrote:
Twitter @mrlesmithjr http://twitter.com/mrlesmithjr
Blog EverythingShouldBeVirtual.com
Interested in blog sponsorship? Go to http://bit.ly/10Aj7Sq
@mrlesmithjr commented on GitHub (Jan 7, 2016):
So another thing could be the Ansible template I am using to configure config.inc.php is out of date for the new code.
Here is the link to the Ansible template
https://raw.githubusercontent.com/mrlesmithjr/ansible-powerdns/master/templates/nsedit.config.inc.php.j2
@tuxis-ie commented on GitHub (Jan 7, 2016):
It probably is. Try comparing it with the master version. Cool to see people really deploying nsedit!
@mrlesmithjr commented on GitHub (Jan 7, 2016):
Yeah I see some differences already. So I will spin up a vagrant box and do
some testing. Yeah nsedit is useful for those that want a webUI for
PowerDNS. I myself very seldom use the WebUI and just do API calls using
Ansible.
You may be interested in the link below on backing up and recovering :)
http://everythingshouldbevirtual.com/ansible-discover-and-backup-powerdns-zonesrecords
On Thu, Jan 7, 2016 at 5:00 PM, Tuxis Internet Engineering V.O.F. <
notifications@github.com> wrote:
Twitter @mrlesmithjr http://twitter.com/mrlesmithjr
Blog EverythingShouldBeVirtual.com
Interested in blog sponsorship? Go to http://bit.ly/10Aj7Sq
@tuxis-ie commented on GitHub (Jan 7, 2016):
Cool. You know the API can do export and import in plaintext bind-style as well?
@mrlesmithjr commented on GitHub (Jan 7, 2016):
Have not tried that yet.
Sent from my iPhone
@mrlesmithjr commented on GitHub (Jan 8, 2016):
OK. Issue resolved. This was all on me...With the minor changes to the config.inc.php file between what I originally used as a template and the new config.inc.php-dist all is good. Below is the diff of the two templates just as an FYI. I have also include a Vagrant DDI setup in the link below if anyone is interested in testing this all out that I made several months ago for training others.
nsedit-config.inc.php.j2 (New)
nsedit.config.inc.php.j2 (Old)
https://github.com/mrlesmithjr/vagrant-ansible-ddi