<p>Well I don't know for sure what is going on and would require more information to practically help.
But I would investigate how graphQL is getting the node's params from.
Then check that those are correct, then make sure the host where graphQL is running from can connect to the node's host.
If both node and gQL run on the same host it is likely a parameter issue (port, socket).</p>

CC BY-SA 4.0
2022-09-25T19:32:13.487Z
thank you for your answer, actually yes i tried to look if there is anything regarding how it connect to the node ... but found nothing .. im new to this.
Metaverse TechArt
CC BY-SA 4.0
2022-09-26T08:28:09.297Z
no worries, I'll try to find some time today to follow the instructions above, I'll revert back with my findings, although I'm not using cnode it will probably help me understand where gQL is getting the node's details from.
Actually could you print out your ${CNODE_HOME}/files/config.json file please?
ADA Capital - ADACT
CC BY-SA 4.0
2022-09-29T20:10:04.450Z
hello this is the config file : https://justpaste.it/7nwn6
Metaverse TechArt
CC BY-SA 4.0
2022-09-25T13:58:55.113Z
2022-09-25T14:57:03.470Z
2022-09-25T14:57:03.470Z
ADA Capital - ADACT
<p>I'm trying to run graphql following <a href="https://github.com/input-output-hk/cardano-graphql/wiki/Nix" rel="nofollow noreferrer">these instructions</a>.
I do already have dbsync &amp; cnode running for the preprod network, but I get this error:</p>
<blockquote>
<p>{&quot;name&quot;:&quot;cardano-graphql&quot;,&quot;hostname&quot;:&quot;DESKTOP-I38CEOE&quot;,&quot;pid&quot;:4332,&quot;level&quot;:20,&quot;msg&quot;:&quot;Establishing connection to cardano-node: Attempt 3 of 101, retrying...&quot;,&quot;time&quot;:&quot;2022-09-25T12:09:20.800Z&quot;,&quot;v&quot;:0}</p>
</blockquote>
<p>Any idea what could be the issue? Maybe I need to edit/add some env var for the CNODE?</p>
<p><a href="https://i.sstatic.net/YTKUU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YTKUU.png" alt="error screenshot" /></a></p>

<cardano-graphql>
Cardano GraphQL stuck Establish connection to cardano-node
# Cardano GraphQL stuck Establish connection to cardano-node

(Asked by: username_0 on 2022-09-25)

I'm trying to run graphql following [these instructions](https://github.com/input-output-hk/cardano-graphql/wiki/Nix).
I do already have dbsync & cnode running for the preprod network, but I get this error:

> {"name":"cardano-graphql","hostname":"DESKTOP-I38CEOE","pid":4332,"level":20,"msg":"Establishing connection to cardano-node: Attempt 3 of 101, retrying...","time":"2022-09-25T12:09:20.800Z","v":0}

Any idea what could be the issue? Maybe I need to edit/add some env var for the CNODE?

[![error screenshot](https://i.sstatic.net/YTKUU.png)](https://i.sstatic.net/YTKUU.png)

**Tags:** cardano-graphql

---

## 1 answers

### Answer by username_1 on 2022-09-25. Score: -1

Well I don't know for sure what is going on and would require more information to practically help.
But I would investigate how graphQL is getting the node's params from.
Then check that those are correct, then make sure the host where graphQL is running from can connect to the node's host.
If both node and gQL run on the same host it is likely a parameter issue (port, socket).

> **Comments:**
> **username_0**: thank you for your answer, actually yes i tried to look if there is anything regarding how it connect to the node ... but found nothing .. im new to this.  
> **username_1**: no worries, I'll try to find some time today to follow the instructions above, I'll revert back with my findings, although I'm not using cnode it will probably help me understand where gQL is getting the node's details from. Actually could you print out your ${CNODE_HOME}/files/config.json file please?  
> **username_0**: hello this is the config file : https://justpaste.it/7nwn6  

---

