lora_pkt_fwd failed to find any configuration file
Home › Forums › Lora Network Server › lora_pkt_fwd failed to find any configuration file
- This topic has 5 replies, 2 voices, and was last updated 6 years, 5 months ago by
Brian Roberts.
-
AuthorPosts
-
October 25, 2018 at 3:59 pm #26650
Brian Roberts
ParticipantAfter booting my Multitech Conduit, the lora_pkt_fwd doesn’t start. The /var/log/lora-pkt-fwd-1.log reports the following.
mtcdt:/var/log$ cat lora-pkt-fwd-1.log *** Beacon Packet Forwarder for Lora Gateway *** Version: 4.0.1 *** Lora concentrator HAL library version info *** Version: 5.0.1; *** INFO: Little endian host ERROR: [main] failed to find any configuration file named global_conf.json, local_conf.json OR debug_conf.json
If I then run
sudo /etc/init.d/lora-network-server restart
, the script will successfully start the lora_pkt_fwd.Versions are listed below.
mtcdt:/var/log$ cat /etc/mlinux-version mLinux 4.0.1 Built from branch: HEAD Revision: ea6ba1e5fb287003fea33522af39a771102713b2
opkg list | grep lora lora-gateway-geolocation-utils - 5.1.0-r3.0 lora-gateway-utils - 5.0.1-r10.0 lora-logging - 1.0-r1.0 lora-network-server - 2.1.5-r5.0 lora-packet-forwarder - 4.0.1-r12.0 lora-packet-forwarder-geolocation - 5.1.0-r2.0 lora-packet-forwarder-usb - 1.4.1-r11.0 lora-query - 1.0.4-r1.0
Also, /opt/lora/global_conf.json does exist.
Any ideas? Please let me know if there is any other information I can supply.
-
This topic was modified 6 years, 5 months ago by
Brian Roberts.
October 26, 2018 at 7:18 am #26652Jason Reiss
KeymasterAre you trying to run in packet forwarder only mode?
The init script is then /etc/init.d/lora-packet-forwarder
Did you follow these instructions?
Starting the network server with /etc/init.d/lora-network-server will read /var/config/lora/lora-network-server.conf and create a configuration for the packet forwarder. This is why the packet forwarder can be started with this command.
The lora-packet-forwarder script will look for a /var/config/lora/global_conf.json file to use as configuration.
October 26, 2018 at 8:07 am #26653Brian Roberts
ParticipantI’m not trying to run in packet forwarder only mode. I’m running the lora-network-server locally on the Multitech Conduit.
I was finally able to fix the issue. In
/etc/init.d/lora-network-server
, indo_start()
, I changed thesleep 2
before# start packet forwarder
tosleep 20
.I’m not sure why the extra delay fixed the issue. Maybe some kind of race condition that prevented the packet forwarder from seeing the configuration file.
-
This reply was modified 6 years, 5 months ago by
Brian Roberts.
October 26, 2018 at 8:19 am #26655Brian Roberts
ParticipantNote that I have /etc/init.d/lora-network-server configured to run in init.d with a sequence number of 80. I do not have /etc/init.d/lora-packet-forwarder configured to run at startup.
October 26, 2018 at 8:20 am #26656Jason Reiss
KeymasterYou may want to use a process monitor, monit is included in mlinux, to ensure the packet forwarder is restarted if it quits for any reason.
October 26, 2018 at 8:21 am #26657Brian Roberts
ParticipantYeah, good idea. I will do that.
-
This topic was modified 6 years, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.