Main process exited, code=exited, status=1/FAILURE


#1

Hi,

I have install gateway bridge + loraserver + lora app server on a RPI3.
No problem with the GW bridge nor loraserver, but LoRa App Server return me some error in the log :

    Jun 11 11:57:36 raspberrypi systemd[1]: Started LoRa App Server.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jun 11 11:57:36 raspberrypi systemd[1]: Stopped LoRa App Server.
Jun 11 11:57:36 raspberrypi systemd[1]: Started LoRa App Server.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jun 11 11:57:36 raspberrypi systemd[1]: Stopped LoRa App Server.
Jun 11 11:57:36 raspberrypi systemd[1]: Started LoRa App Server.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
Jun 11 11:57:36 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jun 11 11:57:37 raspberrypi systemd[1]: Stopped LoRa App Server.
Jun 11 11:57:37 raspberrypi systemd[1]: Started LoRa App Server.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jun 11 11:57:37 raspberrypi systemd[1]: Stopped LoRa App Server.
Jun 11 11:57:37 raspberrypi systemd[1]: Started LoRa App Server.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jun 11 11:57:37 raspberrypi systemd[1]: Stopped LoRa App Server.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Start request repeated too quickly.
Jun 11 11:57:37 raspberrypi systemd[1]: Failed to start LoRa App Server.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
Jun 11 11:57:37 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.

I don’t understand this line of the tutorial :
https://www.loraserver.io/lora-app-server/install/debian/
“An other required setting you must change is application_server.external_api.jwt_secret.” What I must do ?

My Lora App Server dsn is :

dsn="postgres://loraserver_as:dbpassword@localhost/loraserver_as?sslmode=disable" 

I also add JWT :
jwt_secret=uxbpWQtBlxrWfHX+0wSmEt+/bqAFpPqU5hgmowYEO7o=

Thanks for your help !


#2

Try running lora-app-server from the command-line interface. It might give you more hints about why it is not starting :slight_smile:

lora-app-server --config /etc/lora-app-server/lora-app-server.toml

#3

Thanks for your help !

It say :

root@raspberrypi:~/lora_gateway# lora-app-server --config /etc/lora-app-server/lora-app-server.toml
FATA[0000] error loading config file config=/etc/lora-app-server/lora-app-server.toml error=“While parsing config: (177, 3): The following key was defined twice: application_server.external_api.jwt_secret.bind”

I think the problem is link to my first question :

I don’t understand this line of the tutorial :
https://www.loraserver.io/lora-app-server/install/debian/
“An other required setting you must change is application_server.external_api.jwt_secret.” What I must do ?

I not sure what I must do about the application_server.external…


#4

You must configure that value, see:

  ...

  # Settings for the "external api"
  #
  # This is the API and web-interface exposed to the end-user.

  ...

  # JWT secret used for api authentication / authorization
  # You could generate this by executing 'openssl rand -base64 32' for example
  jwt_secret=""

  ...

#5

Oups, It’s my fault, first I had not complete the jwt_secret. After some search I had complete it, but don’t know why, I also commented the line “[application_server.api]” and it was the problem !!

Now all is OK, my device can send data trought LoraWan.

Just some questions : where I must use the appeui ? I don’t see where I can use them. I know that on commercial GW I must provide DevEUI, AppKey and AppEUI but in this case I only used DevEUI and AppKey.


#6

Let’s not mix different questions in one topic :slight_smile: There is already an other topic covering this question when you search on AppEUI.


#7

After a reboot lora-app-server don’t start automatly (same error as before), but If I launch them with the command : lora-app-server --config /etc/lora-app-server/lora-app-server.toml all is ok

Error :

