Open natechoiniere opened 1 year ago
Thanks
Uhh, weird. Thanks for letting me know, I'll fix this as soon as i can
It also seems to copy and add some lines to the end of the file, when I fix the above mistake and recreate the container. Which again makes the JSON broken. The end of my file looks like this:
Something changed on the master config file from meshcentral and now my SED lines are broken. Thanks for all the troubleshooting! Things should get calmer for me in a few days and i'll be able to take a look at this properly
I had a look at the startup script and it seems to be all in order. I did remove one source for a potential bug i didn't think off and that may solve this issue
So I ran into this issue (bug?) earlier and fixed it. I was just able to recreate it. Went straight to this page https://hub.docker.com/r/typhonragewind/meshcentral and copied/pasted the "docker-compose.yml example" and spun it up after changing the hostname to be my IP address. Looks like it is using the "latest" tag. It gives me the error "ERROR: Unable to parse /opt/meshcentral/meshcentral-data/config.json." The culprit is a mangled sessionKey in config.json:
For some reason the container doesn't correctly set the sessionKey. Looks like it's trying to set both a commented out & an uncommented sessionKey, and forgetting a comma between them. The fix is to simply make the sessionKey of format "sessionKey":"sessionKeyHere";