3 identical Raspberry Pis, same disk image, yet PHP one one (different location) takes forever to load. Ideas on how to identify the issue?
This is a weird situation.
I have 3 Raspberry Pis. All 3 are identical hardware, and all run the same disk image. Each are in different physical locations (different LANs and WANs). These Pis serve as web servers for security cameras, and run php to serve up the files. In two of the locations, everything works perfectly. In one of the locations, everything works except that the PHP script to display images on my browser takes >1 minute to load (not a trickle, but as in, delay to load). I've compared the output of <?php phpinfo(); ?> from all three Pis, and they are the exact same. In the location where the PHP takes forever to load, I've changed routers, too (general upgrade) and this hasn't worked. Finally, the logs don't seem to indicate any problems. It feels like some waiting / timeout issue, but I can't think of what it could be. I've tried local (192.168) and remote access test, and same result. Since posting this, I've tried other (basic) PHP scripts and they work without delay. So it's a problem with the code, perhaps trying to read something? Any ideas on good first steps to troubleshoot the issue? Thanks a ton!! |
Print the current time at useful locations in the code.
|
Is your php code accessing information from other network devices or just from itself? Is running the phpinfo script also slow?
Is the misbehaving pi connected by wifi or ethernet? Is it a bandwidth problem? Have you checked lan bandwidth speed? If accessing other devices are you using DNS or IP address. |
Quote:
Now I need to figure out why one of the cameras isn't uploading anything to the Pi and there are no errors at all in the vsftp log (even with verbose logging)... Thanks! |
Quote:
|
Quote:
Code:
wget https://query.yahooapis.com/ Code:
wget https://query.yahooapis.com/ |
The good Pis
Quote:
Quote:
|
All times are GMT -5. The time now is 05:08 PM. |