errors launching ki7dln drf image

21 views
Skip to first unread message

Christopher Prosser

unread,
Sep 27, 2023, 10:52:20 PM9/27/23
to hamsci-grape
Hi Folks,

When I boot the Pi with the DRF image I'm not seeing the GnuRadio QT based diagnostics and I'm getting the following errors:

ubuntu@ubuntu-desktop:~/Documents/runGrape$ python3 gnuradio_schedule.py 

initial startup of Grape

calling script to halt gnuradio

Process(es) to kill: []

starting uploader

Upload starting 2023-09-28T02:38

Will attempt to upload observation# OBS2023-09-18T18-37

 

Upload starting, time:  2023-09-28T02:38

Upload command = 'lftp -e 'set net:limit-rate 200K;mirror --exclude tmp.* -R --verbose /G1DRF/OBS2023-09-18T18-37/ OBS2023-09-18T1

8-37;chmod 775 OBS2023-09-18T18-37;mkdir cOBS2023-09-18T18-37_#74_#2023-09-28T02:38;chmod 775 cOBS2023-09-18T18-37_#74_#2023-09-28

T02:38;exit' -u S000047,1237f5c3ad7654626a64 sftp://pswsnetwork.caps.ua.edu '

Starting upload...

mirror: Access failed: /G1DRF/OBS2023-09-18T18-37: No such file or directory

restarting gnuradio DRF grc                                                   

Starting up gnuradio/Grape

Observation='OBS2023-09-18T18-37'

New observation name: OBS2023-09-28T00-00

Create new data area on bulk storage

Restarting with existing observation

/home/ubuntu/Documents/runGrape/grape_DRF_spec.py:11: DeprecationWarning: The distutils package is deprecated and slated for remov

al in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

  from distutils.version import StrictVersion

output file: /G1DRF/OBS2023-09-18T18-37/ch0

band: [10.]

