Doing a strace running weewxd I am getting this....
stat64("/usr/share/weewx/swig_runtime_data4", 0x7e9d9ba8) = -1 ENOENT (No
such file or directory)
open("/usr/share/weewx/swig_runtime_data4.arm-linux-gnueabihf.so", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/weewx/swig_runtime_data4.so", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/share/weewx/swig_runtime_data4module.so", O_RDONLY|O_LARGEFILE) =
-1 ENOENT (No such file or directory)
open("/usr/share/weewx/swig_runtime_data4.py", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/share/weewx/swig_runtime_data4.pyc", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/swig_runtime_data4", 0x7e9d9ba8) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.7/swig_runtime_data4.arm-linux-gnueabihf.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/swig_runtime_data4.so", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python2.7/swig_runtime_data4module.so", O_RDONLY|O_LARGEFILE)
= -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/swig_runtime_data4.py", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/lib/python2.7/swig_runtime_data4.pyc", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/plat-arm-linux-gnueabihf/swig_runtime_data4",
0x7e9d9ba8) = -1 ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/plat-arm-linux-gnueabihf/swig_runtime_data4.arm-linux-gnueabihf.so"
, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/plat-arm-linux-gnueabihf/swig_runtime_data4.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/plat-arm-linux-gnueabihf/swig_runtime_data4module.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/plat-arm-linux-gnueabihf/swig_runtime_data4.py",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/plat-arm-linux-gnueabihf/swig_runtime_data4.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/lib-tk/swig_runtime_data4", 0x7e9d9ba8) = -1
ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-tk/swig_runtime_data4.arm-linux-gnueabihf.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-tk/swig_runtime_data4.so", O_RDONLY|O_LARGEFILE
) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-tk/swig_runtime_data4module.so", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-tk/swig_runtime_data4.py", O_RDONLY|O_LARGEFILE
) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-tk/swig_runtime_data4.pyc", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/lib-dynload/swig_runtime_data4", 0x7e9d9ba8) = -1
ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/lib-dynload/swig_runtime_data4.arm-linux-gnueabihf.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-dynload/swig_runtime_data4.so", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-dynload/swig_runtime_data4module.so", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-dynload/swig_runtime_data4.py", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/lib-dynload/swig_runtime_data4.pyc", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/python2.7/dist-packages/swig_runtime_data4",
0x7e9d9ba8) = -1 ENOENT (No such file or directory)
open(
"/usr/local/lib/python2.7/dist-packages/swig_runtime_data4.arm-linux-gnueabihf.so"
, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/python2.7/dist-packages/swig_runtime_data4.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/python2.7/dist-packages/swig_runtime_data4module.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/python2.7/dist-packages/swig_runtime_data4.py",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/python2.7/dist-packages/swig_runtime_data4.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/dist-packages/swig_runtime_data4", 0x7e9d9ba8) =
-1 ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/dist-packages/swig_runtime_data4.arm-linux-gnueabihf.so"
, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/swig_runtime_data4.so", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/swig_runtime_data4module.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/swig_runtime_data4.py", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/swig_runtime_data4.pyc", O_RDONLY|
O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/dist-packages/PILcompat/swig_runtime_data4",
0x7e9d9ba8) = -1 ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/dist-packages/PILcompat/swig_runtime_data4.arm-linux-gnueabihf.so"
, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/PILcompat/swig_runtime_data4.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/dist-packages/PILcompat/swig_runtime_data4module.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/PILcompat/swig_runtime_data4.py",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/PILcompat/swig_runtime_data4.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/dist-packages/gtk-2.0/swig_runtime_data4",
0x7e9d9ba8) = -1 ENOENT (No such file or directory)
open(
"/usr/lib/python2.7/dist-packages/gtk-2.0/swig_runtime_data4.arm-linux-gnueabihf.so"
, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/gtk-2.0/swig_runtime_data4.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/gtk-2.0/swig_runtime_data4module.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/gtk-2.0/swig_runtime_data4.py",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/dist-packages/gtk-2.0/swig_runtime_data4.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
On Saturday, January 11, 2020 at 6:26:06 PM UTC-8, mwall wrote:
>
>
>
> On Saturday, January 11, 2020 at 4:51:30 PM UTC-5, Scott Grayban wrote:
>>
>> I tried pycap and that did run for a few seconds.
>>
>> Jan 11 00:39:13 weewx-pi weewx[3942]: engine: Loading station type
>> Interceptor (user.interceptor)
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: driver
>> version is 0.49
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: device
>> type: observer
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: sensor
>> map: None
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: mode is
>> sniff
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: sniff
>> iface=wlan0 promiscuous=0
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: sniff
>> filter 'src 10.3.141.62 and dst port 80'
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: MainThread: pypcap
>> (1.2.2)
>> Jan 11 00:39:13 weewx-pi weewx[3942]: interceptor: ServerThread: start
>> sniff server
>>
>
> this is actually running just fine - when you ran it this time, there was
> no exception at pcapObject_open_live
>
> so one time when you started weewxd, you got a type error for argument 2
> of pcapObject_open_live. we do not know what caused that.
>
> another time when you started weewxd, you got a failure because of a bogus
> service configuration in your weewx configuration file.
>
> and one time when you ran interceptor directly, it worked.
>
> you did an apt update, which might have updated your pcap library
>
> you updated the interceptor driver
>
> the pcap initialization code in the interceptor driver has not changed
> since january 2019.
>
> so without more information, i'd guess that the failures are due to
> changes that you are making in your weewx configuration file.
>
> if it is true that running interceptor directly works, but running weewxd
> fails, with absolutely no other changes, then run those two different ways
> to figure out what is different.
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/1d13b502-57ca-4957-b8d9-fa8afc8201d7%40googlegroups.com.