Howto add a "network-server" using web interface when server setup using docker?


#1

hi dears,

I just followed the instructions to bring up a lora server running using docker image.

with the docker-compose.yml from https://www.loraserver.io/install/docker/ by default.

I can login to web interface using https://192.168.10.110:8080, but when adding a so-called “network-server” I’m lost.

what is need to be typed in ??

“Network-server server”

(the hint is The hostname:IP of the network-server.)

I have tried 192.168.10.110:8000, 192.168.10.110:8001, 192.168.10.110:8003, but none of them getting the network server creation success.

I have a red notice bar appeared in web:

“Error context deadline exceeded (code: 2)”

And the message from terminal like bellow:

appserver_1      | time="2018-04-03T07:13:55Z" level=warning msg="creating insecure network-server client" server="192.168.10.117:8000"
appserver_1      | time="2018-04-03T07:13:55Z" level=warning msg="grpc: addrConn.createTransport failed to connect to {192.168.10.117:8000 0  <nil>}. Err :connection error: desc = \"transport: Error while dialing dial tcp 192.168.10.117:8000: getsockopt: connection refused\". Reconnecting..."
appserver_1      | time="2018-04-03T07:13:56Z" level=warning msg="Failed to dial 192.168.10.117:8000: context canceled; please retry."
appserver_1      | time="2018-04-03T07:13:56Z" level=error msg="finished unary call with code Unknown" error="rpc error: code = Unknown desc = context deadline exceeded" grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServer grpc.start_time="2018-04-03T07:13:55Z" grpc.time_ms=505.07 peer.address="127.0.0.1:43506" span.kind=server system=grpc

can anyone help me ?


#2

hi,

I have docker-compose down and up again, and the error is the same:

