brocaar / chirpstack-network-server

ChirpStack Network Server is an open-source LoRaWAN network-server.
https://www.chirpstack.io
MIT License
1.5k stars 546 forks source link

Set enabled_uplink_channels as environment variable in docker-compose #487

Closed jceloria closed 4 years ago

jceloria commented 4 years ago

What happened?

I configured my docker-compose file with environment variables which work fine, I then attempted to configure enabled_uplink_channels by setting the NETWORK_SERVER__NETWORK_SETTINGS__ENABLED_UPLINK_CHANNELS environment variable. I run docker-compose up and the network-server fails to start

What did you expect?

The network-server to start successfully with the applied configuration

Steps to reproduce this issue

Steps:

  1. configure the network-server service in docker-compose.yaml with the following:
    services:
    network-server:
    environment:
    - NETWORK_SERVER__NETWORK_SETTINGS__ENABLED_UPLINK_CHANNELS=[0, 1, 2, 3, 4, 5, 6, 7]
    ...
  2. run: docker-compose up

Could you share your log output?

time="2020-06-19T15:17:09Z" level=warning msg="No configuration file found, using defaults. See: https://www.chirpstack.io/network-server/install/config/"
time="2020-06-19T15:17:09Z" level=fatal msg="unmarshal config error" error="1 error(s) decoding:\n\n* error decoding 'network_server.network_settings.enabled_uplink_channels': json: cannot unmarshal number into Go value of type map[string]interface {}"

Your Environment

Component Version
Application Server v3.10.0
Network Server v3.9.0
Gateway Bridge v3.8.0
jceloria commented 4 years ago

Never mind, no quotes, no spaces... - NETWORK_SERVER__NETWORK_SETTINGS__ENABLED_UPLINK_CHANNELS=0,1,2,3,4,5,6,7,64