Hi Matthew Thanks for your quick reply and given solution. User and group weewx exist. ps aux|grep weewxd say : weewx 818 2.1 0.8 60016 31592 ? Ssl 11:30 0:18 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf ls -la /var/www/html/weewx say: insgesamt 316 drwxrwsr-x 4 weewx weewx 4096 9. Feb 16:44 . drwxr-x--- 23 www-data www-data 4096 7. Apr 2023 .. -rw-rw-r-- 1 weewx weewx 184317 7. Feb 17:30 cam.jpg -rw-rw-r-- 1 weewx weewx 11268 7. Feb 17:30 celestial.html -rw-rw-r-- 1 weewx weewx 1150 7. Feb 17:10 favicon.ico drwxrwsr-x 2 weewx weewx 4096 7. Apr 2023 font -rw-rw-r-- 1 weewx weewx 30760 7. Feb 17:30 index.html drwxrwsr-x 2 weewx weewx 4096 7. Feb 17:30 NOAA -rw-rw-r-- 1 weewx weewx 9239 7. Feb 17:30 rss.xml -rw-rw-r-- 1 weewx weewx 5406 7. Feb 17:10 seasons.css -rw-rw-r-- 1 weewx weewx 6404 7. Feb 17:10 seasons.js -rw-rw-r-- 1 weewx weewx 23932 7. Feb 17:30 statistics.html -rw-rw-r-- 1 weewx weewx 7124 7. Feb 17:30 tabular.html -rw-rw-r-- 1 weewx weewx 9474 7. Feb 17:30 telemetry.html
The user and group www-data is my joomla homepage in /var/www/html I tried to fix it according your instruction and wiki. Unfortunately, the problem still exists. A part of syslog say: Feb 10 11:46:16 hp weewxd[818]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/yearrx.png' [Errno 13] Keine Berechtigung: '/var/www/html/weewx/yearrx.png': Feb 10 11:49:17 hp weewxd[818]: INFO weewx.imagegenerator: Generated 0 images for report SeasonsReport in 3.98 seconds Feb 10 11:49:17 hp weewxd[818]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx I think I will do again a fresh installation Regards Walter matthew wall schrieb am Freitag, 9. Februar 2024 um 21:30:51 UTC+1: > On Friday, February 9, 2024 at 3:02:57 PM UTC-5 wagr...@gmail.com wrote: > > Feb 9 19:06:16 hp weewxd[10624]: PermissionError: [Errno 13] Keine > Berechtigung: '/var/www/html/weewx/NOAA/NOAA-2023-12.txt.tmp' > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > ngen += self.generate(section[subsection], subsection, gen_ts) > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > ngen += self.generate(section[subsection], subsection, gen_ts) > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > File "/usr/share/weewx/weewx/cheetahgenerator.py", line 371, in generate > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > with open(tmpname, mode='wb') as fd: > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > PermissionError: [Errno 13] Keine Berechtigung: > '/var/www/html/weewx/NOAA/NOAA-2023-12.txt.tmp' > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.reportengine: **** > Generator terminated > Feb 9 19:06:16 hp weewxd[10624]: DEBUG weewx.manager: Daily summary > version is 4.0 > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.imagegenerator: Unable to > save to file '/var/www/html/weewx/daybarometer.png' [Errno 13] Keine > Berechtigung: '/var/www/html/weewx/daybarometer.png': > Feb 9 19:06:16 hp weewxd[10624]: ERROR weewx.imagegenerator: Unable to > save to file '/var/www/html/weewx/daytempdew.png' [Errno 13] Keine > Berechtigung: '/var/www/html/weewx/daytempdew.png': > > > apparently whatever user is running weewx does not have permission to > create/modify files in the HTML_ROOT area. > > you can verify like this: > > # find out who is running weewxd > ps aux|grep weewxd > # see what existing permissions are on HTML_ROOT > ls -la /var/www/html/weewx > > assuming that the user `weewx` is running the process `weewxd`, you can > fix it like this: > > sudo find /var/www/html/weewx -type d -exec chmod 2775 {} \; > sudo find /var/www/html/weewx -type t -exec chmod 644 {} \; > > please see the wiki article "Understanding permissions" > > https://github.com/weewx/weewx/wiki/Understanding-permissions > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3353f008-7cc5-4988-8309-c09e54694180n%40googlegroups.com.