Closed PranayAnchuri closed 2 years ago
@PranayAnchuri Agreed the docs should be updated to make to make sure we are pointing developers in the right direction.
Not sure what your exact use case is, but running the node it self is likely not going to be too useful.
1) If your goal is to run tests, then the test harness will spin up the containers needed to run the test suite automatically.
if make test
is causing you issues let me know and we can look at it.
2) The SDK has a good example of what it takes to spin up a functioning node. https://github.com/xmtp/xmtp-js/blob/main/dev/docker-compose.yml.
You can get a functioning node for testing by executing cd ./dev && docker-compose up
in the SDK project folder.
@jazzz
If your goal is to run tests, then the test harness will spin up the containers needed to run the test suite automatically. if make test is causing you issues let me know and we can look at it.
Tests seem to fail as well. Test nodes are not deploying. I see a bunch of postgres errors
--- FAIL: TestNodes_Deployment (0.00s)
--- FAIL: TestNodes_Deployment/new_instances_connect_to_old_instances (0.02s)
store.go:23:
Error Trace: store.go:23
node_test.go:473
node_test.go:457
wakunode2.go:291
node.go:77
node_test.go:447
node_test.go:420
Error: Received unexpected error:
FATAL: role "postgres" does not exist (SQLSTATE=28000)
Test: TestNodes_Deployment/new_instances_connect_to_old_instances
Here's the entire log error.log
Going to close this since it was sorted out in Slack. Future first-time setups shouldn't run into this with the dev/up
workflow.
I am trying to start XMTP node on my local machine based on the instructions in https://github.com/xmtp/xmtp-node-go/blob/main/README.md
I get the following error when I try to run the node using
./build/xmtp
.It looked like a postgres issue. So, I ran
docker-compose up -d
and ensured thatgo_message_db
andgo_authz_db
are up and running.I then saw that db-connection-string option is required. So, I ran
but this throws
Not sure if there is any additional db setup required before string the node.