Troubleshooting
This page covers common issues you might encounter with hinter-core.
Viewing Logs
The first step in troubleshooting is always to check the logs. Since hinter-core runs as a background Docker container, you need to use a specific command to see its output.
Open a terminal on your host machine and run:
docker logs my-hinter-core
(This assumes you named your container my-hinter-core
as recommended in the Quickstart.)
Running hinter-core without Docker
In some cases, Docker's host networking feature may not work reliably. If you suspect this is the issue, we recommend running the application directly on your host machine instead of in a container.
Prerequisites:
Steps:
-
Clone the repository: Open your terminal and clone the hinter-core repository from GitHub.
git clone https://github.com/hinter-net/hinter-core.git
cd hinter-core -
Check out the desired version: You can check out a specific version tag. You can find the available tags on the GitHub releases page.
# Example: git checkout 0.1.1
git checkout <tag>If you want to run the latest development version, you can skip this step and stay on the
main
branch. -
Install dependencies: Install the necessary Node.js packages.
npm install
-
Install Pear: Pear is a tool for building and running peer-to-peer applications. Install the npm package globally.
npm install -g pear
Then, run it once to complete the installation and follow any additional instructions.
pear
-
Configure your data directory: hinter-core will look for the
hinter-core-data/
directory in the root of the cloned repository. If you have an existing data directory, copy it here. If not, you can initialize a new one.- To initialize a new keypair and data directory:
This will create a
npm run initialize
hinter-core-data
directory inside the hinter-core project folder.
- To initialize a new keypair and data directory:
-
Start the application: Run the application.
npm run start
hinter-core will now be running in your terminal. You can press
Ctrl+C
to stop it.
Unlike the Docker setup, this method will not automatically restart hinter-core when your computer reboots. For continuous operation, you will need to configure this yourself using a process manager like pm2 or systemd.