Skip to content

Quick start notes #47

Open
Open
@zsinag

Description

@zsinag

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions