Google cloud setup unexpected JSON end error

Hi, I’ve been following the instructions for getting chirpstack on GCP from here:

And keep encountering this error on the test of the application server:

INFO[0000] starting ChirpStack Application Server        docs="" ve
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.







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!

FYI, resolved here:

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.


I get this error:
FATA[0000] setup integration error: new integration error: read credentials file error: open [ no such file or directory


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:

  1. Create a json file in VM
  2. Copy the content of service key to the json file must created
  3. Add credentials_file="[the target json file location]" in ‘chirpstack-application-server.toml’
  4. run sudo chirpstack-application-server to check if this problem resolved