Failed to start ChirpStack Application Server

What do I have to do to get him started?

Dec 11 10:15:01 iavje systemd[1]: Stopped ChirpStack Application Server.
Dec 11 10:15:01 iavje systemd[1]: Started ChirpStack Application Server.
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="starting ChirpStack Application Server" docs="https://www.chirpstack.io/" version=3.6.1
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="storage: setting up storage package"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="storage: setup metrics"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="storage: setting up Redis pool"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="storage: connecting to PostgreSQL database"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="storage: applying PostgreSQL data migrations"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="storage: PostgreSQL data migrations applied" count=0
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="integration/mqtt: TLS config is empty"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="integration/mqtt: connecting to mqtt broker" server="tcp://localhost:1883"
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="api/as: starting application-server api" bind="0.0.0.0:8001" ca_cert= tls_cert= tls_key=
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=info msg="api/external: starting api server" bind="0.0.0.0:8080" tls-cert=/etc/chirpstack-application-server/cert.pem tls-key=/etc/chirpstack-application-server/key.pem
Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time="2019-12-11T10:15:01Z" level=fatal msg="open /etc/chirpstack-application-server/key.pem: permission denied"
Dec 11 10:15:01 iavje systemd[1]: chirpstack-application-server.service: Main process exited, code=exited, status=1/FAILURE
Dec 11 10:15:01 iavje systemd[1]: chirpstack-application-server.service: Failed with result 'exit-code'.
Dec 11 10:15:01 iavje systemd[1]: chirpstack-application-server.service: Service hold-off time over, scheduling restart.
Dec 11 10:15:01 iavje systemd[1]: chirpstack-application-server.service: Scheduled restart job, restart counter is at 5.
Dec 11 10:15:01 iavje systemd[1]: Stopped ChirpStack Application Server.
Dec 11 10:15:01 iavje systemd[1]: chirpstack-application-server.service: Start request repeated too quickly.
Dec 11 10:15:01 iavje systemd[1]: chirpstack-application-server.service: Failed with result 'exit-code'.
Dec 11 10:15:01 iavje systemd[1]: Failed to start ChirpStack Application Server.
Dec 11 10:19:04 iavje systemd[1]: Started ChirpStack Application Server.
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="starting ChirpStack Application Server" docs="https://www.chirpstack.io/" version=3.6.1
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="storage: setting up storage package"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="storage: setup metrics"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="storage: setting up Redis pool"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="storage: connecting to PostgreSQL database"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="storage: applying PostgreSQL data migrations"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="storage: PostgreSQL data migrations applied" count=0
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="integration/mqtt: TLS config is empty"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="integration/mqtt: connecting to mqtt broker" server="tcp://localhost:1883"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="api/as: starting application-server api" bind="0.0.0.0:8001" ca_cert= tls_cert= tls_key=
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="api/external: starting api server" bind="0.0.0.0:8080" tls-cert=/etc/chirpstack-application-server/cert.pem tls-key=/etc/chirpstack-application-server/key.pem
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="integration/mqtt: connected to mqtt broker"
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="integration/mqtt: subscribing to tx topic" qos=0 topic=application/+/device/+/tx
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="api/external: registering rest api handler and documentation endpoint" path=/api
Dec 11 10:19:04 iavje chirpstack-application-server[13192]: time="2019-12-11T10:19:04Z" level=info msg="api/js: starting join-server api" bind="0.0.0.0:8003" ca_cert= tls_cert= tls_key=

The message is in the logs :wink:

Dec 11 10:15:01 iavje chirpstack-application-server[13135]: time=“2019-12-11T10:15:01Z” level=fatal msg=“open /etc/chirpstack-application-server/key.pem: permission denied”
1 Like

I tried to change the owner of key.pem, but it didn’t work.
But after the reboot he worked.
Thanks.:grinning: