Git Product home page Git Product logo

Comments (11)

tycm4109 avatar tycm4109 commented on May 31, 2024

@samohyes Hi, did you build release or master branch? It would be best to run the node according to https://docs.btfs.io/docs/btfs-demo documentation.

from go-btfs.

samohyes avatar samohyes commented on May 31, 2024

Yeah. I am using the master branch. I just download the source code and build the binary using the script install_btfs.sh. I know the doc you are pointing to. It uses some prebuilt binary. But I actually want to change the source code and build it myself.

from go-btfs.

tycm4109 avatar tycm4109 commented on May 31, 2024

@samohyes Okay, I see. It's just that for us, the master branch is what we develop on. So we usually recommend users to use the stable release branch or pre-built binaries as its been tested many times. If you run into an issue on the release branch or pre-built binary, we can definitely log it for further bug fixing.

from go-btfs.

samohyes avatar samohyes commented on May 31, 2024

I don't know why. I tried the binary and deleted the ~/.btfs dir. Then everything seems fine now. Thanks for the help.

from go-btfs.

samohyes avatar samohyes commented on May 31, 2024

@tycm4109 emm, it looks like the problem is the 5001 port ui apis.
I am trying

`curl "http://localhost:5001/api/v0/id"

<title>500 Internal Privoxy Error</title>

500 Internal Privoxy Error

Privoxy encountered an error while processing your request:

Could not load template file no-server-data or one of its included components.

Please contact your proxy administrator.

If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It's typically the Privoxy install directory).

`

So the http apis fail me. And the btfs daemon outputs like this

btfs daemon
Initializing daemon...
go-btfs version: 1.0.0-dev-9f4b12e
Repo version: 7
System version: amd64/linux
Golang version: go1.13.3
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.1.67/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/199.168.139.56/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Remote API server listening on /ip4/127.0.0.1/tcp/5101
Daemon is ready
Hosts info will be synced at [SCORE] mode
23:52:06.065 ERROR cmd/btfs: Convert version2 from string to int error, reasons: [strconv.Atoi: parsing "0-dev": invalid syntax] autoupdate.go:377
23:52:06.065 ERROR cmd/btfs: Version compare error, reasons: [strconv.Atoi: parsing "0-dev": invalid syntax] autoupdate.go:172

from go-btfs.

richlee33 avatar richlee33 commented on May 31, 2024

@samohyes can you try to change the URL to be:
http://localhost:5001/api/v1/id
we have recently changed the api version to 1.

from go-btfs.

samohyes avatar samohyes commented on May 31, 2024

@richlee33 Yeah. I tried again and the same thing happens. I can only use btfs add but no http api is working now.

curl "http://localhost:5001/api/v1/id"

<title>500 Internal Privoxy Error</title>

500 Internal Privoxy Error

Privoxy encountered an error while processing your request:

Could not load template file no-server-data or one of its included components.

Please contact your proxy administrator.

If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It's typically the Privoxy install directory).

from go-btfs.

richlee33 avatar richlee33 commented on May 31, 2024

@samohyes it seems like there is an issue with your machine resolving "localhost". perhaps its a firewall or proxy issue.
can you try instead of localhost to use the following addresses:
http://127.0.0.1:5001/api/v1/id
http://192.168.1.67:5001/api/v1/id
http://199.168.139.56:5001/api/v1/id
i gathered the ip addresses from the daemon output that was posted earlier.
thanks.

from go-btfs.

samohyes avatar samohyes commented on May 31, 2024

@richlee33 Still not working.. So sad...

from go-btfs.

taiyangc avatar taiyangc commented on May 31, 2024

@samohyes That looks like a VPN configuration issue. Please try to turn off your VPN or bypass the local 127.0.0.1 domain. For more information: https://tinyurl.com/t8946pt

from go-btfs.

samohyes avatar samohyes commented on May 31, 2024

Cool. Exactly. Thanks.

from go-btfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.