Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scp: stat local "global_conf.json.sx1257.*": No such file or directory #19

Open
qwick745 opened this issue May 17, 2024 · 14 comments
Open

Comments

@qwick745
Copy link

qwick745 commented May 17, 2024

A few of us have gotten an error lately when trying to use this guide to install the packet forwarder.

When running the command "make install_conf" we get the error

scp: stat local "global_conf.json.sx1257.*": No such file or directory
make[1]: *** [Makefile:66: install_conf] Error 255
make[1]: Leaving directory '/home/pi/sx1302_hal/packet_forwarder'
make: *** [Makefile:42: install_conf] Error 2

Does an sx1257 set of files need to copied in from somewhere else or something? Issue is also posted here.

@maco2035
Copy link
Owner

Is there any more info you can provide?

@Incoinas
Copy link

Is there any more info you can provide?

Here is a full error lines:

pi@raspberrypi:~/sx1302_hal $ make install_conf
make install_conf -e -C packet_forwarder
make[1]: Entering directory '/home/pi/sx1302_hal/packet_forwarder'
---- Copying packet_forwarder conf files to localhost:/home/pi/sx1302_hal/bin
global_conf.json.sx1250.AS923 100% 3186 2.0MB/s 00:00
global_conf.json.sx1250.AS923_1 100% 3186 3.7MB/s 00:00
global_conf.json.sx1250.AS923_1A 100% 3186 2.4MB/s 00:00
global_conf.json.sx1250.AS923_1B 100% 3261 2.7MB/s 00:00
global_conf.json.sx1250.AS923_1C 100% 3186 2.7MB/s 00:00
global_conf.json.sx1250.AS923_1D 100% 3186 2.7MB/s 00:00
global_conf.json.sx1250.AS923_1E 100% 3186 3.4MB/s 00:00
global_conf.json.sx1250.AS923_1F 100% 3186 3.7MB/s 00:00
global_conf.json.sx1250.AS923_2 100% 3186 3.2MB/s 00:00
global_conf.json.sx1250.AS923_2A 100% 3186 2.1MB/s 00:00
global_conf.json.sx1250.AS923_3 100% 3186 3.4MB/s 00:00
global_conf.json.sx1250.AS923_3A 100% 3186 2.6MB/s 00:00
global_conf.json.sx1250.AS923_4 100% 3186 5.2MB/s 00:00
global_conf.json.sx1250.AS923_4A 100% 3186 2.3MB/s 00:00
global_conf.json.sx1250.AU915 100% 3133 4.4MB/s 00:00
global_conf.json.sx1250.AU915_SB1 100% 3133 2.8MB/s 00:00
global_conf.json.sx1250.AU915_SB2 100% 3133 4.1MB/s 00:00
global_conf.json.sx1250.CN470 100% 4110 3.0MB/s 00:00
global_conf.json.sx1250.CN470_A 100% 4110 5.7MB/s 00:00
global_conf.json.sx1250.EU868 100% 3932 2.6MB/s 00:00
global_conf.json.sx1250.EU868_A 100% 3932 5.6MB/s 00:00
global_conf.json.sx1250.EU868_B 100% 3932 2.9MB/s 00:00
global_conf.json.sx1250.EU868_C 100% 3932 2.7MB/s 00:00
global_conf.json.sx1250.EU868_D 100% 3932 3.4MB/s 00:00
global_conf.json.sx1250.EU868_E 100% 3932 4.4MB/s 00:00
global_conf.json.sx1250.EU868_F 100% 3932 4.6MB/s 00:00
global_conf.json.sx1250.IN865 100% 3745 3.1MB/s 00:00
global_conf.json.sx1250.IN865_A 100% 3745 3.2MB/s 00:00
global_conf.json.sx1250.KR920 100% 3303 2.3MB/s 00:00
global_conf.json.sx1250.KR920_A 100% 3303 3.1MB/s 00:00
global_conf.json.sx1250.RU864_A 100% 3901 3.5MB/s 00:00
global_conf.json.sx1250.US915 100% 4324 5.3MB/s 00:00
global_conf.json.sx1250.US915_SB2 100% 4324 4.7MB/s 00:00
scp: stat local "global_conf.json.sx1257.*": No such file or directory
make[1]: *** [Makefile:66: install_conf] Error 255
make[1]: Leaving directory '/home/pi/sx1302_hal/packet_forwarder'
make: *** [Makefile:42: install_conf] Error 2

