CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running

507 views
Skip to first unread message

Charlie T

unread,
Feb 25, 2024, 9:27:12 AM2/25/24
to weewx-user
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...

Charlie T

unread,
Feb 25, 2024, 9:27:16 AM2/25/24
to weewx-user
I'm having issues with weewx-sdr...any help appreciated

I can run rtl_433 manually and see my sensors out there....but when running weewx I get this error message:

root@raspberrypi:/etc/udev# systemctl status weewx

Tom Keffer

unread,
Feb 25, 2024, 10:20:30 AM2/25/24
to weewx...@googlegroups.com
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. Try the suggestions in that thread.



--
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.

Pierre-Yves

unread,
Feb 25, 2024, 11:32:05 AM2/25/24
to weewx-user
Hello Charlie,

Don't you have in weewx.conf ,[sdr] section, a "sudo" at the beginning of your rtl_433 command line ? If yes, try to remove it.

That fixed the problem in my case

Pierre-Yves

Charlie T

unread,
Feb 25, 2024, 12:55:30 PM2/25/24
to weewx-user
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...

Tom Keffer

unread,
Feb 25, 2024, 5:40:54 PM2/25/24
to weewx...@googlegroups.com
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, in particular the section Example: add the weewx user to group in a udev rule.

Charlie T

unread,
Mar 1, 2024, 3:03:19 PM3/1/24
to weewx-user

Ok I will follow up on that. 
-CT
Reply all
Reply to author
Forward
0 new messages