>     Jun 14 14:50:14 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:14 raspberrypi lora-app-server[1591]: time="2018-06-14T14:50:14Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:14 raspberrypi lora-app-server[1591]: time="2018-06-14T14:50:14Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:14 raspberrypi lora-app-server[1591]: time="2018-06-14T14:50:14Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:14 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:15 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:15 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:15 raspberrypi lora-app-server[1598]: time="2018-06-14T14:50:15Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:15 raspberrypi lora-app-server[1598]: time="2018-06-14T14:50:15Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:15 raspberrypi lora-app-server[1598]: time="2018-06-14T14:50:15Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:15 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:15 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:15 raspberrypi lora-app-server[1606]: time="2018-06-14T14:50:15Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:15 raspberrypi lora-app-server[1606]: time="2018-06-14T14:50:15Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:15 raspberrypi lora-app-server[1606]: time="2018-06-14T14:50:15Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:15 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:15 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:15 raspberrypi lora-app-server[1613]: time="2018-06-14T14:50:15Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:15 raspberrypi lora-app-server[1613]: time="2018-06-14T14:50:15Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:15 raspberrypi lora-app-server[1613]: time="2018-06-14T14:50:15Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:15 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:16 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:16 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:16 raspberrypi lora-app-server[1620]: time="2018-06-14T14:50:16Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:16 raspberrypi lora-app-server[1620]: time="2018-06-14T14:50:16Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:16 raspberrypi lora-app-server[1620]: time="2018-06-14T14:50:16Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:16 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Start request repeated too quickly.
>     Jun 14 14:50:16 raspberrypi systemd[1]: Failed to start LoRa App Server.
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:16 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:32 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:32 raspberrypi lora-app-server[1634]: time="2018-06-14T14:50:32Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:32 raspberrypi lora-app-server[1634]: time="2018-06-14T14:50:32Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:32 raspberrypi lora-app-server[1634]: time="2018-06-14T14:50:32Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:32 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:32 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:32 raspberrypi lora-app-server[1643]: time="2018-06-14T14:50:32Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:32 raspberrypi lora-app-server[1643]: time="2018-06-14T14:50:32Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:32 raspberrypi lora-app-server[1643]: time="2018-06-14T14:50:32Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:32 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:32 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:32 raspberrypi lora-app-server[1650]: time="2018-06-14T14:50:32Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:32 raspberrypi lora-app-server[1650]: time="2018-06-14T14:50:32Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:32 raspberrypi lora-app-server[1650]: time="2018-06-14T14:50:32Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:32 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:33 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:33 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:33 raspberrypi lora-app-server[1659]: time="2018-06-14T14:50:33Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:33 raspberrypi lora-app-server[1659]: time="2018-06-14T14:50:33Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:33 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:33 raspberrypi systemd[1]: Started LoRa App Server.
>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=info msg="starting LoRa App Server" docs="https://www.loraserver.io/" version=1.0.1
>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=info msg="connecting to postgresql"
>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=info msg="setup redis connection pool"
>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=error msg="handler/mqtt: couldn't load MQTT TLS key pair: open /root/cert.pem: permission denied"
>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=fatal msg="error loading mqtt certificate files" ca_cert= error="open /root/cert.pem: permission denied" tls_cert=/root/cert.pem tls_key=/root/key.pem
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
>     Jun 14 14:50:33 raspberrypi systemd[1]: Stopped LoRa App Server.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Start request repeated too quickly.
>     Jun 14 14:50:33 raspberrypi systemd[1]: Failed to start LoRa App Server.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Unit entered failed state.
>     Jun 14 14:50:33 raspberrypi systemd[1]: lora-app-server.service: Failed with result 'exit-code'.

Do you know why ??

Thanks :slight_smile:


#8

I believe here’s the answer:

>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=error msg="handler/mqtt: couldn't load MQTT TLS key pair: open /root/cert.pem: permission denied"
>     Jun 14 14:50:33 raspberrypi lora-app-server[1667]: time="2018-06-14T14:50:33Z" level=fatal msg="error loading mqtt certificate files" ca_cert= error="open /root/cert.pem: permission denied" tls_cert=/root/cert.pem tls_key=/root/key.pem

#9

I must change my glasses !!! Don’t see this lines.

Where is the right place to put them ? I see the files are property of root, which user and/or group I must put for this files ?


#10

The answer :

mv cert.pem key.pem /etc/lora-app-server/certs
cd /etc/lora-app-server/certs
chmod 640 cert.pem
chmod 640 key.pem
chown appserver:appserver cert.pem
chown appserver:appserver key.pem

#11

Yeah, that should do. If you go to production and choose to use Let’s Encrypt certificates, just be careful as by default the certbot will position them at /etc/letsencrypt/live/your-domain/ as root on renewal, so you’ll maybe have to add some hook to move certs or rewrite permissions after it.


#12

Hi Guys, I think a have a similar issue, but I’m really struggling here.
I have completed the instructions and the gateway bridge and the loraserver are fine, however, my issue is with the lora-app-server:
When I execute: journalctl -u lora-app-server -f -n 50

– Logs begin at Thu 2018-06-28 14:19:46 BST. –
Jul 03 13:24:50 debian systemd[1]: Started LoRa App Server.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:24:50 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:24:50 debian systemd[1]: Started LoRa App Server.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:24:50 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Start request repeated too quickly.
Jul 03 13:24:50 debian systemd[1]: Failed to start LoRa App Server.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:24:50 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:42:19 debian systemd[1]: Started LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:42:19 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: Started LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:42:19 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: Started LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:42:19 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: Started LoRa App Server.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:42:19 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:42:20 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:42:20 debian systemd[1]: Started LoRa App Server.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Service hold-off time over, scheduling restart.
Jul 03 13:42:20 debian systemd[1]: Stopped LoRa App Server.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Start request repeated too quickly.
Jul 03 13:42:20 debian systemd[1]: Failed to start LoRa App Server.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Unit entered failed state.
Jul 03 13:42:20 debian systemd[1]: lora-app-server.service: Failed with result ‘exit-code’.

and when i execute: lora-app-server --config /etc/lora-app-server/lora-app-server.toml

FATA[0000] error loading config file config=/etc/lora-app-server/lora-app-server.toml error=“While parsing config: (186, 3): The following key was defined twice: application_server.external_api.jwt_secret”

i already used “openssl rand -base64 32” and updated the “jwt_secret=”

any ideas please??

Many thanks


#13

I thinks that explains it all :slight_smile:


#14

Thanks for your fast response (as usual :slight_smile:)

I have already used the “openssl rand -base64 32” and updated the “jwt_secret=”
is there anything that i need to do in order for this to take effect except saving the lora-app-server.toml file?

Cheers


#15

The error says you have defined it twice in your config file, it should only be there once. So you have to remove the duplicate.


#16

@brocaar @iegomez

Why is my https crossed over when inserting the key and cert on lora-app-server from the commando

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 90 -nodes

03

The certificate is not accepted


#17

If you are using a self-signed certificate you need to tell your browser to trust it. How to do that should be browser specific.