# Updating Balena-PiHole

**URL:** <https://forums.balena.io/t/updating-balena-pihole/5681>\
**Category:** Project help\
**Tags:** pi-hole\
**Created:** [March 20, 2019, 8:41pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681 "2019-03-20T20:41:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kr33](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@kr33](https://forums.balena.io/u/kr33)\
**Post date:** [March 20, 2019, 8:41pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/1 "2019-03-20T20:41:36Z")

</div>

Hi All,

How do I go about updating the version of PiHole already deployed on my devices in BalenaCloud (or at least using BalenaOS)?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [March 20, 2019, 11:38pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/5 "2019-03-20T23:38:24Z")

</div>

Hi @kr33 - welcome to the forums!

To update, you can download the latest version of the project again and push it again. You don’t need to download the OS or reflash the SD card, just download the latest from GitHub and use the balena CLI to push it again in the same way you did the first time.

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 6, 2020, 11:59pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/8 "2020-09-06T23:59:38Z")

</div>

I’m afraid I’m not a Docker or a Balena OS expert. I successfully installed PiHole over a year ago, but did not take meticulous notes, so “the same way I did last time” won’t work for me. Can you point me to the instructions where one uses Balena CLI to push a new OS?

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [September 7, 2020, 8:48am UTC](https://forums.balena.io/t/updating-balena-pihole/5681/11 "2020-09-07T08:48:27Z")

</div>

@BKFC it’s actually a lot easier than that now; you can go to the [Pi-hole repo](https://github.com/klutchell/balena-pihole) and click the Deploy with balena button. This will let you deploy the latest version onto your existing device, just make sure to select ‘Use an existing application instead’ when it takes you to the dashboard. 👍

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 11:46am UTC](https://forums.balena.io/t/updating-balena-pihole/5681/13 "2020-09-07T11:46:29Z")

</div>

Thanks for the tip. I went to the repository and clicked Deploy, which brought me to the balena dashboard. At that point I could not see any action to take except to create an application. I did not find a “use an existing application instead” in any view that I could see.

---

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [September 7, 2020, 1:47pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/15 "2020-09-07T13:47:25Z")

</div>

Hi @BKFC, to be clear, you already have an existing application, right?  
(asking in case you deleted the previous one).

You are supposed to see this screen:

 ![Screenshot from 2020-09-07 16-43-38](https://global.discourse-cdn.com/balena/original/2X/d/d8f38c737718849a6d6b2fc654e1709800fc88bb.png)

If you are not seeing it, could you please look for errors on your browser’s developer console?

Also it’d help if you could give us info about the browser you use: [https://www.whatismybrowser.com/](https://www.whatismybrowser.com/)

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 2:03pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/17 "2020-09-07T14:03:12Z")

</div>

First - Yes, I’m running pi-hole now on a Raspberry Pi 3, and in fact I’m reluctant to do the upgrade for fear I will lose what I have.

I see this:

![image](https://global.discourse-cdn.com/balena/original/2X/6/65a5868f07865d95e20ea51497f2c092a540ea70.png)

Then when I click on it, I see this:

 ![image](https://global.discourse-cdn.com/balena/original/2X/d/ddb375d67740595f5c3f06dcfd0c96fb3548d6c9.png)

I’m afraid I don’t know which is the developer’s console.

I’m running the balena interface on a Mac with OS Mojave, browser is Safari.

I think I’m missing something since I don’t see the window you’ve posted.

---

<div class="post-metadata">

**Author:** ![thgreasi](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thgreasi/32/454_2.png) [@thgreasi](https://forums.balena.io/u/thgreasi)\
**Post date:** [September 7, 2020, 5:07pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/18 "2020-09-07T17:07:16Z")

</div>

Hi,  
Since the pi-hole project is configured to use named volumes to hold all the configuration, updating the version running should not cause concerns about losing the current state.  
If you later decide that you do not like the new version, you can pin the device to run the previous release from the device list or the device summary page.

It’s weird that you do not get the aforementioned modal after you use the deploy with balena button.  
Can you provide us a link with your browser version using [https://www.whatsmybrowser.org/](https://www.whatsmybrowser.org/) ?

In order to enable the developer console in Safari you can follow these instructions:

> **[Use the developer tools in the Develop menu in Safari on Mac](https://support.apple.com/guide/safari/use-the-developer-tools-in-the-develop-menu-sfri20948/mac)**
>
> In Safari on your Mac, use the developer tools to make sure a website you create works well with all standard web browsers.

After that you should be able to open the developer console by clicking “Develop” and then “Show Javascript Console”.  
Any errors found in there would help to further investigate this.

As an alternative, I would also suggest you to use a different browser (eg Chome) in case you have it already installed on your system.

Kind regards,  
Thodoris

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 6:16pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/20 "2020-09-07T18:16:53Z")

</div>

It worked using Chrome!

Here is what I was using before:

> **[What browser am I using?](https://www.whatsmybrowser.org/b/KSBFX)**
>
> What browser am I using? What version is my browser? WhatsMyBrowser.org is the easiest way to find information about your browser, and share it to your designer, developer, or support rep.

I note that it took close to an hour to build and update, but otherwise seems to work.

Thanks very much for your help.

That said, I just discovered that I cannot connect to the device at the assigned (static) IP address, with either browser. I tried rebooting the router as well as the device; still no connection. I can connect to sites in the outside world but not the pi-hole console.

Also, I’ve noticed that connections now are extremely slow, so I’ve taken pi-hole out of the DNS looped and am simply using the DNS from my ISP. And I still can’t connect to the pi-hole console even though it’s in the subnetwork.

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [September 7, 2020, 7:42pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/21 "2020-09-07T19:42:05Z")

</div>

Hi again,

Thanks for sharing your browser info. Could you also try getting the logs from the Safari developer console after you click the ‘Deploy with Balena’ button ? We would love to get to the bottom of this and that information is essential to diagnose.

I’m also glad that you managed to get the application installed on your device. Regarding the issue accessing the device. Can you reach the device through the local network using ping or `balena ssh <IP address>`.

Thanks again for your help  
Felipe

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 7:58pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/22 "2020-09-07T19:58:04Z")

</div>

I just tried “deploy with balena” using Safari. Here is a screenshot of the javascript console log:

 ![image](https://global.discourse-cdn.com/balena/original/2X/e/e12eab25dbd41081294af7617f142846aea2d697.png)

On the access issue: I can ping the device from the local network, though I cannot get in via balena ssh because I don’t know the administrative password. I can get a login shell on the device using the balena console, but it behaves like the device is refusing web-based connections. I’ve restarted the router and the device, to no effect.

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [September 7, 2020, 8:09pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/23 "2020-09-07T20:09:15Z")

</div>

Hi again. Thanks for sharing the console info.

You don’t need an administrative password to log in using `balena ssh`, you only need to setup a public key in the dashboard. Here are some instructions on how to do that

> **[SSH access - Balena Documentation](https://www.balena.io/docs/learn/manage/ssh-access/#add-an-ssh-key-to-balenacloud)**
>
> Communicate with the host OS and service containers via SSH with balena

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [September 7, 2020, 8:10pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/24 "2020-09-07T20:10:15Z")

</div>

By refusing web based connections you mean you cannot access the web dashboard through the local network?

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 8:33pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/27 "2020-09-07T20:33:19Z")

</div>

I followed those directions, and discovered that there already was a set of keys for my Mac. But when I ran balena ssh on the Mac, it still asked for a password, which I don’t know. So I deleted the keys in the balena cloud dashboard (a mistake). Now when I try to get new ones from GitHub it says “an error has occurred”

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 8:36pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/28 "2020-09-07T20:36:16Z")

</div>

The IP address of the device is 192.168.1.9, and I’ve also assigned 192.168.1.223. When I type either of these (with or without http://) in the browser, I get a “connection refused” or a “cannot connect” message.

As noted before, I can

- ping it from the Mac
- run a shell from the balena console
- see it in the list of connected devices to the router

I should add that I didn’t have any of these problems before running the upgrade. Pi-hole was running correctly and I could connect to its console.

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [September 7, 2020, 9:00pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/30 "2020-09-07T21:00:42Z")

</div>

Hi again, regarding the SSH keys. If you are still getting the issue with Github it would again be useful to get the console output to see if we get any more info there. Otherwise you can get your computer public SSH key running the following command from a terminal.

`cat ~/.ssh/id_rsa.pub`

You can use the output from the command to manually add the SSH key in the dashboard.

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [September 7, 2020, 9:05pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/32 "2020-09-07T21:05:21Z")

</div>

Regarding the problem reaching the pihole dashboard, when SSH’ing into the device, can you connect to the pihole server using `curl http://127.0.0.1`

If not I’d recommend checking that you have the correct values for the device variables described in [https://github.com/klutchell/balena-pihole#device-variables](https://github.com/klutchell/balena-pihole#device-variables). Looking at the output of the pihole service might give you an indication of where the problem might be.

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [September 7, 2020, 9:07pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/33 "2020-09-07T21:07:09Z")

</div>

Finally, regarding the issue with the `Deploy with Balena` button. Can you tell us if you have any AdBlocker installed for Safari

Thanks again for your help.

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 9:18pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/35 "2020-09-07T21:18:00Z")

</div>

I put the SSH key in manually. When I ran balena ssh to the device, it asks for a password as it did before, which I don’t know.

---

<div class="post-metadata">

**Author:** ![BKFC](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BKFC](https://forums.balena.io/u/BKFC)\
**Post date:** [September 7, 2020, 9:18pm UTC](https://forums.balena.io/t/updating-balena-pihole/5681/36 "2020-09-07T21:18:56Z")

</div>

I can’t ssh into the device.

[Next page](https://forums.balena.io/t/updating-balena-pihole/5681.md?page=2)
