Thanks Glenn for feedback.

Below the results:

- Even after a restart of the Pi, I still have the same error.

- ps -adelf | grep [Ww]eewxd returns:

pi@raspberrypi:~ $ ps -adelf | grep [Ww]eewxd
4 S *weewx*    14866     1  2  80   0 - 26178 -      mars03 ?       
00:14:55 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf

ls -al '/media/pi/WEEWX-BU' returns:

pi@raspberrypi:~ $ ls -al '/media/pi/WEEWX-BU'
total 273976
*drwxr-xr-x   5 pi   pi        4096  1 janv.  1970  .*
*drwxrwxrwx+  3 root root      4096  3 mars  17:59  ..*
-rw-r--r--   1 pi   pi        8622 22 déc.  16:46 'as3935(min_strikes).py'
drwxr-xr-x  12 pi   pi        4096  2 mars  14:18  Belchertown
drwxr-xr-x  12 pi   pi        4096  1 mars  18:27  Belchertown-old
-rw-r--r--   1 pi   pi        4156  6 févr. 23:27  bme280wx.py
-rw-r--r--   1 pi   pi        1616  7 févr. 00:00  Commandes-usuelles.txt
-rw-r--r--   1 pi   pi       40148  1 mars  21:50  graphs.conf
-rw-r--r--   1 pi   pi      148331 28 juin   2023 'sdr(last).py'
drwxr-xr-x   5 pi   pi        4096 28 oct.  18:04  Seasons202310281704
-rw-r--r--   1 pi   pi       40047  1 mars  21:28  skin.conf
-rw-r--r--   1 pi   pi       36467  1 mars  09:00  weewx.conf
-rw-r--r--   1 pi   pi   280235008  2 mars  15:26  weewx.sdb.backup

PS: I use also this usb drive for manually saving various files and folders 
without any problem (skins, database...)

It seems, in view of the table above, that the drive is not properly 
mounted with regards to the weewx 5.0.2 rules. I tried to change using 
chown, but I got an "operation denied"...

Cheers,
Pierre-Yves


Le lundi 4 mars 2024 à 00:47:48 UTC+1, Glenn McKechnie a écrit :

> As the author of sql-backup, I should probably step up here.
>
> I haven't been able to set up a V5 installation yet, so therefore I'm 
> unfamiliar with the changes required but that group change Vince mentioned 
> should be enough - the disk needs rw (read write) for the weewx user, or 
> dialout group.
>
> Did you login/logout to set the group changes that vince mentioned. 
>
>
> https://github.com/weewx/weewx/wiki/Understanding-permissions#how-to-fix-device-permissions
>
> further comments inline below...
>
>
> On Mon, 4 Mar 2024 at 09:39, Pierre-Yves <pyb...@gmail.com> wrote:
>
>> 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 ?
>>
>
>   ps -adelf | grep [Ww]eewxd
>
> The 3rd column will show the user.
>
>
> 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'
>>
>
>
>
> and also,  what's the details for the USB drive 
>   ls -al '/media/pi/WEEWX-BU'
>
> You could always manually mount that drive as the weewx user under (for 
> eg:) /mnt/sql-backup and add an entry to fstab - with suitable permissions. 
> And reflect that change in the skin.conf file
> p.s. I found thumb drives unreliable for backups. They eventually go 
> read-only - the Sans-disk ones I had did that.
>  
>
>> 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]: 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'
>>
>
> That error should disappear after the first run - it's due to the manual 
> steps in configuration. 
>
>
> Cheers
>  Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>

-- 
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/7755d235-e828-4c2b-b8e5-1c90d716129dn%40googlegroups.com.

Reply via email to