-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Events can't be added to invocation logs due to missing ID #4009
Comments
@sf-vio What version of Postgres are you on? Is it hosted on Heroku? Can you run the result of the following SQL:
|
Same issue, this is what I see postgres version
|
It appears that the column default is getting dropped. I am not sure how this happens. The fix, till root cause is found, is to add the column default back:
|
Thank you @tirumaraiselvan ! That fixes it. I see what happened. I ran DROP SCHEMA public CASCADE;
CREATE SCHEMA public; Then brought the container back up and the DEFAULT was gone. Is there a better way to wipe all the data? Is there a way to bring back these defaults after I've wiped the data like this? I'm concerned I may have missed something else. Tested this with the latest docker image https://github.com/hasura/graphql-engine/tree/stable/install-manifests/docker-compose |
@tiagob If you run Maybe instead of dropping schema, you can just drop all tables (function, views, etc) : https://stackoverflow.com/a/3327326/1911889 Also, created this issue to track a longer-term solution: #4217 |
Very helpful. Thank you @tirumaraiselvan ! I love this product |
A quick script to get the defaults back (on v1.3.2) :
|
Closed in #6085 |
No events can added to the invocation logs. This means that all events are re-triggered every time the graphql engine is restarted. Error log shows that the events cannot be added to the invocation logs due to a null ID. Example log
{"type":"event-trigger","timestamp":"2020-02-25T09:10:25.557+0000","level":"error","detail":{"internal":{"statement":"\n INSERT INTO hdb_catalog.event_invocation_logs (event_id, status, request, response)\n VALUES ($1, $2, $3, $4)\n ","prepared":true,"error":{"exec_status":"FatalError","hint":null,"message":"null value in column "id" violates not-null constraint","status_code":"23502","description":"Failing row contains (null, c8fbcfca-e3a6-40d4-9d5b-524b1f642c8b, 200
The text was updated successfully, but these errors were encountered: