cardano-foundation / cardano-graphql

GraphQL API for Cardano
Apache License 2.0
259 stars 103 forks source link

cardano-graphql node.js does not listen 3100 port #820

Closed lcgogo closed 1 year ago

lcgogo commented 1 year ago

Ask a question

One of my node cardano-graphql node.js does not listen 3100 port

root@75f7dcbf9f10:/app/packages/server/dist# netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.11:35423        0.0.0.0:*               LISTEN      -
udp        0      0 127.0.0.11:44093        0.0.0.0:*                           -

And the full container log is below

root@75f7dcbf9f10:/app/packages/server/dist# exit
exit
root@ip-10-2-1-15:/data/ada/cardano-graphql# docker logs ada_8.0.0
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":30,"module":"CardanoNodeClient","msg":"Initializing. This can take a few minutes...","time":"2023-02-15T05:16:33.953Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84871868,"hash":"d63a005b57e398bf052f8da576cebd605e7745af6b1c56ff687c4fb2a2722dfe","blockNo":8401471},"lastTipUpdate":"2023-02-15T05:15:59.353275784Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":1,"runtimeStats":{"cpuTime":5350785845,"currentHeapSize":624,"gcCpuTime":3080777259,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":3,"totalMessages":3,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27068},"msg":"Initial value fetched","time":"2023-02-15T05:16:34.504Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":30,"module":"CardanoNodeClient","msg":"Initialized","time":"2023-02-15T05:16:34.517Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":30,"module":"Server","msg":"Initializing","time":"2023-02-15T05:16:34.517Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":30,"module":"HasuraClient","msg":"Initializing","time":"2023-02-15T05:16:34.962Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"HasuraClient","msg":"graphql-engine setup","time":"2023-02-15T05:16:35.195Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84871931,"hash":"c2e77627af185488f844f9ac3424ed1793b892dd7ec405f2f0d4f428be96c6b0","blockNo":8401473},"lastTipUpdate":"2023-02-15T05:17:02.329311707Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5450460239,"currentHeapSize":834,"gcCpuTime":3162357348,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27131},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:17:04.516Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84871931,"hash":"c2e77627af185488f844f9ac3424ed1793b892dd7ec405f2f0d4f428be96c6b0","blockNo":8401473},"lastTipUpdate":"2023-02-15T05:17:02.329311707Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5530444323,"currentHeapSize":834,"gcCpuTime":3232089310,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27131},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:17:34.516Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84871983,"hash":"af8f081e4c38648213dfb410f66a8863fedf7cc34b29147c870db140ccfaaf37","blockNo":8401475},"lastTipUpdate":"2023-02-15T05:17:54.399123542Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5624834017,"currentHeapSize":830,"gcCpuTime":3309547104,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27183},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:18:04.517Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84871997,"hash":"ca0590497baed587c6567a0447d6726303f8e98e9ee2a7b0e35461c0804e598e","blockNo":8401477},"lastTipUpdate":"2023-02-15T05:18:08.32979774Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5715507959,"currentHeapSize":830,"gcCpuTime":3386694251,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27197},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:18:34.517Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872051,"hash":"e72b3148927ff50625048471ef597d0b4553fa23458abb0916e47a22a7eff6f5","blockNo":8401478},"lastTipUpdate":"2023-02-15T05:19:02.70325389Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5783239143,"currentHeapSize":831,"gcCpuTime":3443028714,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27251},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:19:04.517Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872051,"hash":"e72b3148927ff50625048471ef597d0b4553fa23458abb0916e47a22a7eff6f5","blockNo":8401478},"lastTipUpdate":"2023-02-15T05:19:02.70325389Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5853240048,"currentHeapSize":834,"gcCpuTime":3503241804,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27251},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:19:34.520Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872102,"hash":"0081f1135f4de4f1e2577baa6e758a77eee2b0a6c797ab4c4f3db8f64685944a","blockNo":8401480},"lastTipUpdate":"2023-02-15T05:19:53.49391848Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5933159883,"currentHeapSize":831,"gcCpuTime":3568786968,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27302},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:20:04.545Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872102,"hash":"0081f1135f4de4f1e2577baa6e758a77eee2b0a6c797ab4c4f3db8f64685944a","blockNo":8401480},"lastTipUpdate":"2023-02-15T05:19:53.49391848Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":5991010239,"currentHeapSize":839,"gcCpuTime":3618231863,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27302},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:20:34.523Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872157,"hash":"d04cfa739d0be9114a1b2b04f3fd5537ad344be8a7846add91136fc360820f1a","blockNo":8401482},"lastTipUpdate":"2023-02-15T05:20:48.30947933Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":6093478126,"currentHeapSize":830,"gcCpuTime":3703247670,"maxHeapSize":846},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":4,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27357},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:21:04.536Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872177,"hash":"3fd93903f31c1bb36d7105fdfb188f3df58ae1622eff68b3edb5a96cf69a2762","blockNo":8401483},"lastTipUpdate":"2023-02-15T05:21:08.691172169Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":10307298127,"currentHeapSize":1279,"gcCpuTime":3946869957,"maxHeapSize":19004},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":926,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27377},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:21:34.532Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872177,"hash":"3fd93903f31c1bb36d7105fdfb188f3df58ae1622eff68b3edb5a96cf69a2762","blockNo":8401483},"lastTipUpdate":"2023-02-15T05:21:08.691172169Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":11514960176,"currentHeapSize":1032,"gcCpuTime":4014380401,"maxHeapSize":19004},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":1384,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27377},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:22:04.535Z","v":0}
{"name":"cardano-graphql","hostname":"75f7dcbf9f10","pid":1,"level":20,"module":"DataFetcher","instance":"ServerHealth","value":{"startTime":"2023-02-15T05:01:18.070882631Z","lastKnownTip":{"slot":84872246,"hash":"d7ccdaa92f6d25768ee642a8942b160ee2e5aa024896163e8a8543a9f62b85d7","blockNo":8401485},"lastTipUpdate":"2023-02-15T05:22:17.570726916Z","networkSynchronization":1,"currentEra":"Babbage","metrics":{"activeConnections":2,"runtimeStats":{"cpuTime":11638649979,"currentHeapSize":1003,"gcCpuTime":4109289590,"maxHeapSize":19004},"sessionDurations":{"max":0,"mean":329768,"min":0},"totalConnections":4,"totalMessages":1386,"totalUnrouted":0},"connectionStatus":"connected","currentEpoch":394,"slotInEpoch":27446},"msg":"value fetched after 30 seconds","time":"2023-02-15T05:22:34.539Z","v":0}

And another node is ok

root@cc9ea62ad02c:/app/packages/server/dist# netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:3100            0.0.0.0:*               LISTEN      1/node
tcp        0      0 127.0.0.11:35611        0.0.0.0:*               LISTEN      -
udp        0      0 127.0.0.11:50793        0.0.0.0:*
lcgogo commented 1 year ago

ignore, wait few mins, up now

docker exec -it ada_8.0.0 netstat -ntulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:3100            0.0.0.0:*               LISTEN      1/node
tcp        0      0 127.0.0.11:35423        0.0.0.0:*               LISTEN      -
udp        0      0 127.0.0.11:44093        0.0.0.0:*