mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4481] [bug]: How to migrate after runnning if it doesn't run at all?... #1639
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1639
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @nvroot on GitHub (Oct 26, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4481
Is there an existing issue for this?
Current behavior
Has anyone ever tried to run this something on Caprover or Coolify? Feels like devs do everything to make that painful and impossible...
After some painful hours get that error and check related document:
how to run that
pnpx prisma migrate deployif that container only stopping a second after run due to that error?stdout Backend Server | Initialize PubSub stderr Backend Server | /dist/backend/dist/utils.js:16 stderr Backend Server | throw new Error(errMessage); stderr Backend Server | ^ stderr Backend Server | stderr Backend Server | Error: Database migration not found. Please check the documentation for assistance: https://docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build#running-migrations stderr Backend Server | at throwErr (/dist/backend/dist/utils.js:16:11) stderr Backend Server | at InfraConfigService.initializeInfraConfigTable (/dist/backend/dist/infra-config/infra-config.service.js:66:38) stderr Backend Server | at async InfraConfigService.onModuleInit (/dist/backend/dist/infra-config/infra-config.service.js:40:9) stderr Backend Server | at async Promise.all (index 0) stderr Backend Server | at async callModuleInitHook (/dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/hooks/on-module-init.hook.js:43:5) stderr Backend Server | at async NestApplication.callInitHook (/dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/nest-application-context.js:223:13) stderr Backend Server | at async NestApplication.init (/dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/nest-application.js:100:9) stderr Backend Server | at async NestApplication.listen (/dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/nest-application.js:169:33) stderr Backend Server | at async bootstrap (/dist/backend/dist/main.js:69:5) stderr Backend Server | stderr Backend Server | Node.js v20.18.0 stdout Exiting process because Backend Server exited with code 1Steps to reproduce
or
Environment
Production
Version
Self-hosted
@pmcnano commented on GitHub (Feb 16, 2025):
Would've been nice posting how did you solve it 😄
@nvroot commented on GitHub (Feb 17, 2025):
@pmcnano
I created a custom docker-compose file for AIO and set it as the default template in Coolify, switching to it.
on docker-compose at least one authentication provider must be configured, and the DATA_ENCRYPTION_KEY must be exactly 32 characters long. Sometimes, after a restart and migration, the backend doesn't start automatically but runs successfully after a manual restart using:
docker compose down && docker compose up -dWorking Docker-Compose for AIO Hoppscotch without separate .env:
Proxyscotch clone and build using script:
https://github.com/ssqlone/proxyscotch-linux-arm64 - only for linux arm
https://github.com/hoppscotch/proxyscotch - all others