Running in codespaces fails #10302
-
Starting a new code spaces fails to start server or run any tasks due to postgres errors.
I have noticed a couple of times when trying to set up a new instance of InvenTree, problems with Postgres. It seems with postgres version 15, "grant all privileges on database inventree to myuser;" is not sufficient to grant full access to the db user. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When I ran the code space the next day, suddenly the invoke commands were working. So I'm guessing either the codespace was not finished provisioning or the codespace needed to be stopped and restarted. I would guess the latter, because I'm pretty sure I gave the codespace ample time of at least 1 hour before posting this. And after several tries. Next I struggled with accessing the codespace instance of Inventree... To fix this, I ran Afterward I went to "Run and Debug" and started the Inventree Server. Could access Inventree at that point. Needed to run Success?! We shall see... This discussion I will close. I post all this for the next poor idjit who may encounter these problems. In my defense, this is my first time trying codespaces... I tried to follow the Devcontainer Guide step by step, but there was still some things I had to figure out on my own. (or that I should have known already) |
Beta Was this translation helpful? Give feedback.
When I ran the code space the next day, suddenly the invoke commands were working. So I'm guessing either the codespace was not finished provisioning or the codespace needed to be stopped and restarted. I would guess the latter, because I'm pretty sure I gave the codespace ample time of at least 1 hour before posting this. And after several tries.
Next I struggled with accessing the codespace instance of Inventree...
To fix this, I ran
invoke dev.setup-dev && invoke migrate && invoke update
which all ran without problems.Afterward I went to "Run and Debug" and started the Inventree Server. Could access Inventree at that point.
Needed to run
invoke superuser
in another codespace terminal …