fantom-api-graphql icon indicating copy to clipboard operation
fantom-api-graphql copied to clipboard

config sample file?

Open peak3d opened this issue 5 years ago • 2 comments

Is it possible to add a sample config file? Or a dumpconfig command line arg?

I have a local lachesis node running, but I'm unable to get the api running:

App Version:    undefined
Commit Hash:    undefined
Commit Time:    undefined
Build Time:     undefined
Build By:       undefined
NOTICE   cache/New: memory cache initialized
NOTICE   db/New: database connection established
NOTICE   db/checkAccountCollectionState: accounts collection empty
NOTICE   db/checkTransactionCollectionState: transactions collection empty
NOTICE   db/checkContractCollectionState: contracts collection empty
NOTICE   db/checkUniswapCollectionState: swaps collection empty
CRITICAL rpc/New: dial unix: missing address
CRITICAL repository/connect: can not connect Lachesis RPC interface, dial unix: missing address
CRITICAL repository/New: repository init failed
2021/01/01 15:30:16 dial unix: missing address

The path to ipc file should be OK

peak3d avatar Jan 01 '21 14:01 peak3d

hey. I found out that as an example file you can use /doc/example.config.json. Use -cfg flag to specify it's destination.

besides I had another issue with the same output and it was due to node.url property which contained following path to ipc: ~/.lachesis/fakenet-1/lachesis.ipc . I solved it via specifying the exact same complete path that was printed at lachesis launch (IPC endpoint opened url=/root/.lachesis/fakenet-1/lachesis.ipc line in debug).

ruvlol avatar Mar 19 '21 19:03 ruvlol

Hello, I'm facing the same issue but unable to figure out and fix the issue please see the log and settings. setting3 log-2 settings_1

zakrian07 avatar Dec 03 '21 12:12 zakrian07