Api Server Listening at 127 0 0 1 39207 Failed to Continue
# Command-line quick start
If you're command-line savvy and just want to get up and running with IPFS right away, follow this quick-start guide. Please note that this guide assumes that you'll be installing Kubo, the reference implementation written in Go.
TIP
Don't want to use the command line right now? Give the desktop-app implementation of IPFS a try. It also does all the steps listed on this page automatically, so you can run IPFS from the terminal later whenever you want. Download IPFS Desktop now (opens new window)
# Prerequisites
If you have not yet installed Kubo, follow the install instructions.
# Initialize the repository
ipfs
stores all its settings and internal data in a directory called the repository. Before using IPFS for the first time, you'll need to initialize the repository with the ipfs init
command:
WARNING
Be careful with sudo
on Unix platforms (including macOS)! If you run sudo ipfs init
, the repository will be created for the root
user instead of your local user account. IPFS doesn't need root privileges, so it's best to run all ipfs
commands as a regular user!
If you are running on a server in a data center, you should initialize IPFS with the server
profile. Doing so will prevent IPFS from creating a lot of data center-internal traffic trying to discover local nodes:
There are a whole host of other configuration options you may want to set — check the full reference (opens new window) for more.
The hash after peer identity:
is your node's ID and will be different from the one shown in the above output. Other nodes on the network use it to find and connect to you. You can run ipfs id
at any time to get it again if you need it.
Now, try running the command suggested to you in the output of ipfs init
. The one that looks like ipfs cat /ipfs/<HASH>/readme
.
You should see something like this:
You can explore other objects in the repository. In particular, the quick-start
directory which shows example commands to try:
# Take your node online
Once you're ready to join your node to the public network, run the ipfs daemon in another terminal and wait for all three lines below to appear to know that your node is ready:
Make a note of the TCP ports you receive. If they are different, use yours in the commands below.
NEVER EXPOSE THE RPC API TO THE PUBLIC INTERNET
The API port provides admin-level access to your Kubo IPFS node. See RPC API v0 docs for more information.
Now, switch back to your original terminal. If you're connected to the network, you should be able to see the IPFS addresses of your peers when you run:
These are a combination of <transport address>/p2p/<hash-of-public-key>
.
Now, you should be able to get objects from the network. Try:
Using the above command, IPFS searches the network for the CID QmSgv...
and writes the data into a file called spaceship-launch.jpg
on your Desktop.
Next, try sending objects to the network, and then viewing it in your favorite browser. The example below uses curl
as the browser, but you can open the IPFS URL in other browsers as well:
Cool, huh? The gateway served a file from your computer. The gateway queried the Distributed hash table (DHT), found your machine, requested the file, your computer sent it to the gateway, and the gateway sent it to your browser.
Depending on the state of the network, curl
may take a while. The public gateways may be overloaded or having a hard time reaching you.
You can also check it out at your own local gateway:
By default, your gateway is not exposed to the world. It only works locally.
# Web console
You can view the web console on your local node by going to localhost:5001/webui
. This should bring up a console like this:
The web console shows files that are in your Mutable File System (MFS). MFS is a tool built into the web console that helps you navigate IPFS files in the same way you would a name-based file system.
When you add files using the CLI command ipfs add ...
, these files are not automatically available within the MFS. To view files in IPFS Desktop that you added using the CLI, you must copy the files over to the MFS:
# IPFS Companion
While we are at it, IPFS Companion (opens new window) is a browser extension that simplifies access to IPFS resources and adds support for the IPFS protocol.
It will automatically redirect IPFS gateway requests to your local daemon so that you are not relying on or trusting remote gateways.
It runs in Firefox (desktop and Android) and various Chromium-based browsers such as Google Chrome or Brave (opens new window) .
Check out its features (opens new window) and install it today!
- Direct download (opens new window)
- Install from Firefox Add-ons (opens new window)
- Install from Chrome Store (opens new window)
# Troubleshooting
# Check your Go version
IPFS works with Go 1.12.0 or later. To check what go version you have installed, type go version
:
If you need to update, we recommend you install from the canonical Go packages (opens new window) . Package managers often contain out-of-date Go packages.
# Check that FUSE is installed
You need to install and set up FUSE in order to mount the file system. For more details on setting up FUSE, see github.com/ipfs/kubo/blob/master/docs/fuse.md (opens new window)
# Further help
The IPFS community is friendly and able to help! Get support from other IPFS developers in the official IPFS forums (opens new window) , or join community chat channels.
Source: https://docs.ipfs.tech/how-to/command-line-quick-start/
0 Response to "Api Server Listening at 127 0 0 1 39207 Failed to Continue"
Post a Comment