-
Notifications
You must be signed in to change notification settings - Fork 144
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
Sqlite error: no such table keyword #161
Comments
this happens when your app initiates before the volume mounts. Not sure how to fix it as I have limited knowledge of docker-compose. One way to fix this is to log in to the container that stopped with the above error, and then run this command:
|
I'm not sure that's the issue. I have tried connecting, re-running and I got the same error. Maybe missing table creation before something? |
you have to delete the existing migration files at database/migrations and create these new ones :
|
@drissbri Nice, it works |
That's a hacky way and might cause issues in the future though. Are you guys having this issue when you are trying to create a new serpbear instance with a new volume or updating an existing instance? Are you using docker-compose? What happens when you run the |
I'm run it locally. First I tried to pull the latest version but got an error Fatal: Not A Git Repository” (Or Any Of The Parent Directories... while I was in serpbear directory. Then tried initialize the repository and try again. I decided to delete everything and start from scratch. Everything worked well but when hit npm run prestart and start:all I got :
Didnt try your fix yet, what to do now? What kind of issue @drissbri fix can cause? |
The issue seems to be only on a new instance with a new volume. Updating from the old db worked for me. |
Same issue here. I have tried to run npx sequelize-cli db:migrate --env production which produces: /app $ npx sequelize-cli db:migrate --env production
Note that this is using the default docker-compose.yaml file with no changes. |
Hi, fresh docker-compose install, I'm getting:
docker-compose.yml
The text was updated successfully, but these errors were encountered: