Installing and using the V3 stack as a private service - I've got stuck

Hi, i’ve been trying today to install the V3 gateway stack, but running into a problem at step 1.
Docker, docker-compose are installed, and i’m using the docker-compose.yml file that is in teh git repo.
Im getting this error. ( debian 9 server )

admin@ip-172-31-30-168:~$ docker-compose pull
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here
in “./docker-compose.yml”, line 529, column 26

Any ideas whats causing this…

see also the slack channel for V3 -


So, I’ve bumbled through this… having never used docker before, its a first!

I’ve installed the v3 stack on an Amazon EC2 micro.t2 instance which is running debian version 9. The instructions are mostly good, In the getting started guide, it says to use the provided. docker-compose.yml . I had assumed ( wrongly ) that docker would pull all the files it needs when you use this. that is not the case, you needed to have cloned the github repo first. (doh). Once you’ve done that, then the instructions work as expected.

I’ll submit a pull request with the addition of a single line in the file under prerequisites;

  • Clone the lorawan stack from github

git clone

because it was installed in AWS, I did need to consider what network ports are configured for the security groups. The details are usefully in docs/

While I was able to register a single App, and a device, and point a single gateway to it, Its a bit more ‘raw’ than the public interface ( which is very polished ).

Things i need to work out;

How do you set up the network server so it runs like a service ( like any normal service ) any time it gets rebooted
How to see joins/data etc like you can on the public interface
how to more effectively add/remove devices/apps etc. It seems quite long winded to use the docker-compose commands. I have not figured out how to use the CLI on this.

Anyway it seems like progress

I’m still struggling with the CLI. I hope someone is able to point me in the right direction.

I followed the instructions at to login.

This is what i did, and the response i got. Since I dont’ have a local browser on the server, i connected to this address using the url https://mypublicip:8885[ can you modify something so it uses publicly reachable names? ]

admin@ip-172-31-30-168:~/lorawan-stack$ docker-compose exec stack ttn-lw-cli login
INFO Please go to https://localhost:8885/oauth/authorize?client_id=cli&response_type=code
INFO Waiting for your authorization…
INFO Got OAuth access token

The message “Got OAuth access token” was displayed in the web browser, and the on the console of the Server, i get the prompt back.

Whats next? How do i use this CLI? Are the commands for the CLI like the ones suggested like this?

docker-compose exec stack ttn-lw-cli end-devices create --device-id dev1 --dev-eui 0004A30B001C0530 --join-eui 800000000000000C --application-id app1 --frequency_plan_id EU_863_870 --root_keys.app_key.key 752BAEC23EAE7964AF27C325F4C23C9A --lorawan_phy_version 1.0.2-b --lorawan_version 1.0.2

Is there any more documetation? At this point i’m stuck, my google foo has run out of power, ( I’m thinking i’m searching for the wrong thign ).

Hi, I was blocked by the login also.
When I run log in command

docker-compose exec stack ttn-lw-cli login

it will prompt to open the following link to complete the authentication:

WARN No access token present                 
INFO Please go to https://localhost:8885/oauth/authorize?client_id=cli&response_type=code
INFO Waiting for your authorization...

Then I open the link through browser, and input the admin password, nothing happens.
From the server terminal, I can see the following log:

stack_1      |  ERROR Request error                            duration=10.210223ms method=GET namespace=web remote_addr= request_id=01D4PH8D7VYWNHQX7BS32SZSDT response_size=1645 status=500 url=/oauth/authorize?client_id=cli&response_type=code
stack_1      |   INFO Request handled                          duration=15.132103ms method=GET namespace=web remote_addr= request_id=01D4PH8DGME8595WHBZX72X4C5 response_size=237 status=200 url=/oauth/api/me

Can anyone help?

@vinzen01 please see the Getting Started; there’s no (more) ttn-lw-cli exec in the container anymore.

This person is having the same issue as i described in issue 179. The use of the CLI/ the Auth process is not immediatley apparent, unless you know what Oauth is.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.