Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pi.Alert website doesn't work #20

Closed
antoinerincent opened this issue Jan 13, 2021 · 11 comments
Closed

Pi.Alert website doesn't work #20

antoinerincent opened this issue Jan 13, 2021 · 11 comments
Assignees
Labels
documentation Improvements or additions to documentation help Doubts

Comments

@antoinerincent
Copy link

Hey! Followed the installation steps (except pihole, which I have running in a docker container for only certain devices), and everything worked perfectly. However when I try to reach http://pi.alert/ I get nothing. If I try to log into the pi running it all directly, I get a 403 Forbidden error, how can I fix this issue? I'm guessing there is a specific port that I should provide to connect directly to it with the IP adress, what would that be?

Thanks again for the great work, the service looks super cool, great job! :)

@will6789
Copy link

Hi, Heres a couple of suggestions:
Are you able to reach it on <IP Address>/pialert?
The http://pi.alert address relies on your DNS server being configured to reply with the correct IP address, have you configured your pihole with the pi.alert DNS record and is your device using the pihole as its DNS server?

@antoinerincent
Copy link
Author

Trying <IP Address>/pialert also results in a 403 Forbidden
I also tried adding a DNS rule in my Pihole instance for the pi.alert to redirect to the IP, but it gives me the error that the URL isn't a valid one, it's more of a pihole issue than a Pi.Alert issue though, I'll keep checking it out!
Thanks!

@BananaHammock743
Copy link

Same issue here until I saw this thread and used <IP Address>/pialert, where then it worked. May be useful to add this to the INSTALL.md to reduce confusion for those of use who aren't very technical.

@pucherot
Copy link
Owner

As will6789 says you should configure the DNS record in pi.hole

This is written in the installation part of pi.hole (maybe you skipped it because you already had pi.hole installed)

Install.md updated with a clarification.

@pucherot pucherot self-assigned this Jan 14, 2021
@pucherot pucherot added help Doubts documentation Improvements or additions to documentation labels Jan 14, 2021
@mrchoc
Copy link

mrchoc commented Jan 14, 2021

getting similar problem, where http://pi.alert gives me a 403 error, while <IP Address>/pialert sends me to the "Did you mean to go to the admin panel?" page from the pi hole

@pucherot
Copy link
Owner

please test http://192.168.1.x/pialert
and test ping pi,alert

@mrchoc
Copy link

mrchoc commented Jan 14, 2021

getting similar problem, where http://pi.alert gives me a 403 error, while <IP Address>/pialert sends me to the "Did you mean to go to the admin panel?" page from the pi hole

Sorry, what do you mean by test http://192.168.1.x/pialert? I already tried that and I got the "Did you mean to go to the admin panel?" page.

And pinging pi.alert doesnt gives could not find host error

@pucherot
Copy link
Owner

Hi mrchoc

If ping to pi.alert is not working is becouse your DNS can't resolve the name. The problem may be:

  1. Your machine are using a different DNS (no Pi.hole DNS server). please, check your IP configuration with (ifconfig, ipconfig /all, nslookup pi.alert)
  2. You forgot add the DNS Local record to your Pi.hole Configuration:

In the other hand, can you paste a screeshot of your browser with the error accessing http://192.168.1.x/pialert?

Thanks

@mrchoc
Copy link

mrchoc commented Jan 15, 2021

image
This is page I get when accessing http://192.168.1.x/pialert.

I already had the dns local record added to my pihole configuration.

I tried pinging pi.alert and it worked this time, but when I try accessing pi.alert in the browser I get a 403 error.

@mrchoc
Copy link

mrchoc commented Jan 16, 2021

okay, I have found the solution.

In step 2 of the Pi.alert setup, sudo ln -s /home/pi/pialert/front /var/www/html/pialert creates a front folder inside the /var/www/html/pialert directory.

Since the external.conf accesses the /var/www/html/pialert as the root directory, all it sees is the front folder, which might be causing the 403 forbidden error.

tldr, the solution is to

  1. cd /etc/lighttpd
  2. sudo nano external.conf
  3. change server.document-root = "/var/www/html/pialert" to server.document-root = "/var/www/html/pialert/front"
  4. systemctl restart lighttpd.service
  5. refresh pi.alert and it should work

@pucherot
Copy link
Owner

I think that the instructions in the actual installation guide solves this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help Doubts
Projects
None yet
Development

No branches or pull requests

5 participants