PiHole Script not installing Pihole #687

Closed
opened 2026-02-04 20:51:22 +03:00 by OVERLORD · 16 comments
Owner

Originally created by @icep85 on GitHub (Mar 23, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Pi-Hole LXC

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pihole.sh)"

📝 Provide a clear and concise description of the issue.

After running the script it seems to run through (tried default and advanced configuration) but pihole is not getting installed. For reference, there is no pihole command usable inside the lxc. There is no path to the bin folder for pihole.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

🔄 Steps to reproduce the issue.

just install the script

Paste the full error output (if available).

installation not succesfull

🖼️ Additional context (optional).

No response

Originally created by @icep85 on GitHub (Mar 23, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Pi-Hole LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pihole.sh)" ### 📝 Provide a clear and concise description of the issue. After running the script it seems to run through (tried default and advanced configuration) but pihole is not getting installed. For reference, there is no pihole command usable inside the lxc. There is no path to the bin folder for pihole. ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 🔄 Steps to reproduce the issue. just install the script ### ❌ Paste the full error output (if available). installation not succesfull ### 🖼️ Additional context (optional). _No response_
OVERLORD added the not a script issue label 2026-02-04 20:51:22 +03:00
Author
Owner

@bvdberg01 commented on GitHub (Mar 23, 2025):

I just used the helper script to install an instance of Pi-hole, and it seems to be working for me. When I go to the terminal, I can use the 'pihole' command

Image

And the webinterface is also working:

Image

Could you try recreating a new LXC or send some screenshots of the exact issue you're facing?

@bvdberg01 commented on GitHub (Mar 23, 2025): I just used the helper script to install an instance of Pi-hole, and it seems to be working for me. When I go to the terminal, I can use the 'pihole' command ![Image](https://github.com/user-attachments/assets/8e7c2959-06a5-41c4-a88d-c564c78df414) And the webinterface is also working: ![Image](https://github.com/user-attachments/assets/0373a3fc-884c-4c70-b86c-7b2dec2fb9fa) Could you try recreating a new LXC or send some screenshots of the exact issue you're facing?
Author
Owner

@tremor021 commented on GitHub (Mar 24, 2025):

@icep85 are you using LXC console or pct enter?

@tremor021 commented on GitHub (Mar 24, 2025): @icep85 are you using LXC console or `pct enter`?
Author
Owner

@icep85 commented on GitHub (Mar 24, 2025):

Hi Guys,

so I tried it again with the following script:

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pihole.sh)"

Same result. Here are the screenshots of the output from the script and the lxc-console (I was using the console via webgui of proxmox) that shows that there is no pihole command. The lxc itself is up an running and can be reached via icmp.

Image

Image

Strange that it worked for you guys. My proxmox host is running on 8.3.5

