DesktopECHO / Pi-Hole-for-WSL1

Ad-blocking DNS server for Windows • Unbound pre-configured • Deployment ready in minutes • Does not require hypervisor/docker
359 stars 54 forks source link

Can't install #122

Closed PsycoStea closed 2 months ago

PsycoStea commented 2 months ago

Hi there

When I run the script I get the following error

Set Pi-hole install location, or hit enter for default [C:\Program Files] -> E:\Docker\Pihole
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount E:\, see dmesg for more details.

<3>WSL (7) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:505: execvpe . failed 13
<3>WSL (7) ERROR: CreateProcessEntryCommon:508: Create process not expected to return

Existing Pi-hole installation detected, uninstall Pi-hole first.
Press any key to continue . . .

This only happened after I ran the script for a 2nd time. The first time the script seemed to hang during the install process. I think it was during the compacting step (I don't fully remember). I let the script run for about 30min with nothing happening. I then pressed ctrl+c and it looked like Pihole was starting to install then I closed the command prompt. I then deleted the file in the install directory, tried reinstalling the script, and got the above error. Now, no matter where I choose to install Pihole to I get the same error.

EDIT: I have tried setting my WSL to version 1 as stated in #91 but I still get the same error. Also, I am choosing a location where there is no Pihole install but this line is always present

Existing Pi-hole installation detected, uninstall Pi-hole first.

EDIT 2: I friend told me I need to uninstall the distro. I did so with wsl --unregister Pi-Hole and now the installer is working. I will update if I am successful

EDIT 3: The installation work flawlessly. Pihole up and running in WSL. Thanks for all your hard work