SOLVED

Hi Matthew

I have spent hours to solve this permission problems on version 5.  I had 
tested all with a new installation on a sep. SSD. After installing an 
Apache server and a dummy CMS I get the the same permission errors. Don't 
ask me why.
Anyway, I fetched the Version 4.10.2 with wget and installed the *.deb,  
gave the relevant permissions, uploaded the database to my "running system" 
and all works fine now. I am a bit anxious to get again problems on a 
system update, so I marked weewx on hold. Apologize for doing this. Thanks 
for your help

regards
Walter


matthew wall schrieb am Dienstag, 13. Februar 2024 um 15:44:05 UTC+1:

> On Tuesday, February 13, 2024 at 9:11:14 AM UTC-5 wagr...@gmail.com wrote:
>
>
> Feb 13 12:40:54 hp weewxd[4425]: 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 13 12:40:54 hp weewxd[4425]: INFO weewx.imagegenerator: Generated 0 
> images for report SeasonsReport in 3.97 seconds
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 'weewx.reportengine.CopyGenerator'
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         **** 
>  [Errno 13] Keine Berechtigung: '/var/www/html/weewx'
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         **** 
>  Traceback (most recent call last):
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>  File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>    obj.start()
> Feb 13 12:40:54 hp weewxd[4425]: Traceback (most recent call last):
> Feb 13 12:40:54 hp weewxd[4425]:   File 
> "/usr/share/weewx/weewx/reportengine.py", line 220, in run
> Feb 13 12:40:54 hp weewxd[4425]:     obj.start()
> Feb 13 12:40:54 hp weewxd[4425]:   File 
> "/usr/share/weewx/weewx/reportengine.py", line 409, in start
> Feb 13 12:40:54 hp weewxd[4425]:     self.run()
> Feb 13 12:40:54 hp weewxd[4425]:   File 
> "/usr/share/weewx/weewx/reportengine.py", line 560, in run
> Feb 13 12:40:54 hp weewxd[4425]:     ncopy += 
> weeutil.weeutil.deep_copy_path(path, html_dest_dir)
> Feb 13 12:40:54 hp weewxd[4425]:   File 
> "/usr/share/weewx/weeutil/weeutil.py", line 1807, in deep_copy_path
> Feb 13 12:40:54 hp weewxd[4425]:     os.makedirs(d, exist_ok=True)
> Feb 13 12:40:54 hp weewxd[4425]:   File "/usr/lib/python3.9/os.py", line 
> 225, in makedirs
> Feb 13 12:40:54 hp weewxd[4425]:     mkdir(name, mode)
> Feb 13 12:40:54 hp weewxd[4425]: PermissionError: [Errno 13] Keine 
> Berechtigung: '/var/www/html/weewx'
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>  File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>    self.run()
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>  File "/usr/share/weewx/weewx/reportengine.py", line 560, in run
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>    ncopy += weeutil.weeutil.deep_copy_path(path, html_dest_dir)
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>  File "/usr/share/weewx/weeutil/weeutil.py", line 1807, in deep_copy_path
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>    os.makedirs(d, exist_ok=True)
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>  File "/usr/lib/python3.9/os.py", line 225, in makedirs
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         ****   
>    mkdir(name, mode)
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         **** 
>  PermissionError: [Errno 13] Keine Berechtigung: '/var/www/html/weewx'
> Feb 13 12:40:54 hp weewxd[4425]: ERROR weewx.reportengine:         **** 
>  Generator terminated
>
>
> the process 'weewxd' does not have permission to create the directory 
> /var/www/html/weewx
>
> assuming that weewxd is configured to run as the user 'weewx', you can fix 
> it like this:
>
> sudo mkdir /var/www/html/weewx
> sudo chown weewx /var/www/html/weewx
> sudo chgrp weewx /var/www/html/weewx
>
>

-- 
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/935a14e3-e19f-4605-b3ad-8ee3ca2268c0n%40googlegroups.com.

Reply via email to