mathieulavoie / Bitcluster

https://www.bit-cluster.com
MIT License
96 stars 28 forks source link

Make an installation procedure. #1

Open mathieulavoie opened 8 years ago

mathieulavoie commented 8 years ago

Do an installation procedure to get Bitcluster run on your own machine.

pshenmic commented 8 years ago

+1

After installation dependencies:

C:\Users\test\Downloads\Bitcluster-master>start_webapi.py Traceback (most recent call last): File "C:\Users\test\Downloads\Bitcluster-master\start_webapi.py", line 1, in from web.api import app File "C:\Users\test\Downloads\Bitcluster-master\web\api.py", line 3, in from web.dao import getNodeFromAddress, getNodeInformation, getTransations, groupByAllDistribution, groupbyNode, File "C:\Users\test\Downloads\Bitcluster-master\web\web.py", line 2, in from web.dao import getNodeFromAddress, getNodeInformation, getTransations, groupByAllDistribution, groupbyNode, ImportError: No module named dao

I'm developer, but not familiar with python

mathieulavoie commented 8 years ago

@pshenmic You need Python 3 to run the projet. I will add it in the requirements. I did got the exact same issue as you when I did run it with Python 2.7.

pshenmic commented 8 years ago

C:\Users\test\Downloads\Bitcluster-master>py start_website.py

Where should i place the database? Why there isnt any documentation for this tool? That's confusing

anton48 commented 8 years ago

yes, python3 is necessary. and as far as I understand you need mongodb and bitcoind with full node data on the machine.

then you may start build_cluster.py and it will crawl data from bitcoind to mongo.

then you may start start_website.py and open http://127.0.0.1:5000 (or another ip address if it is remote machine, you need to change app.run for that) in the browser.

however, process of crawling failed in my case and web interface says "Invalid or inexistant address" when I checked several addresses.

mathieulavoie commented 8 years ago

@pshenmic: see https://github.com/mathieulavoie/Bitcluster/wiki/Installation-Procedure

@anton48: Building the database from scratch is a bit more complex. I did add a section into the installation procedure. Let me know if you have any question or if something doesn't work,

anton48 commented 8 years ago

@mathieulavoie: this is exactly what I did and build_cluster.py script (step 5 of procedure "Creating the database from scratch") failed:

[/home/a48/Bitcluster]# python3.4 ./build_cluster.py 1 Block 1 crawled Block 2 crawled Block 3 crawled [...] Block 117501 crawled Nb addr : 34076 Nb nodes : 24595 Waiting for insertion thread to complete... DB Sync Finished An exception will rise DB Sync Finished

nothing happens after this message for a long time and I pressed ctrl-c. At this point I stopped and was going to investigate the problem later.

mathieulavoie commented 8 years ago

The message shoud be "An exception will rise, press any key to see the Stacktrace". It used to be for debugging purpose during the tool development. I will remove it in the next commit.

maciekit commented 8 years ago
  1. After reaching to last block it says
Block 423534 crawled
Block 423535 crawled
Block 423536 crawled
Block 423537 crawled
Block not found

and you have to wait for timeout to have it inserted into db. This could be avoided by checking via rpc how many blocks are there.

  1. And maybe you should consider adding second parameter here:
$ ./build_cluster.py 
Usage: python ./build_cluster.py <starting block id> <ending block id>

so user can choose how big range would like to have.