On Friday, February 9, 2024 at 3:02:57 PM UTC-5 [email protected] 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/e6bd8c87-421c-4a8a-a348-d8def12ef830n%40googlegroups.com.