You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello , I have made a helm template to deploy DB and the AIO in a namespace ...but the AIO pod is not starting with the below error
Backend Server | Initialize PubSub
Backend Server | /usr/src/app/packages/hoppscotch-backend/dist/utils.js:15
Backend Server | throw new Error(errMessage);
Backend Server | ^
Backend Server |
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
Backend Server | at throwErr (/usr/src/app/packages/hoppscotch-backend/dist/utils.js:15:11)
Backend Server | at InfraConfigService.initializeInfraConfigTable (/usr/src/app/packages/hoppscotch-backend/dist/infra-config/infra-config.service.js:55:38)
Backend Server | at async InfraConfigService.onModuleInit (/usr/src/app/packages/hoppscotch-backend/dist/infra-config/infra-config.service.js:39:9)
Backend Server | at async Promise.all (index 0)
Backend Server | at async callModuleInitHook (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/hooks/on-module
-init.hook.js:43:5)
Backend Server | at async NestApplication.callInitHook (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-
application-context.js:223:13)
Backend Server | at async NestApplication.init (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-applicat
ion.js:100:9)
Backend Server | at async NestApplication.listen (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-applic
ation.js:169:33)
Backend Server | at async bootstrap (/usr/src/app/packages/hoppscotch-backend/dist/main.js:43:5)
Backend Server |
Backend Server | Node.js v18.20.0
Backend Server | ELIFECYCLE Command failed with exit code 1.
Exiting process because Backend Server exited with code 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello , I have made a helm template to deploy DB and the AIO in a namespace ...but the AIO pod is not starting with the below error
Backend Server | Initialize PubSub
Backend Server | /usr/src/app/packages/hoppscotch-backend/dist/utils.js:15
Backend Server | throw new Error(errMessage);
Backend Server | ^
Backend Server |
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
Backend Server | at throwErr (/usr/src/app/packages/hoppscotch-backend/dist/utils.js:15:11)
Backend Server | at InfraConfigService.initializeInfraConfigTable (/usr/src/app/packages/hoppscotch-backend/dist/infra-config/infra-config.service.js:55:38)
Backend Server | at async InfraConfigService.onModuleInit (/usr/src/app/packages/hoppscotch-backend/dist/infra-config/infra-config.service.js:39:9)
Backend Server | at async Promise.all (index 0)
Backend Server | at async callModuleInitHook (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/hooks/on-module
-init.hook.js:43:5)
Backend Server | at async NestApplication.callInitHook (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-
application-context.js:223:13)
Backend Server | at async NestApplication.init (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-applicat
ion.js:100:9)
Backend Server | at async NestApplication.listen (/usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_@nestjs[email protected][email protected][email protected]/node_modules/@nestjs/core/nest-applic
ation.js:169:33)
Backend Server | at async bootstrap (/usr/src/app/packages/hoppscotch-backend/dist/main.js:43:5)
Backend Server |
Backend Server | Node.js v18.20.0
Backend Server | ELIFECYCLE Command failed with exit code 1.
Exiting process because Backend Server exited with code 1
I tried doing like this :
apiVersion: apps/v1
kind: Deployment
metadata:
name: hoppscotch-db
spec:
replicas: 1
selector:
matchLabels:
app: hoppscotch-db
template:
metadata:
labels:
app: hoppscotch-db
spec:
containers:
- name: hoppscotch-db
image: postgres:15
env:
- name: POSTGRES_USER
value: "postgres"
- name: POSTGRES_PASSWORD
value: "****"
- name: POSTGRES_DB
value: "hoppscotch"
livenessProbe:
exec:
command:
- "pg_isready"
- "-U"
- "postgres"
- "-d"
- "hoppscotch"
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
apiVersion: apps/v1
kind: Deployment
metadata:
name: hoppscotch-aio
spec:
replicas: 1
selector:
matchLabels:
app: hoppscotch-aio
template:
metadata:
labels:
app: hoppscotch-aio
spec:
containers:
- name: hoppscotch-aio
image: hoppscotch/hoppscotch:latest
env:
- name: DATABASE_URL
value: "postgresql://postgres:@hoppscotch-db:5432/hoppscotch"
- name: JWT_SECRET
value: "secret1233"
- name: TOKEN_SALT_COMPLEXITY
value: "10"
- name: MAGIC_LINK_TOKEN_VALIDITY
value: "3"
- name: REFRESH_TOKEN_VALIDITY
value: "604800000" # Default validity is 7 days (604800000 ms) in ms
- name: ACCESS_TOKEN_VALIDITY
value: "86400000" # Default validity is 1 day (86400000 ms) in ms
- name: SESSION_SECRET
value: "add some secret here"
- name: REDIRECT_URL
value: "http://localhost:3000"
- name: WHITELISTED_ORIGINS
value: "http://localhost:3170,http://localhost:3000,http://localhost:3100"
- name: VITE_ALLOWED_AUTH_PROVIDERS
value: "GOOGLE,GITHUB,MICROSOFT,EMAIL"
- name: GOOGLE_CLIENT_ID
value: ""
- name: GOOGLE_CLIENT_SECRET
value: ""
- name: GOOGLE_CALLBACK_URL
value: "http://localhost:3170/v1/auth/google/callback"
- name: GOOGLE_SCOPE
value: "email,profile"
- name: GITHUB_CLIENT_ID
value: ""
- name: GITHUB_CLIENT_SECRET
value: ""
- name: GITHUB_CALLBACK_URL
value: "http://localhost:3170/v1/auth/github/callback"
- name: GITHUB_SCOPE
value: "user:email"
- name: MICROSOFT_CLIENT_ID
value: ""
- name: MICROSOFT_CLIENT_SECRET
value: "****"
- name: MICROSOFT_CALLBACK_URL
value: "http://localhost:3170/v1/auth/microsoft/callback"
- name: MICROSOFT_SCOPE
value: "user.read"
- name: MICROSOFT_TENANT
value: "common"
- name: MAILER_SMTP_URL
value: "smtps://[email protected]:[email protected]"
- name: MAILER_ADDRESS_FROM
value: '"From Name Here" [email protected]'
- name: RATE_LIMIT_TTL
value: "60"
- name: RATE_LIMIT_MAX
value: "100"
- name: VITE_BASE_URL
value: "http://localhost:3000"
- name: VITE_SHORTCODE_BASE_URL
value: "http://localhost:3000"
- name: VITE_ADMIN_URL
value: "http://localhost:3100"
- name: VITE_BACKEND_GQL_URL
value: "http://localhost:3170/graphql"
- name: VITE_BACKEND_WS_URL
value: "ws://localhost:3170/graphql"
- name: VITE_BACKEND_API_URL
value: "http://localhost:3170/v1"
- name: VITE_APP_TOS_LINK
value: "https://docs.hoppscotch.io/support/terms"
- name: VITE_APP_PRIVACY_POLICY_LINK
value: "https://docs.hoppscotch.io/support/privacy"
- name: ENABLE_SUBPATH_BASED_ACCESS
value: "false"
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "pnpx prisma migrate deploy"]
Beta Was this translation helpful? Give feedback.
All reactions