Lat/Long= {'lat': 47.6875, 'long': -122.375}

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Traceback (most recent call last):

  File "/home/ubuntu/Documents/runGrape/grape_DRF_spec.py", line 278, in <module>

    main()

  File "/home/ubuntu/Documents/runGrape/grape_DRF_spec.py", line 254, in main

    tb = top_block_cls()

  File "/home/ubuntu/Documents/runGrape/grape_DRF_spec.py", line 177, in __init__

    self.gr_digital_rf_digital_rf_channel_sink_0_0 = gr_digital_rf.digital_rf_channel_sink(

  File "/usr/local/lib/python3.10/dist-packages/gr_digital_rf/digital_rf_sink.py", line 400, in __init__

    os.makedirs(self._metadata_dir)

  File "/usr/lib/python3.10/os.py", line 215, in makedirs

    makedirs(head, exist_ok=exist_ok)

  File "/usr/lib/python3.10/os.py", line 215, in makedirs

    makedirs(head, exist_ok=exist_ok)

  File "/usr/lib/python3.10/os.py", line 225, in makedirs

    mkdir(name, mode)

PermissionError: [Errno 13] Permission denied: '/G1DRF/OBS2023-09-18T18-37'



It looks like something may have been left over from image creation that's confusing the uploader. This is a system I built myself, so as expected, the file on G1DRF doesn't exist.

Any ideas on how to get this fixed and QT diagnostics visible? I'm going to leave the system running at least through UTC 0000 tomorrow to see what happens.

thanks,
 chris

Bill Engelke

unread,
Sep 27, 2023, 11:36:14 PM9/27/23
to Christopher Prosser, hamsci-grape
Chris

  • here is what i would try first- go to /home/Documents/runGrape and edit uploader.config . You will find a line such as obs = OBSYYYY-MM-DD etc. Delete the observation number leaving it as obs = (blank)
  • Restart the data collector from the same directory using: python3 gnuradio_schedule.py
Try this & let me know the results.

Regarding QT diagnostics: the gnuradio package is a minimal installation. (Do you really need QT diagnostics  for the data collection task? If so, you can add it at your risk- I don’t know enuff about it to be of any help).  I’d suggest holding off on any significant changes at least until after the Oct 14 eclipse…. Then you can customize the system as you like. (We do hope to have a network running data collection for the April 2024 total eclipse as well).

Let me know your thoughts….   Tnx es 73 - Bill.   AB4EJ

From: 'Christopher Prosser' via hamsci-grape <hamsci...@googlegroups.com>
Sent: Wednesday, September 27, 2023 9:52:20 PM
To: hamsci-grape <hamsci...@googlegroups.com>
Subject: [EXTERNAL] [hamsci-grape] errors launching ki7dln drf image
 
--
You received this message because you are subscribed to the Google Groups "hamsci-grape" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hamsci-grape...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hamsci-grape/97821976-9125-4a0a-af96-df4d1f24a607n%40googlegroups.com.

Bill Blackwell

unread,
Sep 28, 2023, 12:33:32 AM9/28/23
to Bill Engelke, Christopher Prosser, hamsci-grape

Chris,

It looks like a permissions error when trying to create the OBS directory under /G1DRF.
After doing Bill Engelke’s step of deleting the observation name in uploader.config, do the following.

sudo chgrp ubuntu /G1DRF

sudo chmod 775 /G1DRF

Then restart gnuradio:

cd ~/Documents/runGrape
python3 gnuradio_schedule.py


73,
Bill AB1XB

mirror: Access failed: /G1DRF/OBS2023-09-18T18-37: No such file or directory

restarting gnuradio DRF grc                                                   

Starting up gnuradio/Grape

Observation='OBS2023-09-18T18-37'

New observation name: OBS2023-09-28T00-00

Create new data area on bulk storage

Restarting with existing observation

/home/ubuntu/Documents/runGrape/grape_DRF_spec.py:11: DeprecationWarning: The distutils package is deprecated and slated for remov

al in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

  from distutils.version import StrictVersion

output file: /G1DRF/OBS2023-09-18T18-37/ch0

band: [10.]

Lat/Long= {'lat': 47.6875, 'long': -122.375}

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Traceback (most recent call last):

  File "/home/ubuntu/Documents/runGrape/grape_DRF_spec.py", line 278, in <module>

    main()

  File "/home/ubuntu/Documents/runGrape/grape_DRF_spec.py", line 254, in main

    tb = top_block_cls()

  File "/home/ubuntu/Documents/runGrape/grape_DRF_spec.py", line 177, in __init__

    self.gr_digital_rf_digital_rf_channel_sink_0_0 = gr_digital_rf.digital_rf_channel_sink(

  File "/usr/local/lib/python3.10/dist-packages/gr_digital_rf/digital_rf_sink.py", line 400, in __init__

    osmakedirs(self._metadata_dir)

  File "/usr/lib/python3.10/os.py", line 215, in makedirs

    makedirs(head, exist_ok=exist_ok)

  File "/usr/lib/python3.10/os.py", line 215, in makedirs

    makedirs(head, exist_ok=exist_ok)

  File "/usr/lib/python3.10/os.py", line 225, in makedirs

    mkdir(name, mode)

PermissionError: [Errno 13] Permission denied: '/G1DRF/OBS2023-09-18T18-37'

 

 

It looks like something may have been left over from image creation that's confusing the uploader. This is a system I built myself, so as expected, the file on G1DRF doesn't exist.

 

Any ideas on how to get this fixed and QT diagnostics visible? I'm going to leave the system running at least through UTC 0000 tomorrow to see what happens.

 

thanks,

 chris

--
You received this message because you are subscribed to the Google Groups "hamsci-grape" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hamsci-grape...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hamsci-grape/97821976-9125-4a0a-af96-df4d1f24a607n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "hamsci-grape" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hamsci-grape...@googlegroups.com.

Christopher Prosser

unread,
Sep 28, 2023, 12:47:43 AM9/28/23
to hamsci-grape
Excellent. I had formatted the ext4 filesystem with a different RPi image so it had a different uid/gid. I also needed to run:

sudo chown ubuntu /G1DRF

to get it all working.

In terms of QT Dignostics, I only brought that up because they were called out as launching automatically on page 14 from https://hamsci.org/sites/default/files/Grape/2023-09-22%20Getting%20Started%20with%20Data%20Reporting%20Using%20A%20PSWS_V7.1.pdf

I was concerned the gnu radio process wasn't running right.

Which I think was valid as now that I've fixed all the permission errors I am seeing the QT window.

thanks for the quick replies,
 chris

Reply all
Reply to author
Forward
0 new messages