@qwick745
Copy link
Author

qwick745 commented May 17, 2024

I'm on a raspberry pi 4, fresh install of 64 bit lite OS, follow the guide with commands
sudo raspi-config
settings as noted in guide, reboot
sudo dphys-swapfile swapoff
sudo nano /etc/dphys-swapfile
edit swapsize to 1024 as noted, reboot
sudo apt update && sudo apt upgrade -y
sudo apt install git jq -y
I skipped the docker stuff since that's not needed for gateway-rs now
git clone https://github.com/helium/sx1302_hal.git
cd sx1302_hal
make clean all
make install
make install_conf
after entering my password the 3rd time in this step is when it throws the 4 error lines posted in the previous message starting "scp:"

@maco2035
Copy link
Owner

Can you see if there is the file? global_conf.json.sx1257

@qwick745
Copy link
Author

I don't see it in either the sx1302_hal folder or the bin subfolder, but I do see a bunch of sx1250 files as pasted below (I think I'd be using the global_conf.json.sx1250.US915 file anyway but want to be sure things work correctly as I set everything up).

And if I am using the sx1250.US915 conf file - do you know if I should be using the SB2 version or not for Helium network?

pi@Pi:~/sx1302_hal $ ls

bin        libtools     Makefile          readme.md   tools         util_net_downlink
libloragw  LICENSE.TXT  packet_forwarder  target.cfg  util_chip_id  VERSION

pi@Pi:~/sx1302_hal/bin $ ls

chip_id                           global_conf.json.sx1250.AS923_3A   global_conf.json.sx1250.EU868_D    reset_lgw.sh
global_conf.json.sx1250.AS923     global_conf.json.sx1250.AS923_4    global_conf.json.sx1250.EU868_E    test_loragw_cal
global_conf.json.sx1250.AS923_1   global_conf.json.sx1250.AS923_4A   global_conf.json.sx1250.EU868_F    test_loragw_capture_ram
global_conf.json.sx1250.AS923_1A  global_conf.json.sx1250.AU915      global_conf.json.sx1250.IN865      test_loragw_counter
global_conf.json.sx1250.AS923_1B  global_conf.json.sx1250.AU915_SB1  global_conf.json.sx1250.IN865_A    test_loragw_gps
global_conf.json.sx1250.AS923_1C  global_conf.json.sx1250.AU915_SB2  global_conf.json.sx1250.KR920      test_loragw_hal_rx
global_conf.json.sx1250.AS923_1D  global_conf.json.sx1250.CN470      global_conf.json.sx1250.KR920_A    test_loragw_hal_tx
global_conf.json.sx1250.AS923_1E  global_conf.json.sx1250.CN470_A    global_conf.json.sx1250.RU864_A    test_loragw_i2c
global_conf.json.sx1250.AS923_1F  global_conf.json.sx1250.EU868      global_conf.json.sx1250.US915      test_loragw_reg
global_conf.json.sx1250.AS923_2   global_conf.json.sx1250.EU868_A    global_conf.json.sx1250.US915_SB2  test_loragw_spi
global_conf.json.sx1250.AS923_2A  global_conf.json.sx1250.EU868_B    lora_pkt_fwd                       test_loragw_spi_sx1250
global_conf.json.sx1250.AS923_3   global_conf.json.sx1250.EU868_C    net_downlink

@Incoinas
Copy link

A few of us have gotten an error lately when trying to use this guide to install the packet forwarder.

When running the command "make install_conf" we get the error

scp: stat local "global_conf.json.sx1257.*": No such file or directory make[1]: *** [Makefile:66: install_conf] Error 255 make[1]: Leaving directory '/home/pi/sx1302_hal/packet_forwarder' make: *** [Makefile:42: install_conf] Error 2

Does an sx1257 set of files need to copied in from somewhere else or something? Issue is also posted here.

Hi mate, did you manage finally make your hotspot up and running?? I hope yes 😉

@qwick745
Copy link
Author

qwick745 commented Jun 1, 2024

I did eventually get this working. I'm not sure why the sx1257 file that used to be copied in with the sx1302 project isn't there anymore, but it's not... The 2 solutions I found were to either remove the line that tries to copy in that file, or put a file there for it to find (real or just a bogus empty file).

