On Tuesday, February 6, 2024 at 11:38:24 AM UTC-5 Pierre-Yves wrote:

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. 


weewx was running as root:root. weewx 5.0.0 did not modify any permissions 
when it upgraded from 4.10.2.
 

Then I went from 5.0.0 to 5.0.1 an weewx failed to start.


weewx was running as weewx:weewx.  weewx 5.0.1 converts from root:root 
permissions to weewx:weewx permissions, and runs the daemon as weewx.
 

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.


is there a udev rules file for sdr?  (it is a separate step when you build 
rtl-sdr from source)
if there is a udev rules file for sdr, how are the permissions set?
did the usermod for weewx succeed?
is weewx in the plugdev group?  (grep weewx /etc/group)
did you restart weewxd after putting weewx into the plugdev group?
 

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 ?


packages install to /usr/lib/udev/rules.d

system administrators (or end-users acting as system administrators) put 
things in /etc/udev/rules.d

that way you can override whatever a package installs, and your changes 
will not be overwritten by the package when you upgrade/update.
 

-- 
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/bc624a71-320b-46e5-9b28-c3a813f5b447n%40googlegroups.com.

Reply via email to