Bitcoin Forum
October 08, 2024, 02:17:58 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 »
  Print  
Author Topic: Pushpool - Tech Support  (Read 135217 times)
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


I'm not just any shaman, I'm a Sha256man


View Profile
July 24, 2011, 12:49:31 AM
 #321

yep, it was.  testing.

Thank you Flowz
You're welcome Viceroy, if you need help with the front-end of the pool don't hassle to contact me.
The front-end is pretty easy to setup, but I dislike the lay-out of MiningFarm so I'm modificating that a lot!

I would love to see your work... In the future I plan to have download theme features on the official website, but I'm still trying to get some optimised stabled code going before I think about creating a template system.
Viceroy
Hero Member
*****
Offline Offline

Activity: 924
Merit: 501


View Profile
July 24, 2011, 01:24:30 AM
 #322

The init steps are as follows:

1. other stuff
2. init network ports
3. init database
4. print "initialized"

It sounds like your database is causing some sort of crash upon init.

This is most helpful and ought to be in neon somewhere.


So what happens now? 

I point my miners at this and eventually I solve a new block how do I get paid?
Where does the 50 btc go?





Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


I'm not just any shaman, I'm a Sha256man


View Profile
July 24, 2011, 06:04:33 AM
 #323

The init steps are as follows:

1. other stuff
2. init network ports
3. init database
4. print "initialized"

It sounds like your database is causing some sort of crash upon init.

This is most helpful and ought to be in neon somewhere.


So what happens now? 

I point my miners at this and eventually I solve a new block how do I get paid?
Where does the 50 btc go?







This is how it works

