Server crash on startup - empty .internal files #1817
Replies: 2 comments 3 replies
-
I did a little more debugging and it seems to just be the json file containing the base url. The server seems to handle the empty version file just fine. |
Beta Was this translation helpful? Give feedback.
-
I have no idea unfortunately. If something goes wrong writing those files the server should just throw an error which should stop the server. The base URL resource is is only read and written in this file: https://github.com/CommunitySolidServer/CommunitySolidServer/blob/main/src/init/BaseUrlVerifier.ts, so I would expect the Solution might just be to update the server so it ignores/deletes JSON files it can't interpret, although that has the risk of losing data. |
Beta Was this translation helpful? Give feedback.
-
Hey all,
We have an instance of the css (v6.0.0) running inside a Kubernetes cluster. From time to time, when the server restarts (pod in k8s), it will crash because it is trying to read files from the
/.internal/setup
folder which are empty for some reason. (The files containing the version number and the base url)This errors the server because it tries to parse the content as json, which an empty string clearly is not.
(see attached logs below from when I empty these files and run locally on my machine)
So I guess my question is: Why are these files empty ? Does the server ever write to these files again and could that be the reason of the files being empty ?
Since I am not able to reproduce this (on the deployed version) just like that and it doesn't always happen, I am not sure where to even look. Maybe this is a known issue that was fixed in a later version 🤷🏻 .
Until now, we have gone in and deleted the files manually afterwhich the server boots correctly.
Thanks in advance for the help :)
Beta Was this translation helpful? Give feedback.
All reactions