Trigaten
Trigaten
WWasp-lang
Created by joshleeman on 10/31/2024 in #đŸ™‹questions
Deployment issues with migrations
Absolutely understood, appreciate any help yall can give đŸ™‚
15 replies
WWasp-lang
Created by joshleeman on 10/31/2024 in #đŸ™‹questions
Deployment issues with migrations
@matijash Any ideas for us to look into?
15 replies
WWasp-lang
Created by joshleeman on 10/31/2024 in #đŸ™‹questions
Deployment issues with migrations
@matijash does wasp allow us to revert db migrations? Given that we deleted and recreated the db, what secrets do we need to set?
15 replies
WWasp-lang
Created by joshleeman on 10/31/2024 in #đŸ™‹questions
Deployment issues with migrations
@joshleeman any other details?
15 replies
WWasp-lang
Created by joshleeman on 10/31/2024 in #đŸ™‹questions
Deployment issues with migrations
We are seeing this error:
The error message P1011: Error opening a TLS connection: unexpected EOF indicates that there is a problem establishing a secure connection to your PostgreSQL database.
The error message P1011: Error opening a TLS connection: unexpected EOF indicates that there is a problem establishing a secure connection to your PostgreSQL database.
15 replies
WWasp-lang
Created by joshleeman on 10/31/2024 in #đŸ™‹questions
Deployment issues with migrations
@matijash (I am working with @joshleeman ) Basically, he ran the db migrate command locally, it created a new migration file in migrations, then we deployed it live. However, when building, the server kept saying there was an issue with this latest migration and wouldnt build. It didn't seem possible to revert this--I see Prisma has this functionality, but wasp docs say not to use Prisma directly. As such, I tried deleting the migration locally then deploying, but the db seemed to have saved the migration somehow. At this point, we have deleted the database entirely and created a new one, but the server is having difficulty connecting to it even tho we set the database url secret.
15 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
@miho letting you know that I (mostly you đŸ™‚ ) have now solved this. Here is where I went wrong: - used the default app name on deploy - didn't know the perform migrate The first was very avoidable. For the second, I didn't see it noted on the deploy page, and even having done the tutorial might not have known to do it. It might be worth clarifying these further in the docs to help unexperienced devs like myself. I am happy to make a PR if you are interested đŸ™‚
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
It looks like this problem is fixed. Im having a diff problem with mailgun, looking into that. Ill update here when done.
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
I did not. I went thru those docs somewhat before, but not sure if I would have known to migrate (limited webdev experience). tysm, ill go through them fully now
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
This seems like a potential problem with wasp/the template. Signing off for today. Thanks for your help @miho .
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
No description
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
Everything works locally, im basically just copying yalls free saas example. Will keep investigating.
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
In server logs, I see this on page load: GET /auth/me 401 4.297 ms - 43 then this when i try to login:
POST /auth/email/login 500 138.080 ms - 148
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] PrismaClientKnownRequestError:
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] Invalid `prisma.authIdentity.findUnique()` invocation:
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] The table `public.AuthIdentity` does not exist in the current database.
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at Rn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:174:7325)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at Rn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:174:6754)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at Rn.request (/app/node_modules/@prisma/client/runtime/library.js:174:6344)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at login (/app/.wasp/build/server/src/auth/providers/email/login.ts:23:30)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at <anonymous> (/app/.wasp/out/sdk/wasp/server/utils.ts:26:5)
POST /auth/email/login 500 138.080 ms - 148
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] PrismaClientKnownRequestError:
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] Invalid `prisma.authIdentity.findUnique()` invocation:
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] The table `public.AuthIdentity` does not exist in the current database.
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at Rn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:174:7325)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at Rn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:174:6754)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at Rn.request (/app/node_modules/@prisma/client/runtime/library.js:174:6344)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at login (/app/.wasp/build/server/src/auth/providers/email/login.ts:23:30)
2024-10-03T20:23:29.999 app[1781564ef036d8] mia [info] at <anonymous> (/app/.wasp/out/sdk/wasp/server/utils.ts:26:5)
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
Failed to load resource: the server responded with a status of 401 () https://pub-adjust-server.fly.dev/auth/me Seeing this in web terminal
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
I may need to reset a bunch of keys, one sec
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
Notably, while building I saw this in terminal:
> Launching new machine
No machines in group app, launching a new machine
> Machine 1781564ef036d8 [app] was created
✔ Machine 1781564ef036d8 [app] update finished: success

WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:8080
Found these processes inside the machine with open listening sockets:
> Launching new machine
No machines in group app, launching a new machine
> Machine 1781564ef036d8 [app] was created
✔ Machine 1781564ef036d8 [app] update finished: success

WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:8080
Found these processes inside the machine with open listening sockets:
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
Interesting, so reran, and don't get that error anymore, but when I go to one of the pages (https://pub-adjust-client.fly.dev/audio-upload), I get this:
[Error] Origin https://pub-adjust-client.fly.dev is not allowed by Access-Control-Allow-Origin. Status code: 502
[Error] XMLHttpRequest cannot load https://pub-adjust-server.fly.dev/auth/me due to access control checks.
[Error] Failed to load resource: Origin https://pub-adjust-client.fly.dev is not allowed by Access-Control-Allow-Origin. Status code: 502 (me, line 0)
[Error] Origin https://pub-adjust-client.fly.dev is not allowed by Access-Control-Allow-Origin. Status code: 502
[Error] XMLHttpRequest cannot load https://pub-adjust-server.fly.dev/auth/me due to access control checks.
[Error] Failed to load resource: Origin https://pub-adjust-client.fly.dev is not allowed by Access-Control-Allow-Origin. Status code: 502 (me, line 0)
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
will do
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
Ah that was you, ty again
35 replies
WWasp-lang
Created by Trigaten on 10/3/2024 in #đŸ™‹questions
Failed to load resource: A server with the specified hostname could not be
ty!
35 replies