Hi, I’ve been following the instructions for getting chirpstack on GCP from here:
https://www.chirpstack.io/project/guides/google-cloud-platform/
And keep encountering this error on the test of the application server:
INFO[0000] starting ChirpStack Application Server docs="https://www.chirpstack.io/" ve
rsion=3.12.2
INFO[0000] storage: setting up storage package
INFO[0000] storage: setup metrics
INFO[0000] storage: setting up Redis client
INFO[0000] storage: connecting to PostgreSQL database
INFO[0000] storage: applying PostgreSQL data migrations
INFO[0000] storage: PostgreSQL data migrations applied count=0
INFO[0000] integration: configuring global integrations
FATA[0000] setup integration error: new integration error: credentials from json error: unexpected end of JSON input
Has anyone seen this before? I’m using this exact config (with my own credentials of course) per the instructions.
[postgresql]
dsn="postgres://chirpstack_as:[PASSWORD]@[POSTGRESQL_IP]/chirpstack_as?sslmode=disable"
[redis]
url="redis://[REDIS_IP]:6379"
[application_server]
[application_server.integration]
enabled=["gcp_pub_sub"]
[application_server.integration.gcp_pub_sub]
project_id="chirpstack-stack-tutorial"
topic_name="chirpstack-application-server"
[application_server.external_api]
bind="0.0.0.0:8080"
jwt_secret="[JWT_SECRET]"
Followup, I thought perhaps the simplified config examples in the GCP guide above contained an error, but no luck. Also tried with the more complete .toml config files.
I’m not clear on what json credentials are being referenced here.
FATA[0000] setup integration error: new integration error: credentials from json error: unexpected end of JSON input
Any help would be appreciated!
huchosi
November 5, 2020, 5:22pm
#4
Hi barryjump,
I have the same problem and i cant solve with your solution, I mean,I have already the key for my project, butI thing I have the problem with [application_server.integration.gcp_pub_sub], maybe you can help me, how should I use the credential_file.
[application_server.integration.gcp_pub_sub]
credentials_file=“https://xxxxxxxx.xxxx/xxxxxx-chirpstack-8ac4c2e58bad.json ”
project_id=“chirpstack-network-server”
topic_name=“chirpstack-application-server”
I get this error:
FATA[0000] setup integration error: new integration error: read credentials file error: open [https://xxxxxxx.xxx/xxxxxxx-chirpstack-8ac4c2e58bad.json: no such file or directory
Thanks
1 Like
I think the guideline may not that clear. And I wanna share how I tackle this.
After I spend some time investigating the configfile
sudo chirpstack-application-server configfile
I found that there is a field ‘credentials_file’ is empty and what I have done are:
Create a json file in VM
Copy the content of service key to the json file must created
Add credentials_file="[the target json file location]" in ‘chirpstack-application-server.toml’
run sudo chirpstack-application-server
to check if this problem resolved