wpilibsuite / WPILibPi

WPILib Raspberry Pi images designed for FRC (formerly FRCVision)
Other
87 stars 40 forks source link

The local URL doesn't load #107

Open aplisov opened 5 years ago

aplisov commented 5 years ago

Hi,

I have just flashed my SD card with the image and when I went to go to http://frcvision.local/ the page tells me that it can't be reached.

The Raspberry Pi is turned on and plugged into my computer with an ethernet cable.

Any help is much appreciated.

PeterJohnson commented 5 years ago

There are usually two potential causes for this: 1) you don't have a mDNS responder installed such as Bonjour (installed with iTunes) or the NI update suite (which installs a NI mDNS responder) 2) your computer isn't getting a suitable link-local IP address

One way to work around (2) is to plug both the Pi and your computer into a network with a DHCP server (such as on most LANs). This still needs a mDNS resolver to find the .local address.

A short-term solution is to hook up a HDMI monitor and USB keyboard to the Pi, log in with "pi", "raspberry", and run "ifconfig -a", which will print the IP address of the Pi ethernet. You can use that IP address to access the Pi rather than "frcvision.local". You can set a fixed IP address via the web dashboard.

aplisov commented 5 years ago

There are usually two potential causes for this:

  1. you don't have a mDNS responder installed such as Bonjour (installed with iTunes) or the NI update suite (which installs a NI mDNS responder)
  2. your computer isn't getting a suitable link-local IP address

One way to work around (2) is to plug both the Pi and your computer into a network with a DHCP server (such as on most LANs). This still needs a mDNS resolver to find the .local address.

A short-term solution is to hook up a HDMI monitor and USB keyboard to the Pi, log in with "pi", "raspberry", and run "ifconfig -a", which will print the IP address of the Pi ethernet. You can use that IP address to access the Pi rather than "frcvision.local". You can set a fixed IP address via the web dashboard.

So when I go into the raspberry pi, login and type "sudo ifconfig -a", I get the ip "169.254.44.169" which I then put into my browser. I get the same message about the site not being able to be reached.

EDIT: I also plugged it into my router and got the IP "192.168.1.25" which I try to connect to and it gives me the same error.

PeterJohnson commented 5 years ago

Can you ping that IP address from the computer? It could be a firewall issue.

t3pfaffe commented 5 years ago

I am having this same problem I can ping, and I am using that address that I pinged.

PeterJohnson commented 5 years ago

Can you ssh in (e.g. using PuTTY)? What browser are you using?

t3pfaffe commented 5 years ago

I figured out the problem with this one. I could SSH into it. The problem appears to have been that I was using a RaspberryPi 2. Putting it on a 3 came up with no issues.

PeterJohnson commented 5 years ago

Huh, that's odd, it should work on a Pi 2, but I admit I've not tested that platform.