Bitcoind is link for the bitcoin network to give work for Pushpool. Pushpoold gives out work that is at Difficulty 1(I don't know how this works exactly but it is usually at difficulty 1). Anyways Pushpool gives our work at difficulty 1 to any miner that connects that has the correct credentials for it. Once a block has been solved by one of the miners the bitcoin network will (in a certain sense) send your bitcoind wallet with 50BTC as a category "Immature" which will be valid once it hits 120 confirmations which the category name will be set to "Generate".

You can figure out your confirms by running bitcoind in the back ground then going into another terminal or SSH window and typing in
Code:
./bitcoind listtransactions
Flowz
Member
**
Offline Offline

Activity: 114
Merit: 10


Bitcoin = Money for the people, by the people.


View Profile
July 24, 2011, 01:42:44 PM
 #324

Btw, make sure to run bitcoind as this:
Code:
./bitcoind -server -daemon
-daemon is important, because that keeps the proccess running even if you close the SSH session/client!

Btw an update about the theme, it's not from scratch though:


The php part will be 100% MiningFarms and I will give credit to them Wink
Viceroy
Hero Member
*****
Offline Offline

Activity: 924
Merit: 501


View Profile
July 24, 2011, 02:30:58 PM
 #325

I used:

./bitcoind &

The server bit is in my .conf file.

Where'd you steal that theme?  Lookin good.


Flowz
Member
**
Offline Offline

Activity: 114
Merit: 10


Bitcoin = Money for the people, by the people.


View Profile
July 24, 2011, 02:51:30 PM
 #326

I tested ./bitcoind -server & yesterday and it stopped after the session closed.

http://www.dreamtemplate.com/templates/Dynamic_XHTML_-_3D_CU3ER/detail/6669.html

Viceroy
Hero Member
*****
Offline Offline

Activity: 924
Merit: 501


View Profile
July 24, 2011, 05:30:34 PM
 #327


i set the server flag in the server.json


"./bitcoind -server & "

Should not close when you close your session. 
Perhaps it is coincidence?

Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


I'm not just any shaman, I'm a Sha256man


View Profile
July 24, 2011, 07:13:07 PM
 #328

its always safer to go with -daemon

and that is a cool layout... I can't wait till I get Templates features setup. Still optimising tho
Flowz
Member
**
Offline Offline

Activity: 114
Merit: 10


Bitcoin = Money for the people, by the people.


View Profile
July 24, 2011, 08:37:17 PM
 #329

its always safer to go with -daemon

and that is a cool layout... I can't wait till I get Templates features setup. Still optimising tho
Thanks, You should give us a preview too! Cheesy
cablepair
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
July 28, 2011, 07:02:28 PM
 #330

hello gents

I was hoping one of you kind fellows could help me out before I lose my mind.

I am working on setting up a local bit mining pool for me and some friends

any ways I got pushpool up and running with bitcoind
and I have the web site front end
everything seemed happy as can be

I have my account
and I registered my worker

but when I go to mine it says wrong username/password

I cant figure it out

I know mining works beacuse if I mine with the rpc username and pass I set int he bitcoin conf it works just fine
but none of the workers I setup in mining farm seem to want to work

mining farm and pushpool are using the same mysql database

I run ./bitcoind
then I run ./blkmond server.json

everything apears to be online and stable

the mining farm front end is giving me no errors of any kind

but my miner is saying wrong username / password

any ideas?
dikidera
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
July 28, 2011, 07:43:58 PM
 #331

Are you sure the prepared sql statement in pushpoold's server.json is for the db structure of mining farm?
cablepair
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
July 28, 2011, 07:46:56 PM
 #332

mining farm's config.php
and pushpool's server.json

both have the same database credentials

and the database is working
dikidera
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
July 28, 2011, 07:48:02 PM
 #333

mining farm's config.php
and pushpool's server.json

both have the same database credentials

Im not asking about credentials. I was asking about the prepared sql statement.

Anywho, link me to Xenland's mining farm thread as i cant find it.
Flowz
Member
**
Offline Offline

Activity: 114
Merit: 10


Bitcoin = Money for the people, by the people.


View Profile
July 28, 2011, 08:41:50 PM
 #334

Have you imported the front-end's SQL template/file yet?
cablepair
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
July 28, 2011, 09:16:36 PM
 #335

http://forum.bitcoin.org/index.php?topic=10321.0

thats the pushpool thread , the mining farm thread link is at the bottom

I imported this:  miningfarm_database.sql

which coincidently is not the name of the file that we are told to import in the thread
but after I imported it I was able to register my account and setup worker etc
the front end seems to be working just fine, I can log in and play around with all the admin features etc
but when I try to actually mine on the pool with the registered worker it says
wrong username / password in guiminer
ziomik
Legendary
*
Offline Offline

Activity: 1960
Merit: 1012


SELL bitcoinmarket.net | bitcoinitalia.com SELL


View Profile WWW
July 28, 2011, 09:21:06 PM
Last edit: July 28, 2011, 09:41:00 PM by ziomik
 #336

Sorry for my english...

BLKMOND dose not want to stay running it dies with the following error:
Code:
error: uncaptured python exception, closing channel <__main__.NodeConn connected at 0x1256170> (<type 'exceptions.ValueError'>:got bad checksum "\xf9\xbe\xb4\xd9tx\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb7\x01\x00\x00\xa6\xa3C\xb4\x01\x00\x00\x00\x02$\x9e&|\xfd9\x05I5\xbe \xda#0\xaa[F\x11\xa3\x1et\xe3~\xb6\xd6\x90\xf5\xfc!5\xd9\n\x8b\x00\x00\x00\x8bH0E\x02 \x7fF\x8a,yB\xff\xd1v\xcbk9\xd7\x13\xb0!Q\x9e\x12\x0e\xc3\xb9*\xfc% 0\xc9*e\x00M\x02!\x00\xbd\xe9\xc9\x9fj\x12\xdcw\x84\xc7f\x04X\xe0\xb1\x83>\xc5+\x08\x1cS]\xc1\xbe\x9fX\xb8\xd3\xdc\xd0\xf1\x01A\x04Ivg\x98\x90\xc4\x12&c\xf70\x1c?\x15a\x89`\xbe\x8e)Y3\xac7\xee\xc3\x83\x85\x83\xd1\xa0w\x88\\y\x8e\xb2\xbe\xd0\xe7k\x9a$\xb05c\xc9\xdf\xeeYt_\xf2\xda\r\xad0I1\x91\x0f`?(\xff\xff\xff\xff\r\xc46r\xecNTn\xad\x0c\x0cB\xeaU\r\x19A\xf4dB?u6\xe25\xa2\xe2\xa5X'W\xe6}\x00\x00\x00\x8cI0F\x02!\x00\xd5!\xd9!\x02\xdbn\xa0\xed8\xbd\xd6\xc0NN\xba\x82q\x17\x1e\xaf1W\xd5\xf9A\x174LV|k\x02!\x00\xae\xe7\xfad\xe6\x8cM\x97s\xfd\xfc%s\xa0y\xe4\xe2\x07\x96B,\xa7\xd3\x8b\xcc\xc9\xea\xd4\xa7-\x05\x18\x01A\x04Ivg\x98\x90\xc4\x12&c\xf70\x1c?\x15a\x89`\xbe\x8e)Y3\xac7\xee\xc3\x83\x85\x83\xd1\xa0w\x88\\y\x8e\xb2\xbe\xd0\xe7k\x9a$\xb05c\xc9\xdf\xeeYt_\xf2\xda\r\xad0I1\x91\x0f`?(\xff\xff\xff\xff\x02;\x9c\x03\x00\x00\x00\x00\x00\x19v\xa9\x14xD\xca\x19\x0f\xed1\x97,\xa6\xa6*\xadL\xfbT\xc12o\x93\x88\xac@\xd2\xdf\x03\x00\x00\x00\x00\x19v\xa9\x14\xe6\xa8\x99\x92}M\xd1~\xe8\xff\x85\x02\xees\xce\xc8\x83!v\xd1\x88\xac\x00\x00\x00\x00" [/usr/lib/python2.7/asyncore.py|read|79] [/usr/lib/python2.7/asyncore.py|handle_read_event|438] [./blkmond|handle_read|573] [./blkmond|got_data|613])
close

my blkmond.cfg is:
Code:
host=ipremote
port=8333
pid=/tmp/pushpoold.pid
also tried
Code:
host=127.0.0.1
port=8333
pid=/tmp/pushpoold.pid

but I have always the same error. Can anyone help me? thanks a lot..

DOMINI IN VENDITA/NOLEGGIO
bitcoinmarket.net | bitcoinitalia.com

Contattatemi pure per info.
---- +++ ----
"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
ziomik
Legendary
*
Offline Offline

Activity: 1960
Merit: 1012


SELL bitcoinmarket.net | bitcoinitalia.com SELL


View Profile WWW
July 28, 2011, 09:24:25 PM
 #337

http://forum.bitcoin.org/index.php?topic=10321.0

thats the pushpool thread , the mining farm thread link is at the bottom

I imported this:  miningfarm_database.sql

which coincidently is not the name of the file that we are told to import in the thread
but after I imported it I was able to register my account and setup worker etc
the front end seems to be working just fine, I can log in and play around with all the admin features etc
but when I try to actually mine on the pool with the registered worker it says
wrong username / password in guiminer

Look pool_worker in database..

syntax is usernamesite.usernameworker:passwordworker

DOMINI IN VENDITA/NOLEGGIO
bitcoinmarket.net | bitcoinitalia.com

Contattatemi pure per info.
---- +++ ----
"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
cablepair
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
July 28, 2011, 09:25:24 PM
 #338

here is a copy of my configuration files the only thing I changed was the actual password to 'password' for the sake of security everything else is exactly like it is on my server


my bitcoin.conf looks like this:

rpcuser=miningfarm
rpcpassword=password
rpcallowip=*
rpcport=8332
server=1

my config.php looks like this:

<?php
//Fit to your need variables // These should be the only variables you need to edit

$mysqlUsername  = "miningfarm";
$mysqlPassword  = "password";
$mysqlDatabase  = "miningfarm";
$mysqlHost      = "localhost";


//Linkage
$header         = $req."header.php";
$menu           = $req."menu.php";
$footer         = $req."footer.php";
$bitcoind       = $req."/bitcoinWallet/bitcoin.inc.php";

//Cookies!
$cookieName = "miningfarm#2";
$cookiePath = "/";
$cookieDomain = "";


//Bitcoind RPC information
$rpcType        = "http";
$rpcUsername    = "miningfarm";
$rpcPassword    = "password";
$rpcHost        = "127.0.0.1:8333";
?>

my server.json looks like this:

     # network ports
        "listen" : [
                # binary protocol (default), port 8342
                { "port" : 8342 },

                # HTTP JSON-RPC protocol, port 8341
                { "port" : 8341, "protocol" : "http-json" },

                # HTTP JSON-RPC protocol, port 8344,
                # with trusted proxy appserver.example.com forwarding
                # requests to us
                { "port" : 8332, "protocol" : "http-json",
                  "proxy" : "127.0.0.1" },

                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

        # database settings
        "database" : {
                "engine" : "mysql",
                "host" : "miningfarm.db.7858894.hostedresource.com",
                "port" : 3306,
                "name" : "miningfarm",
                "username" : "miningfarm",
                "password" : "password",
                "sharelog" : true,
                "stmt.pwdb":"SELECT `password` FROM `pool_worker` WHERE `username` = ?",
                "stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"

        },

        # cache settings
        "memcached" : {
               "servers" : [
                        { "host" : "127.0.0.1", "port" : 11211 }
                ]
        },

        "pid" : "/tmp/pushpoold.pid",

        # overrides local hostname detection
        "forcehost" : "localhost.localdomain",

        "log.requests" : "/tmp/request.log",
        "log.shares" : "/tmp/shares.log",

        # the server assumes longpolling (w/ SIGUSR1 called for each blk)
        "longpoll.disable" : false,

        # length of time to cache username/password credentials, in seconds
        "auth.cred_cache.expire" : 75,

        # RPC settings | Notice how this ISN'T port number 8332 this is becuase the same port number should not becuase inconjunction with the JSON RPC port $
        "rpc.url" : "http://127.0.0.1:8333/",
        "rpc.user" : "miningfarm",
        "rpc.pass" : "password",

        # rewrite returned 'target' to difficulty-1?
        "rpc.target.rewrite" : true
}
ziomik
Legendary
*
Offline Offline

Activity: 1960
Merit: 1012


SELL bitcoinmarket.net | bitcoinitalia.com SELL


View Profile WWW
July 28, 2011, 09:31:37 PM
 #339

Code:
rpcuser=miningfarm
rpcpassword=password
rpcallowip=*
rpcport=8332
server=1

rpcport=8333

DOMINI IN VENDITA/NOLEGGIO
bitcoinmarket.net | bitcoinitalia.com

Contattatemi pure per info.
---- +++ ----
"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
cablepair
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000


Buy this account on March-2019. New Owner here!!


View Profile WWW
July 28, 2011, 09:53:27 PM
 #340

anyone have any other ideas?

thank you for your help but now I messed something else up and instead of getting username error in the miner its rpc error cant connect

so please just confirm for me that im doing things right

pushpool and bitcoin communicate with eachother on port 8333 correct?

and i configure miningfarm rpc to use port 8332 for bitcoind?

pushpool and miningfarm use the same mysql database

to get everything rolling
i start bitcoind
then i run ./blkmond server.json

am I correct here?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!