@ Matthew, Thanks a lot for the feedback.
It seems to be a problem of rules change. In fact, I first upgraded from 4.10.2 to 5.0.0 and weewx worked perfectly. Then I went from 5.0.0 to 5.0.1 an weewx failed to start. For Weewx,, I did a deb/rpm install and, as far I remember, I installed rtl-sdr following your Git (https://github.com/matthewwall/weewx-sdr). I tried the command you proposed (sudo usermod -aG plugdev weewx) but that doesn't solve the problem. Regarding the rtl-sdr rules, I have a doubt. I installed the file in /etc/weewx/udev/rules.d. Maybe it is a wrong place... I read in another thread that it should be in /usr/lib/udev/rules.d... What about ? Pierre-Yves Le mardi 6 février 2024 à 17:09:36 UTC+1, Tom Hogland a écrit : > In case anyone else runs into this - my Ubuntu server/Davis VP2 and serial > datalogger had ownership set to root:dialout, so I had to add the weewx > user to the dialout group for things to work. > > On Tuesday, February 6, 2024 at 6:23:15 AM UTC-9 matthew wall wrote: > >> when you install rtl-sdr, it typically, but not always, installs udev >> rules for *many* sdr devices. the udev rules that it installs make it >> possible for anyone in the 'plugdev' group to read/write to the sdr >> device. (this is true when you install rtl-sdr from source - if you >> install rtl-sdr from a deb/rpm package, it might be different - anyone with >> this configuration please let us know) >> >> weewx v4 runs as root:root, so it has access to the sdr device no matter >> what the udev rules might be >> >> weewx v5 runs as weewx:weewx (for a deb/rpm install) or as a regular >> non-root user (for pip installs). so udev rules are required. >> >> btw, weewx 5.0.1 *always* converts to weewx:weewx, whereas 5.0.0 did not >> (it would continue to run as root - we changed in 5.0.1 because overall >> security and best practice) >> >> the udev rules installed by rtl-sdr will not help for a deb/rpm install, >> since the user 'weewx' is not in the plugdev group. you can either added >> the user weewx to the plugdev group, or modify the udev rules to use >> 'weewx' instead of 'plugdev' as the group. this is how to do the former: >> >> sudo usermod -aG plugdev weewx >> >> for a pip install, be sure that the user running weewx is in the >> 'plugdev' group. >> >> restart of the weewxd daemon is almost certainly required so that the >> daemon process has the right group. reboot is not necessary. >> >> m >> > -- 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/851d8cfc-0ce2-4758-b160-22a983dbd897n%40googlegroups.com.