mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
issue with db:init #341
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mahuntington on GitHub (Jun 27, 2023).
Hello! I'm running the manual install on my Debian 11 server. I'm running Postgres 13 and Node v18.12.1. I swear I followed the directions as written, but when I run
npm run db:init && npm start --prodI get the following:My postgres tables look like this:
So it looks like it's breaking at some point during the migrations. As far as I could figure out, it seems to throw an error on line 11 of server/db/init.js:
Any suggestions? I was able to install on a docker container under similar conditions.
@meltyshev commented on GitHub (Jul 4, 2023):
Hi! There seems to be something wrong with the driver binaries for the database. To be honest, I don't even know what to recommend and how to fix it. I would try deleting all the
node_modulesfolders and runningnpm iagain.I found this description:
@mahuntington commented on GitHub (Jul 4, 2023):
That’s a good idea. I reinstalled Postgres, but maybe it’s an issue with node or one of the packages. I’ll try reinstalling the app. Are there strict restrictions on what version of node to use with Planka? What about Postgres? I might try previous versions of those. The computer I’m using is a bit old, so maybe it will work with different versions of node/Postgres. Thanks for the help!
@meltyshev commented on GitHub (Jul 4, 2023):
For the docker image we use LTS version of Node.js (18.x.x) and Postgres version 14. It seems like your versions should fit perfectly.
@mahuntington commented on GitHub (Jul 4, 2023):
Hmmm. I tried Postgres v. 14 (I previously had v. 13), but still no luck. I'm going to try a fresh install of planka next. I think your docs are down, though: https://docs.planka.cloud/docs/installl-planka/Debian%20&%20Ubuntu
@meltyshev commented on GitHub (Jul 4, 2023):
Thanks! It should be ok now 👌
@mahuntington commented on GitHub (Jul 5, 2023):
Well, I did a brand new install and nothing. Updated all the server packages and still nothing. 🤔
@daniel-hiller commented on GitHub (Jul 5, 2023):
Hi,
I have tested the installation guide on debian 11
Everything is working just fine
Here a Video of the whole installation process, maybe you can find something you missed.
@mahuntington commented on GitHub (Jul 5, 2023):
Awesome. Thanks for the video. That's what I did. One thing I noticed, when messing around in a docker Debian container, was that I didn't need to create the user
plankafor the computer. It ran fine when I did everything as a different user as long as the planka directory was owned by that other user. I also noticed, again while in Docker, that I didn't need tocdinto/tmp. Lastly, I was able to clone Planka into any directory as long as my symlinks were correct. Again, all this worked in Docker, but even when I do everything exactly as in the directions on the physical Debian server, it doesn't seem to work.The one thing I didn't do was a fresh install of node. I previously had already installed Node v. 18.12.1, so I just used that. Perhaps installing a newer version of Node will help. I'll also add that the Debian computer I'm using is at least a few years old. I wonder if something is weird with its architecture.