@icep85 commented on GitHub (Mar 24, 2025): Hi Guys, so I tried it again with the following script: `bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pihole.sh)"` Same result. Here are the screenshots of the output from the script and the lxc-console (I was using the console via webgui of proxmox) that shows that there is no pihole command. The lxc itself is up an running and can be reached via icmp. ![Image](https://github.com/user-attachments/assets/2373ec2d-ea2e-40d0-ba6e-d0e1898fc7b5) ![Image](https://github.com/user-attachments/assets/81ad6d03-628a-4746-946f-58960d1e2b63) Strange that it worked for you guys. My proxmox host is running on 8.3.5
Author
Owner

@tremor021 commented on GitHub (Mar 24, 2025):

Image
You have some DNS issue probably. Your installation isn't going as it should. Do you use any adblock or something?

@tremor021 commented on GitHub (Mar 24, 2025): ![Image](https://github.com/user-attachments/assets/9cb831b5-9915-4121-9a84-cc7bd5d256de) You have some DNS issue probably. Your installation isn't going as it should. Do you use any adblock or something?
Author
Owner

@MickLesk commented on GitHub (Mar 24, 2025):

try /usr/local/bin/pihole

export PATH=$PATH:/usr/local/bin

maybe its your disabling of something of the options. (ssh etc.)

@MickLesk commented on GitHub (Mar 24, 2025): try /usr/local/bin/pihole export PATH=$PATH:/usr/local/bin maybe its your disabling of something of the options. (ssh etc.)
Author
Owner

@tremor021 commented on GitHub (Mar 24, 2025):

@MickLesk he doesnt get to pihole-install.sh. check his screenshot

@tremor021 commented on GitHub (Mar 24, 2025): @MickLesk he doesnt get to pihole-install.sh. check his screenshot
Author
Owner

@MickLesk commented on GitHub (Mar 24, 2025):

ah right ^^ its just the ct.sh output, the install.sh cannot get executed

@MickLesk commented on GitHub (Mar 24, 2025): ah right ^^ its just the ct.sh output, the install.sh cannot get executed
Author
Owner

@icep85 commented on GitHub (Mar 24, 2025):

can you tell me which dns adress should cause the issue? so i can check if name resolution is working correctly. All other community-scripts I used, where working fine.

Or maybe where I can check the pihole-install-script? to see where an error occurs?

@icep85 commented on GitHub (Mar 24, 2025): can you tell me which dns adress should cause the issue? so i can check if name resolution is working correctly. All other community-scripts I used, where working fine. Or maybe where I can check the pihole-install-script? to see where an error occurs?
Author
Owner

@MickLesk commented on GitHub (Mar 24, 2025):

8.8.8.8 or 8.8.4.4

the install script will be crawled by build.func

@MickLesk commented on GitHub (Mar 24, 2025): 8.8.8.8 or 8.8.4.4 the install script will be crawled by build.func
Author
Owner

@icep85 commented on GitHub (Mar 24, 2025):

ok so the both google dns servers you mentioned can be reached by the proxmox host.

How can I check at which step the script fails and why?

@icep85 commented on GitHub (Mar 24, 2025): ok so the both google dns servers you mentioned can be reached by the proxmox host. How can I check at which step the script fails and why?
Author
Owner

@MickLesk commented on GitHub (Mar 24, 2025):

its not the proxmox host, after you execute the script and the container are build, the lxc himself crawl the install.func.
Therefore your Network at this moment in the lxc failed

@MickLesk commented on GitHub (Mar 24, 2025): its not the proxmox host, after you execute the script and the container are build, the lxc himself crawl the install.func. Therefore your Network at this moment in the lxc failed
Author
Owner

@icep85 commented on GitHub (Mar 24, 2025):

From the lxc console I am also able to ping 8.8.8.8 and 8.8.4.4 and also have dns fully functional.

@icep85 commented on GitHub (Mar 24, 2025): From the lxc console I am also able to ping 8.8.8.8 and 8.8.4.4 and also have dns fully functional.
Author
Owner

@MickLesk commented on GitHub (Mar 24, 2025):

we cant help you. its an simple bash call and work for everyone expect you. You need to do more research. It is definitely not a script issue.

@MickLesk commented on GitHub (Mar 24, 2025): we cant help you. its an simple bash call and work for everyone expect you. You need to do more research. It is definitely not a script issue.
Author
Owner

@icep85 commented on GitHub (Mar 25, 2025):

Hi MickLesk,

I understand that this could be a issue not related to the script. But as I dont have any insights on how the script get executed a little hint on where to digg deeper and do a research would be helpful. At least a more detailled output from the script would be nice, as you see the script itself tells "completed successfully" where it clearly did not. But there is no clear error handling or loggin for me to digg deeper.

@icep85 commented on GitHub (Mar 25, 2025): Hi MickLesk, I understand that this could be a issue not related to the script. But as I dont have any insights on how the script get executed a little hint on where to digg deeper and do a research would be helpful. At least a more detailled output from the script would be nice, as you see the script itself tells "completed successfully" where it clearly did not. But there is no clear error handling or loggin for me to digg deeper.
Author
Owner

@tremor021 commented on GitHub (Mar 25, 2025):

I'm not really sure what else you want us to say? Your network is interfeering with calling of the install.func script which is hosted on github.

The part that does the installing of the app into LXC container is not starting, which means that you have something on your network thats preventing that. Either adblock, faulty setting or w/e it is.

@tremor021 commented on GitHub (Mar 25, 2025): I'm not really sure what else you want us to say? Your network is interfeering with calling of the install.func script which is hosted on github. The part that does the installing of the app into LXC container is not starting, which means that you have something on your network thats preventing that. Either adblock, faulty setting or w/e it is.
Author
Owner

@MickLesk commented on GitHub (Mar 25, 2025):

You call the ct.sh -> this one call the build.func and the build.func call the create_lxc.func (create container - done), after this install.func and the install\ct-install.sh. And The install.func or install\ct-install.sh cannot be reached in your case

@MickLesk commented on GitHub (Mar 25, 2025): You call the ct.sh -> this one call the build.func and the build.func call the create_lxc.func (create container - done), after this install.func and the install\ct-install.sh. And The install.func or install\ct-install.sh cannot be reached in your case
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#687