Thanks Vince for feedback but I remember I already sent this comment. 
However, I sent it again. Same result...

How can I check I am running weewx as user weewx ?

Pierre-Yves

Mar  3 23:30:31 raspberrypi weewxd[13195]: INFO user.sqlbackup: version is 
0.5
Mar  3 23:30:31 raspberrypi weewxd[13195]: DEBUG user.sqlbackup:  starting 
from 2024-02-25 23:15:31
Mar  3 23:30:31 raspberrypi weewxd[13195]: DEBUG user.sqlbackup: 
 databases, sqlite 1 named ['weewx.sdb']
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR user.sqlbackup: [Errno 13] 
Permission non accordée: '/media/pi/WEEWX-BU'
Mar  3 23:30:31 raspberrypi weewxd[13195]: DEBUG weewx.manager: Daily 
summary version is 4.0
Mar  3 23:30:31 raspberrypi weewxd[13195]: 
/usr/lib/python3/dist-packages/Cheetah/Compiler.py:1686: UserWarning: You 
supplied an empty string for the source!
Mar  3 23:30:31 raspberrypi weewxd[13195]:   warnings.warn("You supplied an 
empty string for the source!", )
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
Evaluation of template /etc/weewx/skins/sqlbackup/index.html.tmpl failed 
with exception '<class 'FileNotFoundError'>'
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
**** Ignoring template /etc/weewx/skins/sqlbackup/index.html.tmpl
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
**** Reason: [Errno 2] Aucun fichier ou dossier de ce type: 
'/tmp/sqlbackup/syslinks.inc'
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****  Traceback (most recent call last):
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in 
generate
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****      unicode_string = compiled_template.respond()
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****    File "_etc_weewx_skins_sqlbackup_index_html_tmpl.py", line 202, in 
respond
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
1685, in _handleCheetahInclude
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****      nestedTemplateClass = compiler.compile(source=source,
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
738, in compile
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****      fileHash += str(os.path.getmtime(file))
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****    File "/usr/lib/python3.9/genericpath.py", line 55, in getmtime
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****      return os.stat(filename).st_mtime
Mar  3 23:30:31 raspberrypi weewxd[13195]: ERROR weewx.cheetahgenerator: 
****  FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 
'/tmp/sqlbackup/syslinks.inc'
Mar  3 23:30:31 raspberrypi weewxd[13195]: INFO weewx.cheetahgenerator: 
Generated 0 files for report sqlbackup in 0.06 seconds
Mar  3 23:30:31 raspberrypi weewxd[13195]: INFO weewx.reportengine: Copied 
4 files to /var/www/html/weewx/sqlbackup

Le dimanche 3 mars 2024 à 23:04:56 UTC+1, vince a écrit :

> Permission non accordée: '/media/pi/WEEWX-BU'
>
> You need to give the user running the weewx process to write to the usb 
> stick.   This has come up many many times regarding usb devices and v5.
>
> The command is likely "sudo usermod -aG dialout weewx" if your weewx is 
> running as user 'weewx'.
>
> On Sunday, March 3, 2024 at 1:57:05 PM UTC-8 Pierre-Yves wrote:
>
>> Hello,
>> I am running Weewx on a Rpi4-2GB (user.sdr driver + BME280 and as3935 
>> extensions). That works very well.
>> I am able to save sql-backups on the default directory (/var/tmp/backups) 
>> but I fail to save to a USB stick connected to the Pi USB2 port, with an 
>> [errno 13] error Permission denied: '/media/pi/WEEWX-BU'
>> The same configuration was working properly with Weewx 4.10.2
>>
>> I read and followed the Github wiki but have still the same error.
>>
>> Below, the log, the first part of the sql-backup skin.conf and details on 
>> the usb disk connected.
>>
>> Any clue ?
>>
>> Thanks,
>>
>> Pierre-Yves
>
>

-- 
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/54f3d89e-b14a-436c-b8cb-74d69d1693c3n%40googlegroups.com.

Reply via email to