Author

Topic: Need Pushpool Help - mysql pwdb query failed at fetch (Read 714 times)

hero member
Activity: 552
Merit: 500
did you ever find a resolution to this?

Yeah, He found a solution to this. He now runs a litecoin pool.

Mind sharing what you did to get the shares db populating, I see a lot of people having similar issues.
sr. member
Activity: 336
Merit: 250
did you ever find a resolution to this?

Yeah, He found a solution to this. He now runs a litecoin pool.
hero member
Activity: 552
Merit: 500
did you ever find a resolution to this?
sr. member
Activity: 294
Merit: 250
Hello all...

I'm trying to set-up pushpool and for some reason I keep receiving "mysql pwdb query failed at fetch".

Here's the run-down:

OS is Ubuntu
Running MySql
Front-end: SimpleCoin
Miners connect fine but pushpool returns "mysql pwdb query failed at fetch" when connecting because mysql is trying to read username as "?"

mysql.log shows pushpool trying to pass the following statement:

Code:
SELECT password FROM pool_worker WHERE username = ?

Which is being called by pushpool's server.json file in this section (user/pass info has been edited):

Code:
# database settings
        "database" : {
                "engine" : "mysql",

                # 'host' defaults to localhost, if not specified
                # "host" : "localhost",

                # 'port' uses proper default port for the DB engine,
                # if not specified
                "port" : "3306",

                "name" : "simplecoin",
                "username" : "SuperCoolUsername",
                "password" : "SuperSecretPassword",
                "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 (?, ?, ?, ?, ?, ?)"
},

Workers have been added to table "pool_worker".

It would seem to me that the json client doesn't like the way the variable is being handled in:

Code:
"stmt.pwdb":"SELECT password FROM pool_worker WHERE username = ?",

Since the "?" isn't being properly replaced by the connecting miner's username and the statement otherwise works fine when tested from mysql command line...

Any ideas on how I can fix the variable so json passes the correct statement to mysql...?
Jump to: