Rob Cranfill
unread,Jun 1, 2024, 3:22:31 PM6/1/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to weewx-user
Hey, all!
Just upgraded to 5.02 from 4.10.something, and now WeeWX can't output to my web server directory. I'm sure it's some dumb permissions thing I'm missing, but I am not seeing it.
I get a bazillion errors like this in the log:
Jun 01 12:16:15 pi4 weewxd[3424852]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weather/daybarometer.png' [Errno 13] Permission denied: '/var/www/html/weather/daybarometer.png':
My new install is running as user weewx, as intended:
rob@pi4: $ ps aux | grep wee
weewx 3424852 4.9 2.8 358576 53528 ? Ssl 11:38 1:42 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
I added that user to some groups (for my USB interface and the HTML directory)
rob@pi4: $ groups weewx
weewx : weewx dialout www-data
And here are the permissions along that directory path. See anything untowards?
drwxr-xr-x 12 root root 4.0K Dec 7 20:36 /var
drwxr-xr-x 3 root root 4.0K Dec 7 20:36 /var/www/
drwxr-xr-x 4 www-data www-data 4.0K Jun 1 10:58 /var/www/html/
drwxrwxr-x 6 www-data www-data 4.0K Jun 1 11:25 /var/www/html/weather/
Thanks for any suggestions. I can post more info if that will help. The logs show nothing else interesting that I can see.
/rob