.....
Creating loraserver_gatewaybridge_1 ... done
Attaching to loraserver_postgresql_ns_1, loraserver_appserver_1, loraserver_loraserver_1, loraserver_mosquitto_1, loraserver_postgresql_as_1, loraserver_gatewaybridge_1, loraserver_redis_1
postgresql_ns_1  | The files belonging to this database system will be owned by user "postgres".
postgresql_ns_1  | This user must also own the server process.
postgresql_ns_1  | 
postgresql_ns_1  | The database cluster will be initialized with locale "en_US.utf8".
postgresql_ns_1  | The default database encoding has accordingly been set to "UTF8".
postgresql_ns_1  | The default text search configuration will be set to "english".
postgresql_ns_1  | 
postgresql_ns_1  | Data page checksums are disabled.
postgresql_ns_1  | 
postgresql_ns_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
appserver_1      | time="2018-04-03T07:59:43Z" level=warning msg="Deprecation warning! no configuration file found, falling back on environment variables. Update your configuration, see: https://docs.loraserver.io/lora-app-server/install/config/"
appserver_1      | time="2018-04-03T07:59:43Z" level=info msg="starting LoRa App Server" docs="https://docs.loraserver.io/" version=3e71290
appserver_1      | time="2018-04-03T07:59:43Z" level=info msg="connecting to postgresql"
postgresql_ns_1  | creating subdirectories ... ok
appserver_1      | time="2018-04-03T07:59:43Z" level=error msg="ping database error, will retry in 2s: dial tcp: lookup postgresql_as on 127.0.0.11:53: no such host"
loraserver_1     | time="2018-04-03T07:59:44Z" level=warning msg="Deprecation warning! no configuration file found, falling back on environment variables. Update your configuration, see: https://docs.loraserver.io/loraserver/install/config/"
postgresql_as_1  | The files belonging to this database system will be owned by user "postgres".
postgresql_as_1  | This user must also own the server process.
postgresql_as_1  | 
appserver_1      | time="2018-04-03T07:59:47Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.6:5432: getsockopt: connection refused"
postgresql_ns_1  | selecting default max_connections ... 100
postgresql_as_1  | The database cluster will be initialized with locale "en_US.utf8".
postgresql_as_1  | The default database encoding has accordingly been set to "UTF8".
postgresql_as_1  | The default text search configuration will be set to "english".
postgresql_as_1  | 
postgresql_as_1  | Data page checksums are disabled.
postgresql_as_1  | 
postgresql_ns_1  | selecting default shared_buffers ... 128MB
postgresql_ns_1  | selecting dynamic shared memory implementation ... posix
postgresql_as_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgresql_ns_1  | creating configuration files ... ok
postgresql_ns_1  | running bootstrap script ... ok
postgresql_as_1  | creating subdirectories ... ok
postgresql_ns_1  | performing post-bootstrap initialization ... sh: locale: not found
postgresql_ns_1  | No usable system locales were found.
postgresql_ns_1  | Use the option "--debug" to see details.
postgresql_as_1  | selecting default max_connections ... 100
postgresql_ns_1  | ok
loraserver_1     | time="2018-04-03T07:59:44Z" level=info msg="starting LoRa Server" band=EU_863_870 docs="https://docs.loraserver.io/" net_id=010203 version=1ee3ea4
loraserver_1     | time="2018-04-03T07:59:44Z" level=info msg="setup redis connection pool" url="redis://redis:6379"
loraserver_1     | time="2018-04-03T07:59:44Z" level=info msg="connecting to postgresql"
gatewaybridge_1  | time="2018-04-03T07:59:49Z" level=warning msg="Deprecation warning! no configuration file found, falling back on environment variables. Update your configuration, see: https://docs.loraserver.io/lora-gateway-bridge/install/config/"
loraserver_1     | time="2018-04-03T07:59:44Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.2:5432: connect: connection refused"
gatewaybridge_1  | time="2018-04-03T07:59:49Z" level=info msg="starting LoRa Gateway Bridge" docs="https://docs.loraserver.io/lora-gateway-bridge/" version=c36b99a
redis_1          | 1:C 03 Apr 07:59:49.276 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1          | 1:C 03 Apr 07:59:49.276 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1          | 1:C 03 Apr 07:59:49.276 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
loraserver_1     | time="2018-04-03T07:59:46Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.2:5432: connect: connection refused"
postgresql_as_1  | selecting default shared_buffers ... 128MB
postgresql_as_1  | selecting dynamic shared memory implementation ... posix
gatewaybridge_1  | time="2018-04-03T07:59:49Z" level=info msg="backend: TLS config is empty"
gatewaybridge_1  | time="2018-04-03T07:59:49Z" level=info msg="backend: connecting to mqtt broker" server="tcp://mosquitto:1883"
loraserver_1     | time="2018-04-03T07:59:48Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.2:5432: connect: connection refused"
redis_1          | 1:M 03 Apr 07:59:49.277 * Running mode=standalone, port=6379.
postgresql_as_1  | creating configuration files ... ok
redis_1          | 1:M 03 Apr 07:59:49.277 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1          | 1:M 03 Apr 07:59:49.277 # Server initialized
redis_1          | 1:M 03 Apr 07:59:49.277 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
postgresql_as_1  | running bootstrap script ... ok
redis_1          | 1:M 03 Apr 07:59:49.277 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1          | 1:M 03 Apr 07:59:49.277 * Ready to accept connections
gatewaybridge_1  | time="2018-04-03T07:59:49Z" level=info msg="gateway: starting gateway udp listener" addr="0.0.0.0:1700"
gatewaybridge_1  | time="2018-04-03T07:59:49Z" level=info msg="backend: connected to mqtt broker"
postgresql_as_1  | performing post-bootstrap initialization ... No usable system locales were found.
postgresql_as_1  | Use the option "--debug" to see details.
postgresql_as_1  | sh: locale: not found
postgresql_as_1  | ok
appserver_1      | time="2018-04-03T07:59:49Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.6:5432: getsockopt: connection refused"
postgresql_ns_1  | syncing data to disk ... ok
postgresql_ns_1  | 
postgresql_ns_1  | Success. You can now start the database server using:
postgresql_ns_1  | 
postgresql_ns_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgresql_ns_1  | 
postgresql_ns_1  | 
postgresql_ns_1  | WARNING: enabling "trust" authentication for local connections
postgresql_ns_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgresql_ns_1  | --auth-local and --auth-host, the next time you run initdb.
postgresql_ns_1  | waiting for server to start....LOG:  could not bind IPv6 socket: Address not available
postgresql_ns_1  | HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
loraserver_1     | time="2018-04-03T07:59:50Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.2:5432: connect: connection refused"
postgresql_ns_1  | LOG:  database system was shut down at 2018-04-03 07:59:44 UTC
postgresql_ns_1  | LOG:  MultiXact member wraparound protections are now enabled
postgresql_ns_1  | LOG:  database system is ready to accept connections
postgresql_ns_1  | LOG:  autovacuum launcher started
postgresql_as_1  | syncing data to disk ... 
postgresql_as_1  | WARNING: enabling "trust" authentication for local connections
postgresql_as_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgresql_as_1  | --auth-local and --auth-host, the next time you run initdb.
postgresql_as_1  | ok
postgresql_as_1  | 
postgresql_as_1  | Success. You can now start the database server using:
postgresql_as_1  | 
postgresql_as_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgresql_as_1  | 
postgresql_as_1  | waiting for server to start....LOG:  could not bind IPv6 socket: Address not available
postgresql_as_1  | HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
postgresql_as_1  | LOG:  database system was shut down at 2018-04-03 07:59:49 UTC
postgresql_as_1  | LOG:  MultiXact member wraparound protections are now enabled
postgresql_as_1  | LOG:  database system is ready to accept connections
postgresql_as_1  | LOG:  autovacuum launcher started
appserver_1      | time="2018-04-03T07:59:51Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.6:5432: getsockopt: connection refused"
postgresql_ns_1  |  done
postgresql_ns_1  | server started
postgresql_as_1  |  done
postgresql_as_1  | server started
loraserver_1     | time="2018-04-03T07:59:52Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.2:5432: connect: connection refused"
postgresql_ns_1  | CREATE DATABASE
postgresql_ns_1  | 
postgresql_ns_1  | CREATE ROLE
postgresql_ns_1  | 
postgresql_ns_1  | 
postgresql_ns_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgresql_ns_1  | 
postgresql_ns_1  | waiting for server to shut down....LOG:  received fast shutdown request
postgresql_ns_1  | LOG:  aborting any active transactions
postgresql_ns_1  | LOG:  autovacuum launcher shutting down
postgresql_ns_1  | LOG:  shutting down
postgresql_as_1  | CREATE DATABASE
postgresql_as_1  | 
postgresql_as_1  | CREATE ROLE
postgresql_as_1  | 
postgresql_as_1  | 
postgresql_as_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgresql_as_1  | 
postgresql_as_1  | waiting for server to shut down....LOG:  received fast shutdown request
postgresql_as_1  | LOG:  aborting any active transactions
postgresql_as_1  | LOG:  autovacuum launcher shutting down
postgresql_as_1  | LOG:  shutting down
postgresql_ns_1  | LOG:  database system is shut down
postgresql_as_1  | LOG:  database system is shut down
appserver_1      | time="2018-04-03T07:59:53Z" level=error msg="ping database error, will retry in 2s: dial tcp 172.18.0.6:5432: getsockopt: connection refused"
postgresql_ns_1  |  done
postgresql_ns_1  | server stopped
postgresql_ns_1  | 
postgresql_ns_1  | PostgreSQL init process complete; ready for start up.
postgresql_ns_1  | 
postgresql_as_1  |  done
postgresql_as_1  | server stopped
postgresql_as_1  | 
postgresql_as_1  | PostgreSQL init process complete; ready for start up.
postgresql_as_1  | 
postgresql_ns_1  | LOG:  database system was shut down at 2018-04-03 07:59:53 UTC
postgresql_as_1  | LOG:  database system was shut down at 2018-04-03 07:59:53 UTC
postgresql_ns_1  | LOG:  MultiXact member wraparound protections are now enabled
postgresql_ns_1  | LOG:  database system is ready to accept connections
postgresql_ns_1  | LOG:  autovacuum launcher started
postgresql_as_1  | LOG:  MultiXact member wraparound protections are now enabled
postgresql_as_1  | LOG:  database system is ready to accept connections
postgresql_as_1  | LOG:  autovacuum launcher started
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="backend/gateway: TLS config is empty"
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="backend/gateway: connecting to mqtt broker" server="tcp://mosquitto:1883"
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="configuring join-server client" ca_cert= server="http://appserver:8003" tls_cert= tls_key=
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="no network-controller configured"
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="applying database migrations"
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="backend/gateway: connected to mqtt server"
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="backend/gateway: subscribing to rx topic" qos=0 topic=gateway/+/rx
loraserver_1     | time="2018-04-03T07:59:54Z" level=info msg="backend/gateway: subscribing to stats topic" qos=0 topic=gateway/+/stats
appserver_1      | time="2018-04-03T07:59:55Z" level=info msg="setup redis connection pool"
appserver_1      | time="2018-04-03T07:59:55Z" level=info msg="handler/mqtt: TLS config is empty"
appserver_1      | time="2018-04-03T07:59:55Z" level=info msg="handler/mqtt: connecting to mqtt broker" server="tcp://mosquitto:1883"
appserver_1      | time="2018-04-03T07:59:55Z" level=info msg="applying database migrations"
appserver_1      | time="2018-04-03T07:59:55Z" level=info msg="handler/mqtt: connected to mqtt broker"
appserver_1      | time="2018-04-03T07:59:55Z" level=info msg="handler/mqtt: subscribing to tx topic" qos=0 topic=application/+/node/+/tx
loraserver_1     | time="2018-04-03T07:59:58Z" level=info msg="migrations applied" count=8
loraserver_1     | time="2018-04-03T07:59:58Z" level=info msg="starting api server" bind="0.0.0.0:8000" ca-cert= tls-cert= tls-key=
loraserver_1     | time="2018-04-03T07:59:58Z" level=info msg="starting gateway api server" bind="0.0.0.0:8002" ca-cert= tls-cert= tls-key=
loraserver_1     | time="2018-04-03T07:59:58Z" level=info msg="starting downlink device-queue scheduler"
appserver_1      | time="2018-04-03T08:00:03Z" level=info msg="migrations applied" count=26
appserver_1      | time="2018-04-03T08:00:03Z" level=info msg="starting application-server api" bind="0.0.0.0:8001" ca-cert= tls-cert= tls-key=
appserver_1      | time="2018-04-03T08:00:03Z" level=info msg="starting join-server api" bind="0.0.0.0:8003" ca_cert= tls_cert= tls_key=
appserver_1      | time="2018-04-03T08:00:03Z" level=info msg="starting client api server" bind="0.0.0.0:8080" tls-cert=/etc/lora-app-server/certs/http.pem tls-key=/etc/lora-app-server/certs/http-key.pem
appserver_1      | time="2018-04-03T08:00:03Z" level=info msg="registering rest api handler and documentation endpoint" path=/api
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Branding grpc.service=api.Internal grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=0.011 peer.address="127.0.0.1:44224" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Profile grpc.service=api.Internal grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=6.317 peer.address="127.0.0.1:44224" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=4.62 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=12.654 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=3.778 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=6.708 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=18.368 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=3.514 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=5.398 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=3.788 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=3.61 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=4.654 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=6.468 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=4.518 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=5.99 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=5.467 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=15.107 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:17Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:17Z" grpc.time_ms=13.978 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Branding grpc.service=api.Internal grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=0.011 peer.address="127.0.0.1:44224" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Profile grpc.service=api.Internal grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=5.214 peer.address="127.0.0.1:44224" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=3.239 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=9.873 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=6.714 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=4.208 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=23.46 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=9.718 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=10.579 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=10.928 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=5.925 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=6.421 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=4.118 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=5.722 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=18.413 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=6.364 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=3.874 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:21Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:21Z" grpc.time_ms=7.179 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Branding grpc.service=api.Internal grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=0.012 peer.address="127.0.0.1:44224" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Profile grpc.service=api.Internal grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=9.046 peer.address="127.0.0.1:44224" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=3.693 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=6.591 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=4.07 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=10.456 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=3.811 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=5.911 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=7.119 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=7.438 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=6.722 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=3.688 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=7.614 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=6.501 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=7.529 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=4.626 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Get grpc.service=api.Organization grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=7.669 peer.address="127.0.0.1:44214" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:24Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.Application grpc.start_time="2018-04-03T08:00:24Z" grpc.time_ms=8.573 peer.address="127.0.0.1:44216" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:30Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.User grpc.start_time="2018-04-03T08:00:30Z" grpc.time_ms=4.147 peer.address="127.0.0.1:44226" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:33Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=List grpc.service=api.NetworkServer grpc.start_time="2018-04-03T08:00:33Z" grpc.time_ms=3.839 peer.address="127.0.0.1:44222" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:00:47Z" level=warning msg="creating insecure network-server client" server="localhost:8000"
appserver_1      | time="2018-04-03T08:00:47Z" level=warning msg="grpc: addrConn.createTransport failed to connect to {localhost:8000 0  <nil>}. Err :connection error: desc = \"transport: Error while dialing dial tcp 127.0.0.1:8000: getsockopt: connection refused\". Reconnecting..."
appserver_1      | time="2018-04-03T08:00:47Z" level=warning msg="Failed to dial localhost:8000: context canceled; please retry."
appserver_1      | time="2018-04-03T08:00:47Z" level=error msg="finished unary call with code Unknown" error="rpc error: code = Unknown desc = context deadline exceeded" grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServer grpc.start_time="2018-04-03T08:00:47Z" grpc.time_ms=504.926 peer.address="127.0.0.1:44222" span.kind=server system=grpc
appserver_1      | time="2018-04-03T08:01:50Z" level=warning msg="creating insecure network-server client" server="192.168.10.117:8000"
appserver_1      | time="2018-04-03T08:01:50Z" level=warning msg="grpc: addrConn.createTransport failed to connect to {192.168.10.117:8000 0  <nil>}. Err :connection error: desc = \"transport: Error while dialing dial tcp 192.168.10.117:8000: getsockopt: connection refused\". Reconnecting..."
appserver_1      | time="2018-04-03T08:01:51Z" level=warning msg="Failed to dial 192.168.10.117:8000: context canceled; please retry."
appserver_1      | time="2018-04-03T08:01:51Z" level=error msg="finished unary call with code Unknown" error="rpc error: code = Unknown desc = context deadline exceeded" grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServer grpc.start_time="2018-04-03T08:01:50Z" grpc.time_ms=505.233 peer.address="127.0.0.1:44222" span.kind=server system=grpc


#3

sorry, it’s basically my fault, I did not noticed the message from the docker install :slight_smile:

“you must enter loraserver:8000 as the network-server hostname:IP.”

thanks !


#4

besides, What I want to know is why the address need to be loraserver than localhost or the exact IP address?

which section is the specified in the docker-compose.yml ?

Thanks!


#5

That is basically how docker-compose works, each hostname maps to the service name in the .yml file :slight_smile:


#6

ok, I need to learn more about docker, thanks !


#7

I there a way to expose the PORT so external gw can join to the network?

I expose the port 8000, but i get the same error again

{“error”:“context deadline exceeded”,“message”:“context deadline exceeded”,“code”:2,“details”:[]}

If i do it locally i can add the network server properlly, but if i try using the external Ip of the server where the docker is hosted i can not do it