RAKWireless / rak_common_for_gateway

215 stars 126 forks source link

global_conf.json: No such file or directory #22

Closed nedhorning closed 3 years ago

nedhorning commented 4 years ago

I'm getting this error message: can't read /opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/global_conf.json: No such file or directory

when I run sudo gateway-config” => Setup RAK Gateway LoRa concentrator for a Chirpstack server. I was running this last week without any problem so I expect the update yesterday introduced an error.

Scobber commented 4 years ago

are you using chirpstack or things network? the update yesterday seemed to address only a things network bug.

and I would assume that updating the software probably deleted your configuration. and reset it all to default.

nedhorning commented 4 years ago

I am using ChirpStack. I get the error after setting the “SERVIR_IP” to“127.0.0.1” in the "ChirsStack Channel-plan configuration"

For what it's worth, I set this up using a fresh RPi image

Ned

On 6/29/20 10:39 AM, Scobber wrote:

EXTERNAL SENDER

are you using chirpstack or things network? the update yesterday seemed to address only a things network bug.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRAKWireless%2Frak_common_for_gateway%2Fissues%2F22%23issuecomment-651164665&data=02%7C01%7Chorning%40amnh.org%7Cffe36e947d39447de76f08d81c3a4547%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C1%7C637290383887855615&sdata=Gzk1t%2B8o%2F8KAC7fa%2F%2FL2wI8Mocvg7ky70GGHbS36mNk%3D&reserved=0, or unsubscribe https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAANX5EVZ4MFFBPZQS4CYGVTRZCRTFANCNFSM4OLI3LRA&data=02%7C01%7Chorning%40amnh.org%7Cffe36e947d39447de76f08d81c3a4547%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C1%7C637290383887865617&sdata=N%2FO4tVRGRN4RsBvZEkeVi7nySE5FH8QAoLAOySKCDuA%3D&reserved=0.

Scobber commented 4 years ago

can you post that file you modified. also if you can also post the output of /var/log/daemon.log

perhaps its not validating correctly. with lorawan you have two files in that folder, the global and a local conf. the local overwrites the json dictionary from global

nedhorning commented 4 years ago

I attached the daemon.log file.

I didn't modify any files on my side. This was a clean install using a freshly burned RPi OS image. In my original post when I wrote "I expect the update yesterday introduced an error." I was referring to the  update on the rak_common_for_gateway repo. Sorry for not being clear. I have no idea if that was the issue but it was the only change I am aware of.

Ned

On 6/30/20 6:56 AM, Scobber wrote:

EXTERNAL SENDER

can you post that file you modified. also if you can also post the output of /var/log/daemon.log

perhaps its not validating correctly. with lorawan you have two files in that folder, the global and a local conf. the local overwrites the json dictionary from global

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRAKWireless%2Frak_common_for_gateway%2Fissues%2F22%23issuecomment-651719866&data=02%7C01%7Chorning%40amnh.org%7Ce9d29f87bd3d4495faad08d81ce43543%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C0%7C637291113761350490&sdata=Kklv3qjp6hK00nlrjNn5S5UlKLvwdGlKs%2BbBfgIIxUY%3D&reserved=0, or unsubscribe https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAANX5ERRBWYAPYNBLIUPF2DRZHAE5ANCNFSM4OLI3LRA&data=02%7C01%7Chorning%40amnh.org%7Ce9d29f87bd3d4495faad08d81ce43543%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C0%7C637291113761370481&sdata=mFaCuRITHZox5hDzCwxaKfgTJ6AfsWU5mpUP9EwLk8c%3D&reserved=0.

nedhorning commented 4 years ago

Here's something else that might be related. When I run the install.sh script I get the following messages in the last two lines in the terminal after the "Install ChirpStack success!" message. I don't recall if I got these messages in the past.

./install_normal.sh: line 56: RAK7243: command not found ./install_normal.sh: line 61: popd: directory stack empty

Scobber commented 4 years ago

paste the output of

sudo gateway-config

nedhorning commented 4 years ago

For what it's worth I do not have this issue when using the "RAK7243_Latest_Firmware" image or the image for ChirpStack Gateway OS.

Thanks for looking into this.

On 7/1/20 6:53 PM, Scobber wrote:

EXTERNAL SENDER

paste the output of

sudo gateway-config

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRAKWireless%2Frak_common_for_gateway%2Fissues%2F22%23issuecomment-652684525&data=02%7C01%7Chorning%40amnh.org%7Cfe99b0fb741c43abbfd808d81e11a30e%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C0%7C637292408387539769&sdata=wqefUycnZk3sgSmVDVz9CormV8mQuYLoDZHDljy2BXc%3D&reserved=0, or unsubscribe https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAANX5EWOBYBACJ6S2BYFQXTRZO5AHANCNFSM4OLI3LRA&data=02%7C01%7Chorning%40amnh.org%7Cfe99b0fb741c43abbfd808d81e11a30e%7Cbe0003e8c6b9496883aeb34586974b76%7C0%7C0%7C637292408387549729&sdata=BaVktcLRDI3k1xCw%2FA1GUMGSftPuL%2FWXzRLL7R4wXX0%3D&reserved=0.

RAKWireless commented 4 years ago

Here's something else that might be related. When I run the install.sh script I get the following messages in the last two lines in the terminal after the "Install ChirpStack success!" message. I don't recall if I got these messages in the past.

./install_normal.sh: line 56: RAK7243: command not found ./install_normal.sh: line 61: popd: directory stack empty

Hello @nedhorning . I'm sorry I discovered this bug so late. I have fixed it today.