Hi to all folks, hope you are all doing well,
I have been following this thread for 2 weeks to add meteor decoding to my satnogs station. I troubleshooted some issues I had (mostly related to permissions) but now I am struggled because process_meteor.py
is not working as expected and I really don´t know why:
If I run journalctl -f -u satnogs-client.service
during an observation, I get this:
Aug 10 15:44:52 ElNido satnogs-client[576]: Waiting for 120 seconds before processing.
Aug 10 15:44:52 ElNido satnogs-client[576]: Attempting to process: /datadrive/meteor/data_908614_2019-08-10T18-31-54.s
Aug 10 15:44:52 ElNido satnogs-client[576]: Traceback (most recent call last):
Aug 10 15:44:52 ElNido satnogs-client[576]: File "/datadrive/process_meteor.py", line 109, in <module>
Aug 10 15:44:52 ElNido satnogs-client[576]: run_medet(_file, MEDET_ARGS_COMPOSITE, "_vis")
Aug 10 15:44:52 ElNido satnogs-client[576]: File "/datadrive/process_meteor.py", line 90, in run_medet
Aug 10 15:44:52 ElNido satnogs-client[576]: ret_code = subprocess.call(_medet_command)
Aug 10 15:44:52 ElNido satnogs-client[576]: File "/usr/lib/python2.7/subprocess.py", line 168, in call
Aug 10 15:44:52 ElNido satnogs-client[576]: return Popen(*popenargs, **kwargs).wait()
Aug 10 15:44:52 ElNido satnogs-client[576]: File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
Aug 10 15:44:52 ElNido satnogs-client[576]: errread, errwrite)
Aug 10 15:44:52 ElNido satnogs-client[576]: File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
Aug 10 15:44:52 ElNido satnogs-client[576]: raise child_exception
Aug 10 15:44:52 ElNido satnogs-client[576]: OSError: [Errno 2] No such file or directory
The same error happens if I manually run the process_meteor.py
script:
root@ElNido:/datadrive# su pi -c /datadrive/process_meteor.py
Waiting for 120 seconds before processing.
Attempting to process: /datadrive/meteor/data_908614_2019-08-10T18-31-54.s
Traceback (most recent call last):
File "/datadrive/process_meteor.py", line 109, in <module>
run_medet(_file, MEDET_ARGS_COMPOSITE, "_vis")
File "/datadrive/process_meteor.py", line 90, in run_medet
ret_code = subprocess.call(_medet_command)
File "/usr/lib/python2.7/subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Also If I check, data_.s files are being generated:
root@ElNido:/datadrive/meteor# ls -lrth
total 333M
drwxrwxrwx 2 satnogs satnogs 4.0K Aug 5 19:22 complete
-rwxrwxrwx 1 satnogs satnogs 90M Aug 7 20:34 data_894969_2019-08-06T00-33-36.s
-rwxrwxrwx 1 satnogs satnogs 8.3M Aug 7 21:04 data_899413_2019-08-07T23-54-12.s
-rwxrwxrwx 1 satnogs satnogs 71M Aug 7 22:43 data_899590_2019-08-08T01-34-51.s
-rwxrwxrwx 1 satnogs satnogs 72M Aug 8 20:43 data_905134_2019-08-08T23-34-54.s
-rwxrwxrwx 1 satnogs satnogs 8.8M Aug 9 22:04 data_907258_2019-08-10T00-54-20.s
-rwxrwxrwx 1 satnogs satnogs 83M Aug 10 15:41 data_908614_2019-08-10T18-31-54.s
My postob scrips is:
#!/usr/bin/env bash
meteorfile="/datadrive/data_*.s"
if [ -f $meteorfile ]
then
sleep 30
# sudo -n -u satnogs chmod 777 /datadrive/data_*.s
mv /datadrive/data_*.s /datadrive/meteor/
# sudo -n -u satnogs
chmod 777 /datadrive/meteor/*
echo `date +%F" "%T`" Meteor file exists" >> /home/pi/freqset.txt
/usr/bin/python /datadrive/process_meteor.py &
echo "postob script executed succesfully"
else
echo "An error has occurred, but the postob.sh script is working :)"
fi
So, does anybody knows what may be going on? or does anybody see something similar?
I am also uploading the journalctl
complete output form the last 2 test that are showing this error. I really appreciate your help on this.
20190808_journalctl_meteor.txt (19.2 KB)
20190810_journalctl_meteor.txt (14.3 KB)