Running V3 on Centos

(Matthew Macdonald-Wallace) #1

Hey folks, I’ve already posted this over in the Slack channels, but for those of you who prefer forums, here are my notes on getting v3 up and running on CentOS 7 without any of that docker stuff… :wink:

NOTE: I’m having trouble with the auth for the cli, but that’s because I misconfigured it when I created the oauth account. I’ll fix that in the morning.

Notes so far:

• Make sure you are using the latest version of nodejs by installing
• Also check that you are running at least version 5 of Redis (CentOS 7 by default comes with version 3, this won’t work, so install from REMI: )
• Cockroach DB doesn’t have a proper installer yet. We’re working on an Ansible role ( but for now I’d recommend using the tasks/main.yml file from there as a guide to installing and running Cockroach
• Once the dependencies are satisfied, build the code: export NODE_ENV=production && nvm use 11 && make build-all
• Make the dev certs if you don’t have any TLS certificates to hand: make dev.certs
• Run the various commands, but substitute go run ./cmd/ttn-lw-<BINARY_NAME> for the docker exec part of each command (so go run ./cmd/ttn-lw-stack is-db create-admin-user --id admin --email admin@localhost to create the admin user etc)
• Run the stack: go run ./cmd/ttn-lw-stack start
• Run the CLI commands to log in: go run ./cmd/ttn-lw-cli login --oauth-server-address http://<YOUR IP ADDRESS HERE>:1885

You should now have a working TTN V3 Server.

I’ll try and write this up properly whilst waiting for my plane tomorrow - next step is to get the gateway from today talking to it, but I can’t seem to see where I’d change the LoRaWAN Server Address on the firmware…

TTN network stack V3 central 1