New installation fails

If I run pihole -up:

[✓] Restarting Network manager
[i] Checking if dnsmasq is still running
[!] dnsmasq still active, this is most likely due to the fact that dnsmasq
was loaded via a non convetional method. This might cause future conflicts with FTLDNS

Unable to complete update, please contact Pi-hole Support

That instruction isn't working yet, that's why it's on the development branch code. I'm checking to see what the proper way is, Mint 19 is very similar to Ubuntu 18.04 where this issue comes up.

It's development code, it will break on occasion and we'll try to get the best solution possible, but this is code that is under heavy testing and rework.

Thanky you, but I changed back to Mint 18.

I only need intsructions to switch to the dev branch, because I used it well the last monthes

probably you should modify or remove blog postes like
https://pi-hole.net/2018/05/18/nxdomain-and-null-blocking-with-ftldns/#more-18217
or
https://pi-hole.net/2018/03/24/help-us-beta-test-ftldns/

because

echo "FTLDNS" | sudo tee /etc/pihole/ftlbranch
pihole checkout core FTLDNS 
pihole checkout web FTLDNS

didn't work

It's irritating and frustrating.

The dev branch as Dan said, is under heavy testing and it's not meant to be used as an end/stable product by the users.

You were prompted by this at branch switching:
image

What I would recommend is switching to the FTLDNS branch by following these steps:

First you need to edit your /etc/resolve.conf in order for your DNS resolution to work.

Edit the file with sudo nano /etc/resolv.conf and change 127.0.0.1 to 1.1.1.1 or any public DNS you like.

  1. start from scratch.
    Install the stable version with curl -sSL https://install.pi-hole.net | bash

  2. IF you want to switch to FTLDNS after you installed the master, use the same commands specified in the guides:

echo "FTLDNS" | sudo tee /etc/pihole/ftlbranch
pihole checkout core FTLDNS
pihole checkout web FTLDNS

Due to the nature of your environment and the presence of Network Manager, after FTLDNS is installed, you need to make sure that Network Manager does NOT enable dnsmasq (at reboot) before FTLDNS. In order to achieve that, you need to edit

/etc/NetworkManager/NetworkManager.conf

And comment out or delete the line that has dns=dnsmasq.

Then you need to restart NetworkManager in order for the new settings (without dnsmasq as resolver) to be applied:

sudo systemctl reload-or-restart NetworkManager

If after reboot, your /admin/ interface is showing Lost Connection To Api and DNS resolution is not working, then that means that FTLDNS is offline.

Check to see if dnsmasq is running with

sudo systemctl status dnsmasq

It should say

If dnsmasq is active you need to stop it and restart FTLDNS in order for the DNS resolution to work properly.

sudo systemctl stop dnsmasq
sudo systemctl restart pihole-FTL.service

Once you have done this, you need to find out why dnsmasq is starting.

If you don't use dnsmasq in your own setup, it is safe to uninstall it if you so chose to do so.

sudo apt remove dnsmasq however since it's a dependency of Network Manager, it MIGHT be re-installed if your environment is set-up for auto updates and it will break FTLDNS again.

If you did everything right, dnsmasq shouldn't be a problem once on FTLDNS and the disable method above.

2 Likes

Hi @RamSet,
Thank you for your extensive explanation and the time invested.

But I tried this before.

echo “FTLDNS” | sudo tee /etc/pihole/ftlbranch
pihole checkout core FTLDNS
pihole checkout web FTLDNS

...this is definitely not working.

ZBOX ~ # echo “FTLDNS” | sudo tee /etc/pihole/ftlbranch
ZBOX ~ # pihole checkout core FTLDNS
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y
[i] Branch change has been cancelled

That was the point where I switched to the dev branch.
I hope there is any way out of the master branch.

Try reverting to master and then try FTLDNS again

sudo rm /etc/pihole/ftlbranch
pihole checkout master

same result

ZBOX ~ # rm /etc/pihole/ftlbranch
ZBOX ~ # pihole checkout master
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y

[i] Shortcut "master" detected - checking out master branches...
[i] Pi-hole core
[✓] Switching to branch: 'master' from 'refs/heads/master'
[i] Already up-to-date.
[i] Web interface
[✓] Switching to branch: 'master' from 'refs/heads/master'
[i] Already up-to-date.
[✓] Detected x86_64 architecture
[✓] Installing FTL
ZBOX ~ # echo “FTLDNS” | sudo tee /etc/pihole/ftlbranch
“FTLDNS”
ZBOX ~ # pihole checkout core FTLDNS
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y

[i] Branch change has been cancelled

Please try pihole checkout FTLDNS -x and reply with the output

ZBOX ~ # pihole checkout FTLDNS -x
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y

[i] Requested option "FTLDNS" is not available

Sorry my mistake pihole checkout core FTLDNS -x

ZBOX ~ # pihole checkout core FTLDNS -x
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y

[✗] Fetching branches from GitHub - pi-hole/pi-hole: A black hole for Internet advertisements

What does locale return?

Also try this

  1. sudo nano /etc/resolv.conf
  2. change 127.0.0.1 to 8.8.8.8
  3. save
  4. re run pihole checkout core FTLDNS -x

Thank you for your patience

ZBOX ~ # nano /etc/resolv.conf to 8.8.8.8
Edit: reboot resets to 127.0.0.1
but I tried the FTLDNS-Chack out before

ZBOX ~ # pihole checkout core FTLDNS -x
  Please note that changing branches severely alters your Pi-hole subsystems
  Features that work on the master branch, may not on a development branch
  This feature is NOT supported unless a Pi-hole developer explicitly asks!
  Have you read and understood this? [y/N] y

  [✗] Fetching branches from https://github.com/pi-hole/pi-hole.git

So here is where we are at I honestly have no idea why when we set you system resolver to google you are failing to retrieve the git branches could you run locale and paste the output here? We have seen some issues with languages causing errors with the git side of things

I will change locales and will try different forwarders

Change locale to en (english) not sure what your native language is)

my native language is german. I will try to change US

now I changed (also log-out / log-in ssh-session.
ZBOX ~ # locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

ZBOX ~ # pihole checkout core FTLDNS -x
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y

[✓] Fetching branches from GitHub - pi-hole/pi-hole: A black hole for Internet advertisements
[i] 31 branches available for Pi-hole Core

[✓] Switching to branch: 'FTLDNS' from 'refs/heads/master'
[i] Already up-to-date.
[i] Running installer to upgrade your installation

[✓] Root user check

    .;;,.
    .ccccc:,.
     :cccclll:.      ..,,
      :ccccclll.   ;ooodc
       'ccll:;ll .oooodc
         .;cll.;;looo:.
             .. ','.
            .',,,,,,'.
          .',,,,,,,,,,.
        .',,,,,,,,,,,,....
      ....''',,,,,,,'.......
    .........  ....  .........
    ..........      ..........
    ..........      ..........
    .........  ....  .........
      ........,,,,,,,'......
        ....',,,,,,,,,,,,.
           .',,,,,,,,,'.
            .',,,,,,'.
              ..'''.

[i] Testing for port 53 availability...
Port 53 is in use by dnsmasq.
In order for the installer to proceed, dnsmasq needs to be disabled.
Please re-run the installer with the following command:
curl -sSL https://install.pi-hole.net | bash -s -- --skip-DNS-port-check

there we are... and now?