question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hasura graphql-engine crashes on accessing console

See original GitHub issue

I deployed the Hasura docker container to an AWS t2.medium instance. It connects to an EC2 instance with a Postgres container. Initially it worked fine with one or two databases tracked. I added all databases and now the container crashes when attempting to access the console. Initially the console will display nothing for available tables in the schema. After a minute or two of trying to access the console the docker container crashes and brings down the AWS EC2 instance with it.

Docker logs outputs:

{"timestamp":"2019-10-16T16:42:38.742+0000","level":"info","type":"schema-sync-thread","detail":{"thread_type":"listener","info":{"received_event":{"instance_id":"cbf74cbf-774c-4e45-a8c5-31bc9b823f4a","occurred_at":"2019-10-16T16:43:20.632584Z"}}}}
{"timestamp":"2019-10-16T16:42:38.742+0000","level":"info","type":"schema-sync-thread","detail":{"thread_type":"processor","info":{"processed_event":{"instance_id":"cbf74cbf-774c-4e45-a8c5-31bc9b823f4a","occurred_at":"2019-10-16T16:43:20.632584Z"}}}}
graphql-engine: internal error: Unable to commit 1048576 bytes of memory
    (GHC version 8.6.5 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

htop when it crashes: image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
0x777commented, Nov 5, 2019

@mzagaja Thanks for taking the time to dig through the problematic queries. We’ll improve these queries as soon as possible.

I think users might appreciate some kind of error that better suggests this in the logging when it fails for this reason, or a change that would lead to a more graceful failure than shutting down the instance

I’m not quite sure if we can catch this error but we should definitely document this behaviour.

On my end running a console refresh does not look like it is stressing our database server

The response of an introspection query is cached till the schema changes. This could be the reason.

0reactions
coco98commented, Oct 6, 2021

Related to: #7585

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Hasura GraphQL engine errors
Troubleshoot Hasura GraphQL engine errors. ... Should there be any error coming from the Hasura console UI, they will show up in the...
Read more >
Getting started | Hasura GraphQL Docs
Deploy the Hasura GraphQL engine, with access to a Postgres database to store its metadata. Connect new/existing database(s) and set up and test...
Read more >
Production checklist | Hasura GraphQL Docs
Checklist for deploying Hasura GraphQL engine to production. ... when using flags, no --enable-console flag implies console is disabled graphql-engine ...
Read more >
Hasura GraphQL Engine – Easy Start in 2022 (Mini-Course)
Get complete 6,5 Hours Video Course about Hasura for the lowest possible price 20%-off with HASURA -EASY-START code: ...
Read more >
Hasura on Heroku fails to make connection to postgres
cat Dockerfile FROM hasura/graphql-engine:v2.9.0 # Enable the console ENV HASURA_GRAPHQL_ENABLE_CONSOLE=true # Enable debugging mode.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found