cking!M
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
That is correct I hadn't run the migration command locally before running the build command so I did not have a migrations folder under my /app folder.
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
that is correct
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
Turns out I did not run wasp db migrate-dev before wasp build. That seems to have fixed it
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
@Filip I tried redeploying the Dockerfile. Here is the output from the process:
It would appear no migration happened -
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
I managed to connect to it and I can see only a single table _prisma_migrations
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
Yes I did set it to the internal URL for the same region as the other services. In my local environment I used wasp db studio for connecting, how can I do that for the production db?
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
@Filip Thanks for the tip. I need some help with my problem. I will try and explain in detail.
I have deployed my app to Render. It currently has 4 services: a PostgreSQL database, 2 Web services - 1 for a FastAPI backend and 1 for the Wasp server backend, and a Static Site for the frontend. For the Wasp server backend, I built it with "wasp build" on my local machine and deployed the Dockerfile. I am able to access the app on the web, however when I try to log into the app with Google Auth, it fails with the error below in my server's console:
Is database migration part of the Dockerfile launch?
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
Looking further at my console output in Render I see these errors:
PrismaClientKnownRequestError:
Invalid
prisma.authIdentity.findUnique() invocation:
The table
public.AuthIdentity does not exist in the current database.
at Ln.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7753)
at Ln.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7061)
at Ln.request (/app/node_modules/@prisma/client/runtime/library.js:121:6745)
at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9633)
at getAuthIdFromProviderDetails (/app/.wasp/build/server/src/auth/providers/oauth/user.ts:67:32)
at finishOAuthFlowAndGetRedirectUri (/app/.wasp/build/server/src/auth/providers/oauth/user.ts:39:18)
at <anonymous> (/app/.wasp/build/server/src/auth/providers/oauth/handler.ts:97:31)
at <anonymous> (/app/.wasp/out/sdk/wasp/server/utils.ts:26:5) {
code: 'P2021',
clientVersion: '5.19.1',
meta: { modelName: 'AuthIdentity', table: 'public.AuthIdentity' }
}
🐝 This error can happen if you did't run the database migrations.
HttpError: Save failed
at rethrowPossibleAuthError (/app/.wasp/out/sdk/wasp/auth/utils.ts:215:11)
at <anonymous> (/app/.wasp/build/server/src/auth/providers/oauth/handler.ts:118:11)
at <anonymous> (/app/.wasp/out/sdk/wasp/server/utils.ts:26:5) {
statusCode: 500,
data: { message: 'there was a database error' }
}
It does seem to be a database write error. I have a database deployed and running. I have also grabbed its internal URL and added it to the DATABASE_URL env variable on the Wasp Server's Web Service's environment variables. My understanding is that database should have been migrated during the Docker build process of the wasp server. Is this not the case?33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
@kapa.ai I have managed to deploy the app on Render. However I am getting this error when I log in with Google Authentication:
Save failed: there was a database error
index-Dl9Psnge.js:78
GET https://personita-server.onrender.com/auth/me 401 (Unauthorized)
(anonymous) @ index-Dl9Psnge.js:78
xhr @ index-Dl9Psnge.js:78
rx @ index-Dl9Psnge.js:80
Promise.then
_request @ index-Dl9Psnge.js:81 request @ index-Dl9Psnge.js:80 ys.<computed> @ index-Dl9Psnge.js:81 (anonymous) @ index-Dl9Psnge.js:76 F2.queryCacheKey @ index-Dl9Psnge.js:81 queryFn @ index-Dl9Psnge.js:81 T @ index-Dl9Psnge.js:40 Q @ index-Dl9Psnge.js:40 nv @ index-Dl9Psnge.js:40 fetch @ index-Dl9Psnge.js:40 executeFetch @ index-Dl9Psnge.js:40 fetch @ index-Dl9Psnge.js:40 refetch @ index-Dl9Psnge.js:40 onFocus @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 p @ index-Dl9Psnge.js:40 onFocus @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 onFocus @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 s @ index-Dl9Psnge.js:40
_request @ index-Dl9Psnge.js:81 request @ index-Dl9Psnge.js:80 ys.<computed> @ index-Dl9Psnge.js:81 (anonymous) @ index-Dl9Psnge.js:76 F2.queryCacheKey @ index-Dl9Psnge.js:81 queryFn @ index-Dl9Psnge.js:81 T @ index-Dl9Psnge.js:40 Q @ index-Dl9Psnge.js:40 nv @ index-Dl9Psnge.js:40 fetch @ index-Dl9Psnge.js:40 executeFetch @ index-Dl9Psnge.js:40 fetch @ index-Dl9Psnge.js:40 refetch @ index-Dl9Psnge.js:40 onFocus @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 p @ index-Dl9Psnge.js:40 onFocus @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 onFocus @ index-Dl9Psnge.js:40 (anonymous) @ index-Dl9Psnge.js:40 s @ index-Dl9Psnge.js:40
33 replies
WWasp
•Created by cking!M on 11/29/2024 in #🙋questions
I need help to deploy my app to Render.com
@kapa.ai When I try to deploy the frontend as a static stite on Render I get this error
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'wasp' imported from /opt/render/project/src/app/.wasp/build/web-app/scripts/validate-env.mjs
33 replies
WWasp
•Created by cking!M on 11/26/2024 in #🙋questions
Iterating on my app post deployment
@kapa.ai will running
wasp db migrate-dev
again build the database based on what is in my prisma.schema file?17 replies
WWasp
•Created by cking!M on 8/28/2024 in #🙋questions
Added a new page, can't get it to load
yes I am signed in. otherwise it would redirect to my home page
9 replies
WWasp
•Created by cking!M on 8/26/2024 in #🙋questions
Render for deployment a good choice?
This is really helpful thank you
6 replies
WWasp
•Created by cking!M on 8/26/2024 in #🙋questions
Update Wasp AI to use latest GPT model
Thank you!
7 replies
WWasp
•Created by cking!M on 5/5/2024 in #🙋questions
Trying to clone ChatGPT's UI for an multi-AI agent app powered by AutoGen
Thanks
6 replies