OP25 OP25 Errors

Status
Not open for further replies.

krutzy

Member
Feed Provider
Joined
Sep 17, 2004
Messages
141
Location
Culpeper, VA
My OP25 installation is running ok but I have noticed some broken transmissions. So I went to look at the rx.py log and I am getting these repeater errors. Any idea what is causing these?

Thank you,
Kevin


post_req: error processing input: id=%25%7B%27_Bug_147%27+%2B+%28159+%2B+357%29.toString%28%29%7D&username=%25%7B%27_Bug_147%27+%2B+%28159+%2B+357%29.toString%2
8%29%7D&password=%25%7B%27_Bug_147%27+%2B+%28159+%2B+357%29.toString%28%29%7D&uid=%25%7B%27_Bug_147%27+%2B+%28159+%2B+357%29.toString%28%29%7D&:
Traceback (most recent call last):
File "/home/pi/op25/op25/gr-op25_repeater/apps/http_server.py", line 223, in post_req
data = json.loads(postdata)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
*** end traceback ***
application: request failed:
Traceback (most recent call last):
File "/home/pi/op25/op25/gr-op25_repeater/apps/http_server.py", line 281, in application
result = http_request(environ, start_response)
File "/home/pi/op25/op25/gr-op25_repeater/apps/http_server.py", line 261, in http_request
status, content_type, output = post_req(environ, start_response, postdata)
File "/home/pi/op25/op25/gr-op25_repeater/apps/http_server.py", line 228, in post_req
for d in data:
UnboundLocalError: local variable 'data' referenced before assignment
 

NebraskaCoder

Member
Joined
Oct 26, 2016
Messages
325
Location
Omaha, NE
Ah, ok. I can't vouch for the new interface code. Sorry. If it was boatbod, then that would have been some sort of extension messing it up, but if it is Max, I'm unsure.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Thanks for this report - it initially appears to be one we haven't seen before - is the error repeatable and if so, how often are the incidents and are there any other symptoms? Which web client (browser software/version) are you running when the error occurs?

There are actually two errors - the initial parsing error and then secondarily a crash in the python code. I will push a probable fix for the second error later today...

Max
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Kevin

please post your rx.py command line. If you're running multi_rx - please post that command line as well as a copy of your configuration json file.

Thx

Max
 

krutzy

Member
Feed Provider
Joined
Sep 17, 2004
Messages
141
Location
Culpeper, VA
Max,

First, this may throw a curveball but I run Opera browser v78. There aren't many extensions but it has some ad and tracker blocking built in. Just fireshot and lastpass. It seems to be repeatable but if it based on screens I am not sure. I can always use Firefox. I can always try some different things.

My start line is:
./rx.py --nocrypt --args rtl -N LNA:47 -S 57600 -o 25000 -d 300 -q 1 -2 -T kutrunk.tsv -w -u 23456 -P constellation -l http:0.0.0.0:8080 -V 2> stderr.2

It is the boatbod version so some of this is for liquidsoap. (I think).

Thank you, let me know what I can try.

Kevin
 

NebraskaCoder

Member
Joined
Oct 26, 2016
Messages
325
Location
Omaha, NE
Sounds like someone is trying to hack you. Even if you do t advertise it, it is normally picked up on the internet within 30 minutes.
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
 

KA1RBI

Member
Joined
Aug 15, 2008
Messages
799
Location
Portage Escarpment
Fix pushed to osmocom repo master for the tributary python crash in http server. Should need only to update using "git pull" as no rebuild is req.

Max
 

krutzy

Member
Feed Provider
Joined
Sep 17, 2004
Messages
141
Location
Culpeper, VA
Max,

I have let it run for a while and gone to different screens. Everything is a lot cleaner now!

Thanks for the fix

Kevin
 
Status
Not open for further replies.
Top