Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick start notes #47

Open
zsinag opened this issue Dec 13, 2019 · 0 comments
Open

Quick start notes #47

zsinag opened this issue Dec 13, 2019 · 0 comments

Comments

@zsinag
Copy link

zsinag commented Dec 13, 2019

I followed the instruction on our Quick Start page to install a graph node on a Ubuntu 18.04 machine.
Here's the issues I encountered and their solutions (thanks for the help @Jannis).

  1. docker, docker-compose, jq were not installed, resolved based on setup.sh output
  2. setup.sh error (ERROR: No containers to start), resolved in this commit
  3. The installation of graph-cli gave some errors. To fix them, I had to first install pkg-config and libsecret-1-dev, then run the command with sudo.
  4. The step with graph init failed due to older Node version, resolved after upgrading it to v10.
  5. The Node upgrade to v10 didn't actually remove the older version, which lead to further complications later (incompatible keytar version, node-gyp not compiling). We need Node.js version 10 (or 11) before installing graph-cli.
  6. After removing both graph-cli versions, it was successfully reinstalled with sudo npm install -g @graphprotocol/graph-cli --unsafe (the unsafe flag is needed to avoid certain permission errors, see this)
  7. Finally, yarn-create failed because the latest graph-node instance did not start up properly. When restarting the graph node, remove the old data with sudo rm -rf data/postgres.

After all this, the local graph node was up with the example subgraphs deployed and I was able to run graphQL queries against my local node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant