# piHole webinterface not reachable

**URL:** <https://forums.balena.io/t/pihole-webinterface-not-reachable/12491>\
**Category:** Product support\
**Created:** [May 30, 2019, 12:23pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491 "2019-05-30T12:23:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TermiGR](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@TermiGR](https://forums.balena.io/u/TermiGR)\
**Post date:** [May 30, 2019, 12:23pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/1 "2019-05-30T12:23:19Z")

</div>

Hi there,

i just installed a Raspberry pi 3 b+ with piHole in the Balena Cloud. I followed this tutorial:

> **[Deploy network-wide ad-blocking with Pi-hole and a Raspberry Pi](https://www.balena.io/blog/deploy-network-wide-ad-blocking-with-pi-hole-and-a-raspberry-pi/)**
>
> If you’ve ever been frustrated with intrusive and distracting internet advertising, malware and other malicious spyware and tracking software online, and wondered if there was a solution to stop it, this is the project for you. We’re going to set up...

Sadly, i am not able to access the Webinterface of the piHole Service.

# This site can’t be reached

**192.168.188.114** refused to connect.

Try:

- Checking the connection
- Checking the proxy and the firewall

ERR\_CONNECTION\_REFUSED

The Pihole seems to work in general.  
Any Ideas?

Thanks and best regards

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [May 30, 2019, 12:44pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/2 "2019-05-30T12:44:15Z")

</div>

Hi,  
Can you share your device uuid with us and enable support access for it? Then we can take a look at the device.  
Best regards,

---

<div class="post-metadata">

**Author:** ![TermiGR](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@TermiGR](https://forums.balena.io/u/TermiGR)\
**Post date:** [May 30, 2019, 12:54pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/4 "2019-05-30T12:54:19Z")

</div>

I enabled the Support Access.

UUID: b8473b3

---

<div class="post-metadata">

**Author:** ![richbayliss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/richbayliss/32/1054_2.png) [@richbayliss](https://forums.balena.io/u/richbayliss)\
**Post date:** [May 30, 2019, 2:51pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/9 "2019-05-30T14:51:51Z")

</div>

Hi,

Are you trying to use this with the TFT attached at all? I have just spun up the project on a device here and I see it working. I noticed your `pihole` service dies after trying to run the `30-checktft` service so I am wondering if this could be related.

---

<div class="post-metadata">

**Author:** ![TermiGR](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@TermiGR](https://forums.balena.io/u/TermiGR)\
**Post date:** [May 30, 2019, 2:56pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/10 "2019-05-30T14:56:28Z")

</div>

There is no TFT attached to the Pi. Just a Power Cord. Is there a way to run it without a TFT attached?

---

<div class="post-metadata">

**Author:** ![richbayliss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/richbayliss/32/1054_2.png) [@richbayliss](https://forums.balena.io/u/richbayliss)\
**Post date:** [May 30, 2019, 3:02pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/11 "2019-05-30T15:02:10Z")

</div>

I am testing with just a power cord also - in the device actions, could you try purging the device’ data as this will basically reset the stored config for pihole and let it do it’s initial config again. It’s a long shot, but it rules out bad config.

---

<div class="post-metadata">

**Author:** ![TermiGR](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@TermiGR](https://forums.balena.io/u/TermiGR)\
**Post date:** [May 30, 2019, 3:07pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/14 "2019-05-30T15:07:22Z")

</div>

I just purged the data, result is still the same.

---

<div class="post-metadata">

**Author:** ![pdcastro](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pdcastro/32/1264_2.png) [@pdcastro](https://forums.balena.io/u/pdcastro)\
**Post date:** [May 30, 2019, 4:17pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/17 "2019-05-30T16:17:37Z")

</div>

Perhaps a long-shot question, but are you using Windows (as opposed to Linux or macOS) as the development machine? I mean the machine where you run `git` or `balena push`. The reason for the question is that in another investigation, it turned out that the `check-tft` script got its text line endings converted to Windows format, which ended up causing the issue you’re describing.

---

<div class="post-metadata">

**Author:** ![TermiGR](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@TermiGR](https://forums.balena.io/u/TermiGR)\
**Post date:** [May 30, 2019, 4:46pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/19 "2019-05-30T16:46:54Z")

</div>

You are right, i am using Windows 10 for git.

---

<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:** [May 30, 2019, 6:12pm UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/21 "2019-05-30T18:12:11Z")

</div>

Hey @TermiGR so I think this problem occurs when you pull the project using Git and then push with `balena push`. When you use Git on Windows it converts the project to Windows line endings when it pulls (allowing you to work on the project), and then converts back when you push. If you’re using `balena push` in this case, it doesn’t give Git the chance to convert back.

The key lines in your logs are:

```auto
30.05.19 11:09:47 (-0700) pihole [cont-init.d] 30-checktft.sh: executing... 
: No such file or directorypihole ifelse: fatal: unable to exec bash
30.05.19 11:09:47 (-0700) pihole [cont-init.d] 30-checktft.sh: exited 111.

```

You’ve therefore got a couple of options:

- Change your local Git settings to retain line endings - [details here](https://stackoverflow.com/questions/10418975/how-to-change-line-ending-settings)
- Use the Git deploy method instead of `balena push` which would be `git push balena master` after adding the remote shown in the top right of your application in the dashboard. [More details here](https://www.balena.io/docs/learn/deploy/deployment/#git-push)

There’s another thread [here](https://forums.balena.io/t/unable-to-get-pi-hole-working-when-following-etcher-featured-project/7327/43) which describes the same problem.

I hope this helps! Let us know if this solves the issue or if you need more help.

---

<div class="post-metadata">

**Author:** ![TermiGR](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@TermiGR](https://forums.balena.io/u/TermiGR)\
**Post date:** [May 31, 2019, 12:16am UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/23 "2019-05-31T00:16:32Z")

</div>

Thank You so much! It worked! ;D

---

<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:** [February 3, 2020, 9:21am UTC](https://forums.balena.io/t/pihole-webinterface-not-reachable/12491/28 "2020-02-03T09:21:55Z")

</div>

Hey @TermiGR, just a quick note that we merged the fix to `balena-cli` addressing the line ending conversion on Windows: [https://github.com/balena-io/balena-cli/issues/1273](https://github.com/balena-io/balena-cli/issues/1273)

Next versions would be working here without the need for workaround.

Thanks for reporting it.

Cheers…
