Unable to access lora-app-server through web UI


#1

Hi,
I am not able to access the lora app server in https://localhost:8080/.Please let me know what should I do.I am able to run the lora app server but not able to access the UI on port 8080.


#2

The LoRa App Server logs would be the first place to start debugging your issue. Confirm that it actually started and is listening on port 8080.


#3

I am getting lora-app-server log as below
$ sudo journalctl -f -n 100 -u lora-app-server
– Logs begin at Thu 2017-11-30 09:31:44 IST. –
Nov 30 16:58:49 iwave lora-app-server[7256]: time=“2017-11-30T16:58:49+05:30” level=info msg="setup redis connection pool"
Nov 30 16:58:49 iwave lora-app-server[7256]: time=“2017-11-30T16:58:49+05:30” level=info msg=“handler/mqtt: connecting to mqtt broker” server="tcp://localhost:1883"
Nov 30 16:58:49 iwave lora-app-server[7256]: time=“2017-11-30T16:58:49+05:30” level=info msg="applying database migrations"
Nov 30 16:58:49 iwave lora-app-server[7256]: time=“2017-11-30T16:58:49+05:30” level=info msg="handler/mqtt: connected to mqtt broker"
Nov 30 16:58:49 iwave lora-app-server[7256]: time=“2017-11-30T16:58:49+05:30” level=info msg=“handler/mqtt: subscribling to tx topic” topic="application/+/node/+/tx"
Nov 30 16:58:49 iwave lora-app-server[7265]: time=“2017-11-30T16:58:49+05:30” level=info msg=“starting LoRa App Server” docs=“https://docs.loraserver.io/” version=0.14.2
Nov 30 16:58:49 iwave lora-app-server[7265]: time=“2017-11-30T16:58:49+05:30” level=info msg=“connecting to postgresql”


#4

The order of the logs seems a bit shuffled, please try the following to debug. Stop the lora-app-server service. Then in your console:

set -a
source /etc/default/lora-app-server
lora-app-server

That will give you all the logs :slight_smile:


#5

Thanks for your reply
I have executed the above command and am getting as below

INFO[0000] starting LoRa App Server docs=“https://docs.loraserver.io/” version=0.14.2
INFO[0000] connecting to postgresql
INFO[0000] setup redis connection pool
INFO[0000] handler/mqtt: connecting to mqtt broker server="tcp://localhost:1883"
INFO[0000] applying database migrations
INFO[0000] handler/mqtt: connected to mqtt broker
INFO[0000] handler/mqtt: subscribling to tx topic topic="application/+/node/+/tx"
FATA[0000] applying migrations error: pq: type “jsonb” does not exist handling 0017_integrations.sql

please tell me where i am going wrong

1


#6

pq: type “jsonb” does not exist handling 0017_integrations.sql

That looks like you don’t have PostgreSQL 9.5+ installed. Please refer to the requirements: https://docs.loraserver.io/install/requirements/


#7

Thanks for your reply.
As you have suggested i have installed postgresql version 9.6 , but when i give “sudo service postgresql start” command am getting the below error

  • Restarting PostgreSQL 9.6 database server
  • Failed to issue method call: Unit postgresql@9.6-main.service failed to load: No such file or directory. See system logs and ‘systemctl status postgresql@9.6-main.service’ for details.
    Please give me the solution

#8
sudo apt-get install redis-server
```sudo apt-get install redis-server