JVital2013 / vitality-goes

Web App for showcasing Geostationary Weather Satellite Data
GNU General Public License v3.0
74 stars 7 forks source link

Current Weather, Other EMWIN, Hurricane Center, and Local Settings not showing up #88

Open robert5603 opened 2 months ago

robert5603 commented 2 months ago

The server can display images in the full disk, non-CMIP, mesoscale, EMWIN, and NWS graphics sections. I also notice the system info section working just fine as well. However, I receive this error message when attempting to load the current weather section displaying alerts: Screenshot 2024-08-11 at 16-15-47 Current Weather - Vitality GOES

Error message for Current Weather:


Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/pi/.pki): failed to open dir: Permission denied in /var/www/html/functions.php:241 Stack trace:

0 [internal function]: RecursiveDirectoryIterator->__construct('/home/pi/.pki', 4128)

1 /var/www/html/functions.php(241): RecursiveDirectoryIterator->getChildren()

2 /var/www/html/dataHandler.php(1341): scandir_recursive('/home/pi', false)

3 {main}

thrown in /var/www/html/functions.php on line 241

Error message in Other EMWIN:


Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/pi/.pki): failed to open dir: Permission denied in /var/www/html/functions.php:241 Stack trace:

0 [internal function]: RecursiveDirectoryIterator->__construct('/home/pi/.pki', 4128)

1 /var/www/html/functions.php(241): RecursiveDirectoryIterator->getChildren()

2 /var/www/html/dataHandler.php(287): scandir_recursive('/home/pi', false)

3 {main}

thrown in /var/www/html/functions.php on line 241

Error message in Hurricane Center:

The server returned bad data:
Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/pi/.pki): failed to open dir: Permission denied in /var/www/html/functions.php:241 Stack trace:

0 [internal function]: RecursiveDirectoryIterator->__construct('/home/pi/.pki', 4128)

1 /var/www/html/functions.php(241): RecursiveDirectoryIterator->getChildren()

2 /var/www/html/dataHandler.php(1097): scandir_recursive('/home/pi', false)

3 {main}

thrown in /var/www/html/functions.php on line 241

Error message in Local Settings:

The server returned bad data:
Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/pi/.pki): failed to open dir: Permission denied in /var/www/html/functions.php:241 Stack trace:

0 [internal function]: RecursiveDirectoryIterator->__construct('/home/pi/.pki', 4128)

1 /var/www/html/functions.php(241): RecursiveDirectoryIterator->getChildren()

2 /var/www/html/dataHandler.php(750): scandir_recursive('/home/pi', false)

3 {main}

thrown in /var/www/html/functions.php on line 241

If there are additional files/resources you need, I am more than happy to send them your way.

JVital2013 commented 1 month ago

This looks like a configuration error - it is trying to scan your entire /home/pi directory for EMWIN files, which is not what you want. Make sure emwinPath in your config.ini is set to the emwin folder directly.