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 <[email protected]> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAAraAziTeV273Wn6YtQ3PODMJ9etMBfabiTN81DBrUX5cotE4g%40mail.gmail.com.