sudo nano ~/sx1302_hal/packet_forwarder/Makefile
comment out the line
@scp global_conf.json.sx1257.* $(TARGET_USR)@$(TARGET_IP):$(TARGET_DIR)

I had an old packet_forwarder from a few years ago I checked and it did have a single sx1257 file on it, so I used WinSCP to copy that file in to the sx1302_hal/packet_forwarder folder and it worked fine. I think you could also just create a blank file to make it happy with
touch ~/sx1302_hal/packet_forwarder/global_conf.json.sx1257.EU868
This is the file I pulled from my old packet forwarder if anyone does want it, just remove the .txt extension as I had to add that for github to allow me to upload it.
global_conf.json.sx1257.EU868.txt

@Incoinas
Copy link

I did eventually get this working. I'm not sure why the sx1257 file that used to be copied in with the sx1302 project isn't there anymore, but it's not... The 2 solutions I found were to either remove the line that tries to copy in that file, or put a file there for it to find (real or just a bogus empty file).

sudo nano ~/sx1302_hal/packet_forwarder/Makefile comment out the line @scp global_conf.json.sx1257.* $(TARGET_USR)@$(TARGET_IP):$(TARGET_DIR)

I had an old packet_forwarder from a few years ago I checked and it did have a single sx1257 file on it, so I used WinSCP to copy that file in to the sx1302_hal/packet_forwarder folder and it worked fine. I think you could also just create a blank file to make it happy with touch ~/sx1302_hal/packet_forwarder/global_conf.json.sx1257.EU868 This is the file I pulled from my old packet forwarder if anyone does want it, just remove the .txt extension as I had to add that for github to allow me to upload it. global_conf.json.sx1257.EU868.txt

Thank you for sharing. Still struggling as I just have no idea on how do I install "global_conf.json.sx1257.EU868.txt"
Can you please help me here?

@qwick745
Copy link
Author

qwick745 commented Jun 25, 2024

Did you try what I mentioned in my previous message?

touch ~/sx1302_hal/packet_forwarder/global_conf.json.sx1257.EU868

There's no file you need to install, the software just needs to see that a file with that extension exists for it to copy

@Incoinas
Copy link

Did you try what I mentioned in my previous message?

touch ~/sx1302_hal/packet_forwarder/global_conf.json.sx1257.EU868

There's no file you need to install, the software just needs to see that a file with that extension exists for it to copy

Thank you for your reply. I am newbie to Raspberry Pi. When Ssh into my pi, where do I paste the below code please? If I understand correctly, I need to modify file and add the line, but I am not sure where to go..... Thank you again for your help.

touch ~/sx1302_hal/packet_forwarder/global_conf.json.sx1257.EU868

@qwick745
Copy link
Author

When you SSH in to your Pi you paste that text to the command line and hit enter. It doesn't go in a file, it's a command you run which will create an empty file with that name which should be enough for the make command to be happy. This is assuming you aren't in Europe or an area where you would need to use the EU868 frequency, because if you were you wouldn't want to use a dummy file but would need to download the file I linked in my previous post and copy it to the ~sx1302_hal/packet_forwarder folder on the Pi.

@Incoinas
Copy link

Ok, thank you again. Unfortunately I am in Europe and would need the folder. I downloaded it removing .txt part and it still opens as txt. So what woupld be a procedure to add it to my miner, please? Once again thank you for your help.

@qwick745
Copy link
Author

qwick745 commented Jun 26, 2024

It's not a folder, it is just a basic text file. I had to add the .txt extension for github to allow it to be uploaded so you need to either delete the .txt on the Pi or before you copy it over.
Option 1:
I'm on windows so I usually use WinSCP to copy files to my Pi. So download the .txt file, open WinSCP, connect to the same IP you SSH to, then just drag and drop the file from the left pane to the right, then you should be able to Rt click on the file and delete the .txt extension if you haven't already.
Option 2:
On the Pi run wget https://github.com/user-attachments/files/15522999/global_conf.json.sx1257.EU868.txt to download it wherever, then mv global_conf.json.sx1257.EU868.txt ~/sx1302_hal/packet_forwarder/global_conf.json.sx1257.EU868 which will put it in the correct folder and remove the .txt extension at the same time.

@Incoinas
Copy link

Hi. Option 2 worked well. Thank you.
Unfortunately when testing packet forwarder now I get a message :
ERROR: [main] failed to start the concentrator

It seems known error for EU region.
I am tired of all this, can't get it working 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants