Gokapi
Gokapi copied to clipboard
Issue: config.json - unexpected end of JSON input
Hello,
I'm hoping I can get some support, but I'm running this Unraid template - so I can't be certain my issue can be solved here. The template is essentially Gokapi v1.6.1 using docker-compose.
My configuration used to work, until a recent update - not sure which. Now, I cannot start the container, and am left with error reading config.json: unexpected end of JSON input
in the log. I deleted my config.json
and started over using the newish onboarding wizard (which is really nice btw), but I'm still getting this error.
I don't see anything wrong with the configuration, but maybe I'm missing something.
config.json
:
{
"Authentication": {
"Method": 1,
"SaltAdmin": "<redacted>",
"SaltFiles": "<redacted>",
"Username": "",
"Password": "",
"HeaderKey": "",
"OauthProvider": "https://authentik.domain.tld/application/o/gokapi/",
"OAuthClientId": "<redacted>",
"OAuthClientSecret": "<redacted>",
"HeaderUsers": null,
"OauthUsers": null
},
"Port": ":53842",
"ServerUrl": "https://g.domain2.tld",
"RedirectUrl": "https://domain2.tld",
"ConfigVersion": 12,
"LengthId": 10,
"DataDir": "data",
"MaxMemory": 40,
"UseSsl": false,
"MaxFileSizeMB": 102400,
"Encryption": {
"Level": 0,
"Cipher": null,
"Salt": "",
"Checksum": "",
"ChecksumSalt": ""
},
"PicturesAlwaysLocal": true
}
Thank you for any help you can provide.
Thanks for your feedback! Did you accidentally remove the quotation mark for OAuthClientSecret
or was it indeed missing? And does the value of OAuthClientSecret
contain a quotation mark?
Hi there, thank you for the awesome project!
That was a mistake in typing on GH, my bad. There is indeed a closing quotation mark, and no quotation mark in the actual value. I have edited my original comment.
Sorry for the late reply. Hm that is rather weird in that case. Do the redacted parts contain any special characters?
No worries! No special characters in any of the redacted hashes. I just reran the onboarding wizard, and chose local auth, and the same issue persists. I see that the config file is written as soon as this error appears, after submitting:
The container will only stay up immediately after writing the config. Once stopped, it refuses to start again.
Thank you again. Maybe I am at the mercy of the Unraid template maintainer here.
Okay that is very strange, does it happen as well if you run the setup with the default values? If yes there might be indeed something wrong with the unraid template...
I've tried a standard docker compose as well, but the same thing happens. I don't know what it could be, but it must have something to do with Unraid.
Thank you for your time.