Replies: 2 comments 10 replies
-
OK, I found some hints and answers in the doc, it suggests the need to connect to the server first and run:
In the context of k8s, that could be a initContainer. It would be great to have a script in the container that does just that, but only if the db was not found. That would allow running this from the initContainer, no matter what, but the script would only run the invoke on environment that are detected as "new". Happy to turn that into an issue if you can confirm you agree with the following:
|
Beta Was this translation helpful? Give feedback.
10 replies
-
See also #2659 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using a K8s cluster and I am trying to deploy Inventree. I am hitting a few issues that are non K8s related.
I am using
inventree/inventree:stable
.The main issue seems to be that the DB is not created automatically.
I am using postgres, postgres is running, the db is created (I did it manually), the user is created (manually) and the access is correct, nonetheless, the inventree db remains empty (= no tables).
I ended up:
For now I am "just" trying to get it to run but I am a little surprised of the extra effort related to setting up the DB. Usually, for similar projects, as long as the db credentials are ok, the server container checks if the db exsists, and create it if not.
Please correct me if I am wrong but I would expect the following to be done automatically provided the credentials passed are correct:
Since I don't see any table, I guess something went wrong and I would like to understand wheter I should initially run the migrations manually, or if this is supposed to be handled and I should look elsewhere.
I did turn on debugging but I am not seeing much more.
In a nutshell, the server tells me it spwans workers and they timeout.
The worker start, confirm the db connection, then fail as shown below:
Worker logs
inventree
db does not have a single table.Beta Was this translation helpful? Give feedback.
All reactions