Built the application using the instructions described on github, but it can't connect to the server api when I try to run it.
I also had to run it as postgres user otherwise the psql database would say the user does not exist.
Also, i found that the config file isn't used unless the "-c packaging/files/chirpstack-fuota-server.toml" flag is used, normally it uses the configfile cmd/chirpstack-fuota-server/cmd/configfile.go which isn't working as intended
I could connect to the same gRPC api using a custom python script, so it is not a server side issue.
Error code:
sudo -u postgres build/chirpstack-fuota-server -c packaging/files/chirpstack-fuota-server.toml
INFO[0000] starting ChirpStack FUOTA Server version=
INFO[0000] storage: connecting to PostgreSQL database
INFO[0000] storage: applying PostgreSQL schema migrations
INFO[0000] client/as: setup application-server client
DEBU[0000] [core]original dial target is: ""
DEBU[0000] [core]parsed dial target is: {Scheme: Authority: Endpoint: URL:{Scheme: Opaque: User: Host: Path: RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
DEBU[0000] [core]fallback to scheme "passthrough"
DEBU[0000] [core]parsed dial target is: {Scheme:passthrough Authority: Endpoint: URL:{Scheme:passthrough Opaque: User: Host: Path:/ RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
DEBU[0000] [core]Channel authority set to ""
DEBU[0000] [core]ccResolverWrapper: sending update to cc: {[{ 0 }] }
DEBU[0000] [core]ClientConn switching balancer to "pick_first"
DEBU[0000] [core]Channel switches to new LB policy "pick_first"
DEBU[0000] [core]Subchannel Connectivity change to CONNECTING
DEBU[0000] [core]Subchannel picks a new address "" to connect
WARN[0000] [core] grpc: addrConn.createTransport failed to connect to { 0 }. Err: connection error: desc = "transport: Error while dialing dial tcp: missing address"
DEBU[0000] [core]Subchannel Connectivity change to TRANSIENT_FAILURE
DEBU[0000] [core]pickfirstBalancer: UpdateSubConnState: 0xc00038e4b0, {CONNECTING }
DEBU[0000] [core]Channel Connectivity change to CONNECTING
DEBU[0000] [core]pickfirstBalancer: UpdateSubConnState: 0xc00038e4b0, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp: missing address"}
DEBU[0000] [core]Channel Connectivity change to TRANSIENT_FAILURE
DEBU[0001] [core]Channel Connectivity change to SHUTDOWN
DEBU[0001] [core]Subchannel Connectivity change to SHUTDOWN
FATA[0001] setup application-server client error: dial application-server api error: context deadline exceeded
Steps to reproduce:
sudo docker-compose run --rm chirpstack-fuota-server bash
make clean
make build
make snapshot
exit
sudo -u postgres psql
create role chirpstack_fuota with login password 'dbpassword';
create database chirpstack_fuota with owner chirpstack_fuota;
\c chirpstack_fuota
create extension hstore;
\q
//Add the chirpstack application API server and API token in packaging/files/chirpstack-fuota-server.toml
sudo -u postgres build/chirpstack-fuota-server -c packaging/files/chirpstack-fuota-server.toml
above mentioned error occurs
Built the application using the instructions described on github, but it can't connect to the server api when I try to run it.
I also had to run it as postgres user otherwise the psql database would say the user does not exist.
Also, i found that the config file isn't used unless the "-c packaging/files/chirpstack-fuota-server.toml" flag is used, normally it uses the configfile cmd/chirpstack-fuota-server/cmd/configfile.go which isn't working as intended
I could connect to the same gRPC api using a custom python script, so it is not a server side issue.
Error code:
sudo -u postgres build/chirpstack-fuota-server -c packaging/files/chirpstack-fuota-server.toml
INFO[0000] starting ChirpStack FUOTA Server version=
INFO[0000] storage: connecting to PostgreSQL database
INFO[0000] storage: applying PostgreSQL schema migrations
INFO[0000] client/as: setup application-server client
DEBU[0000] [core]original dial target is: ""
DEBU[0000] [core]parsed dial target is: {Scheme: Authority: Endpoint: URL:{Scheme: Opaque: User: Host: Path: RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
DEBU[0000] [core]fallback to scheme "passthrough"
DEBU[0000] [core]parsed dial target is: {Scheme:passthrough Authority: Endpoint: URL:{Scheme:passthrough Opaque: User: Host: Path:/ RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
DEBU[0000] [core]Channel authority set to ""
DEBU[0000] [core]ccResolverWrapper: sending update to cc: {[{ 0 }] }
DEBU[0000] [core]ClientConn switching balancer to "pick_first"
DEBU[0000] [core]Channel switches to new LB policy "pick_first"
DEBU[0000] [core]Subchannel Connectivity change to CONNECTING
DEBU[0000] [core]Subchannel picks a new address "" to connect
WARN[0000] [core] grpc: addrConn.createTransport failed to connect to { 0 }. Err: connection error: desc = "transport: Error while dialing dial tcp: missing address"
DEBU[0000] [core]Subchannel Connectivity change to TRANSIENT_FAILURE
DEBU[0000] [core]pickfirstBalancer: UpdateSubConnState: 0xc00038e4b0, {CONNECTING }
DEBU[0000] [core]Channel Connectivity change to CONNECTING
DEBU[0000] [core]pickfirstBalancer: UpdateSubConnState: 0xc00038e4b0, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp: missing address"}
DEBU[0000] [core]Channel Connectivity change to TRANSIENT_FAILURE
DEBU[0001] [core]Channel Connectivity change to SHUTDOWN
DEBU[0001] [core]Subchannel Connectivity change to SHUTDOWN
FATA[0001] setup application-server client error: dial application-server api error: context deadline exceeded
Steps to reproduce:
sudo docker-compose run --rm chirpstack-fuota-server bash
make clean
make build
make snapshot
exit
sudo -u postgres psql
create role chirpstack_fuota with login password 'dbpassword';
create database chirpstack_fuota with owner chirpstack_fuota;
\c chirpstack_fuota
create extension hstore;
\q
//Add the chirpstack application API server and API token in packaging/files/chirpstack-fuota-server.toml
sudo -u postgres build/chirpstack-fuota-server -c packaging/files/chirpstack-fuota-server.toml
above mentioned error occurs