No Logfile from lora-gateway-bridge


#1

Hello!

I have installed a Lora-Gateway-Bridge on my Multitech MTCDT 246A Gateway following the instructions on
https://www.loraserver.io/lora-gateway-bridge/install/gateway/
http://www.multitech.net/developer/software/lora/conduit-mlinux-convert-to-basic-packet-forwarder/ and https://www.loraserver.io/lora-gateway-bridge/install/config/
On https://www.loraserver.io/guides/troubleshooting/gateway/ in section “LoRa Gateway Bridge receives data?” is described that the Lora-Gateway-Bridges logs into file /var/log/lora-gateway-bridge/lora-gateway-bridge.log. A created the directory lora-gateway-bridge, but there isn’t a logfile. Where is this to configure?.

Thanks in advance
Peter


#2

It describes two ways for getting the logs. Depending your setup, it is one or the other.


#3

I have read the instructions on website https://www.loraserver.io/lora-gateway-bridge/install/debian/. OS on the the Multitech GW is mLinux which supports start/stop through init.d. But directory /var/log/lora-gateway-bridge is empty.


#4

Same too me. I installed all the 4 modules (lora-app-server, lora-gateway-bridge, lora-geo-server, loraserver) but no logs are produced.
You got empty file. To me, for example, the file doesn’t exist:

root@loraserver:~# ls -l /var/log/loraserver/
totale 0

Can someone help us?


#5

Ah, ok. With systemd there are no log files we need a:
journalctl -u loraserver -f -n 50

In your case:
journalctl -u lora-gateway-bridge -f -n 50


#6

Sorry, but on mLinux runs no systemd and for this reason journalctl and systemctl are unknown commands. So there should be an logfile as described on website https://www.loraserver.io/lora-gateway-bridge/install/debian/.

init.d

All logs are written to /var/log/lora-gateway-bridge/lora-gateway-bridge.log . To view and follow this logfile:

tail -f /var/log/lora-gateway-bridge/lora-gateway-bridge.log

#7

The example that you give applies to the .deb packages, which does not apply for the Conduit.

There are no log written for the Conduit as the /var/log is (I believe) an in-memory file-system (as you don’t want to write to the NAND flash constantly). Given that the device only has 256MB which is used for booting the system + some in-memory FS mounts, there is not much space for writing logs.

You could also start the lora-gateway-bridge process manualy for debugging and use the -c flag to point it to the lora-gateway-bridge.toml file.