Yes, you have a permissions problem. Try the suggestions in the thread I
linked to earlier.

Also, take a look at the wiki article Understanding permissions
<https://github.com/weewx/weewx/wiki/Understanding-permissions>, in
particular the section *Example: add the weewx user to group in a udev rule
<https://github.com/weewx/weewx/wiki/Understanding-permissions#example-add-the-weewx-user-to-group-in-a-udev-rule>*
.

On Sun, Feb 25, 2024 at 9:55 AM Charlie T <charlie.te...@gmail.com> wrote:

> *Here is the log file:*
>
> eb 25 11:39:09 raspberrypi weewxd[3688]: INFO weewx.engine: Starting main
> packet loop.
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: rtl_433 version
> unknown inputs file rtl_tcp RTL-SDR SoapySDR
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Use -h for usage
> help and see https://triq.org/ for documentation.
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "/var/lib/weewx/.config/rtl_433/rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "/usr/local/etc/rtl_433/rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "/etc/rtl_433/rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Registered 145
> out of 175 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26
> 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161
> 163-168 170-175 ]
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: usb_open error -3
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Please fix the
> device permissions, e.g. by installing the udev rules file rtl-sdr.rules
> Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO weewx.engine: Main loop
> exiting. Shutting engine down.
> Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO user.sdr: shutdown process
> rtl_433 -M utc -F json
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Exception in thread
> stdout-thread:
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Exception in thread
> stderr-thread:
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Traceback (most recent call
> last):
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Traceback (most recent call
> last):
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
> Feb 25 11:39:12 raspberrypi weewxd[3688]:     self.run()
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/etc/weewx/bin/user/sdr.py", line 198, in run
> Feb 25 11:39:12 raspberrypi weewxd[3688]:     self.run()
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/etc/weewx/bin/user/sdr.py", line 198, in run
> Feb 25 11:39:12 raspberrypi weewxd[3688]:     for line in
> iter(self._fd.readline, ''):
> Feb 25 11:39:12 raspberrypi weewxd[3688]:     for line in
> iter(self._fd.readline, ''):
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ValueError:
> PyMemoryView_FromBuffer(): info->buf must not be NULL
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ValueError:
> PyMemoryView_FromBuffer(): info->buf must not be NULL
> Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO user.sdr: shutdown complete
> Feb 25 11:39:12 raspberrypi weewxd[3688]: CRITICAL __main__: Caught
> WeeWxIOError: rtl_433 process is not running
> Feb 25 11:39:12 raspberrypi weewxd[3688]: CRITICAL __main__:     ****
>  Waiting 60.0 seconds then retrying...
>
>
> On Sunday, February 25, 2024 at 9:20:30 AM UTC-6 Tom Keffer wrote:
>
>> I'm not seeing the log. Just the status output from systemctl.
>>
>> There are many threads about this error in weewx-user. Here's one
>> <https://groups.google.com/g/weewx-user/c/5BuR3BSQfeY/m/liOVdD2xAAAJ>.
>> Try the suggestions in that thread.
>>
>>
>>
>> On Sun, Feb 25, 2024 at 6:27 AM Charlie T <charli...@gmail.com> wrote:
>>
>>> *Here's the log...what am I doing wrong?*
>>>
>>> ● weewx.service - WeeWX
>>>      Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor
>>> preset: enabled)
>>>      Active: active (running) since Sun 2024-02-25 07:21:25 CST; 54min
>>> ago
>>>        Docs: https://weewx.com/docs
>>>    Main PID: 505 (python3)
>>>       Tasks: 1 (limit: 1595)
>>>         CPU: 3min 44.239s
>>>      CGroup: /system.slice/weewx.service
>>>              └─505 python3 /usr/share/weewx/weewxd.py
>>> /etc/weewx/weewx.conf
>>>
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:     for line in
>>> iter(self._fd.readline, ''):
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError:
>>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File
>>> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:     self.run()
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File
>>> "/etc/weewx/bin/user/sdr.py", line 198, in run
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:     for line in
>>> iter(self._fd.readline, ''):
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError:
>>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: INFO user.sdr: shutdown complete
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__: Caught
>>> WeeWxIOError: rtl_433 process is not running
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__:     ****
>>>  Waiting 60.0 seconds then retrying...
>>>
>>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/435fd56e-0a1b-4c3d-a333-1eb108ef0432n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/435fd56e-0a1b-4c3d-a333-1eb108ef0432n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/99db2eca-133f-4568-b9c0-e79759f73f9dn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/99db2eca-133f-4568-b9c0-e79759f73f9dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEA_zybdxp2MUEG3M-C0x9_9CfeSGvxuDgr5n5HdkdYQvQ%40mail.gmail.com.

Reply via email to