-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first app run in kubernetes pod throws runtime error #117
Comments
Hey @falkolab! Thanks for bug report. Is it possible to share the deployment descriptor and the configuration (remember to remove the password) for me to try and test it myself? There isn't an immediate idea what it could be. Especially if it runs the second time. |
This is exported deployment (there are additional properties args and command under container section for debugging purpose)
configmap:
I enter to the container like: and executing the app from /usr/sbin This is an output of printenv command:
You can safely remove env mappings from deployment and specify them within the container. I think it's overhead to place here secrets and cm. If you point me to some direction to test, I can do it in the nearest couple days on the current pod. |
Let me try a bit tomorrow. If I can reproduce it, it's probably easy to fix since it's most likely a missing directory or something (which could make sense) 🤷♂️ |
I found a solution. You are right the reason is in absence mounted pvc for the storing : stateStorage.file.path pvc.yaml for single pod usage
and mounting in deployment like:
You probably need to check the folder for existence or thomething. |
Perfect! Good to know. That was my guess as well. Haven't had time to have a look yet. I'll keep it open to remember to add a meaningful check and a better error message. Thanks for testing and the help 🙏 |
The file's fairly small. It just keeps a few kilobytes state per TimescaleDB chunk, plus some overall data. It basically stores what the last known xid (transaction id) and the last index values were. Nothing large. I guess if you use a 100 megs you'll be golden into all eternity 🤣 |
Fixed #117: if the statestorage folder cannot be created and doesn't exist yet, fail hard
I found a strange behavior within k8s pod, the app throws error but the next try executes app without runtime error
I didn't found any additional info in app logs
The text was updated successfully, but these errors were encountered: