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
The electric proxy hangs when LOG_LEVEL: "debug"
is NOT set
#655
Comments
Here's the PCAP of when the hang occurs https://drive.google.com/file/d/19lzfrUFxXbc9p_R4CAjBFCELWwG9uqH3/view?usp=sharing In the pcap first graphile-worker installs itself which succeeds |
Hey @gorbak25. Thanks for the detailed report! I take it you're using Prisma to manage your app's migrations? What username does it use to connect to the Proxy? And if possible, please include the full Electric log, both with LOG_LEVEL set to debug and without it. If you can also provide Postgres logs to correlate with, that'd be superhelpful. |
@gorbak25 if you could also provide the content of the migration that's failing that'd also be extremely helpful. Thanks |
@gorbak25 is this still an issue? |
For me it is still an issue. I tried it with log level debug but got the same result. The migrations just hang and never finish without any error. |
@andrezimpel Thanks for letting us know! We'll look into this. |
I cannot reproduce this using the latest version Electric. Here's what I did: Create a file named
Start Electric sync service with Execute
Execute
Reset the database, restart the sync service with
This may have been another symptom of the problem fixed in #998. |
I'm using the new migration proxy. When pushing migrations via it using
yarn prisma migrate deploy --schema prisma/electric-proxy/schema.prisma
the tool hangs and never ends. When connecting to the proxy via netcat the proxy accepts the connection but never sends anything back.The logs of the electric server don't indicate anything was wrong. I then added
LOG_LEVEL: "debug"
to it to see what is going on. Turns out the prisma migration tool started working! I then proceeded to disable debug mode again and the proxy hanged again .-. Did that a few more times and I get the same result everytime:In debug mode when i'm running migrations the logs are littered with
18:23:24.440 pid=<0.3431.0> proxy_session_id=6 [debug] unrecognised from_clause object
For example:
The text was updated successfully, but these errors were encountered: