Bitcoin Forum

Bitcoin => Project Development => Topic started by: Xenland on May 30, 2011, 07:39:17 AM



Title: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: Xenland on May 30, 2011, 07:39:17 AM

License Aggreement
MiningFarm web-site software is released under the AGPL license:http://www.gnu.org/licenses/agpl.html (http://www.gnu.org/licenses/agpl.html)
In addition to the AGPL you are required with a free-license to keep all google ad-sense links and or images(Details are in the LICENSE file); Everything else is free game for change in accordance with AGPL. If you'd like to purchase a license(Free to do anything under the AGPL license but can remove advertisements) please contact me through PM
We gave options for Free and Commercial Solutions, refere


Welcome to the Official thread for Mining Farm

Mining farm provides a front-end to pushpool;
 Meaning pushpool handles all the clients/bitcoin miners and Mining Farm handles all the
splitting of the rewards, user account management, stats, and graphs.


Mining Farm Git Hub / Download Page (https://github.com/Xenland/MiningFarm)

Currently Being Addressed Bug List (https://github.com/Xenland/MiningFarm/issues?sort=created&direction=desc&state=open)

Other sites using Mining Farm
http://46.4.148.165/
http://www.btcfarm.us/
http://mine.tenobis.com
http://www.abcbitcoin.net/

http://www.d3c0n.net/
http://bitcoinmonkey.com/
http://www.bitcoinage.com.au/



Version 4 | Features
*Safe for high-loads
*Strong encrypted session cookies
*Auth pin needed to change certain aspects of user profile
*Instant pay out
*Stats will calculate when the next block will be found and graphs the ETA
*Email Validation
*Percentage Fee option
*HTML is written with Style Sheets in mind
*Flexible administrator panel
*API support for workers status.
*Native support for TradeHill bitcoin worth, along
with a "Potential Balance" display that displays your account balance with the current worth
*Live WYSIWYG Blog post and Admin page editors

Planned Features
*Private Pool Option built in
*Option to donate to the mining farm Lotto
*Multiple Pool Support
*IPTABLES authentication


Mining Pool v4 | Installation Instructions
[Notes: Mining Farm is only officially tested on an Apache2 and Mysql database using Ubuntu linux. Although this software is aimed at working with all distro's and configuration it obviously can't be perfect, Make sure you detail your bug reports and don't get frustrated and we'll get this figured out.]

*Extract the miningpool-v4.rar to where your web server is located.
*Edit the functions.php file to your needs.

*Add a cronjob for blockUpdate.php that reflects the following to run every five minutes
*/5 * * * * php /path/to/webserver/req/cronjob/blockUpdater.php
*Add a cronjob for blockFound.php that reflects the following to run every 8 minutes
*/8 * * * * php /path/to/webserver/req/cronjob/blockFound.php

Quote
If you are having issues such as stats not showing,
or bitcoins not being rewarded try the following command
too assist crontab to executing these functions(assuming Ubuntu distro):
Code:
sudo apt-get install php5-cli

*If you want stats, cronjob the statsUpdater.php and all graphs will be updated upon execution
*Extract the insert_into_db.sql file into your database
*Edit your php.ini file to error_reporting = E_ALL & ~E_NOTICE
*Open up your website and register
*Activate your account with the email link or set the `emailAuthorised` flag to 1
*Go into the database and set your account with the `isAdmin` flag to 1
*You can now view the Admin Panel and start advertising your site to the bitcoin community :)

*For translations support you can add your .mo file in the language folder, MF2 uses gettext
[/size]

Updating Installs
Please don't PM me about updating installs help. There is just too many unknown variables to address the problem with out payment.
That being said the most common problems are

*Files are successfully being uploaded but there is no update?
[Solution: Delete the file from the server, then update. Myself and other all have this issue with FTP(sometimes SSH) and the file will not update unless it is completely removed from the server]

*Saving data during a Database update?
[The best way to do it is to backup your entire database on to an sql file.
delete the entire database so there are no tables or anything just the database selected,
then insert the miningfarm_database.sql file then insert the backupdate data and you should have
a clean update]


Title: Re: [Pre-Beta] Open-Source Front End to pushpool
Post by: graingert on May 30, 2011, 08:41:27 AM
You probably want to use AGPL if it is a webservice!


Title: Re: [Pre-Beta] Open-Source Front End to pushpool
Post by: Xenland on May 30, 2011, 09:32:37 AM
You probably want to use AGPL if it is a webservice!

Thanks I looked into that, and I see why you took the liberty to address that to me; I'll keep this in mind for version 2 | can't have any loop holes now can we :P


Title: Re: [Pre-Beta] Open-Source Front End to pushpool | Mining Pool #2
Post by: error on May 30, 2011, 09:35:34 AM
Don't get big while you're on a VPS. :)


Title: Re: [Pre-Beta] Open-Source Front End to pushpool | Mining Pool #2
Post by: Xenland on May 30, 2011, 09:45:20 AM
Don't get big while you're on a VPS. :)

Lol especially when theres so little memory that pushpool and memcached kill each other fighting for it. "Their like animals I tell you!" but cant complain with 64mb of ram.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: gll on May 31, 2011, 09:56:17 AM
Please keep going!


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: redditorrex on May 31, 2011, 03:33:00 PM
Not trying to sound like a dick, but reviewing over some of your code.

First concern: ಠ_ಠ
"register_globals = on"

This
http://mp2.fleshvirus.com/req/php.ini
http://mp2.fleshvirus.com/req/includeVariables
http://mp2.fleshvirus.com/req/loginAndUserStats.php?cookieValid=1
** http://mp2.fleshvirus.com/adminPanel.php?cookieValid=1&isAdmin=1

And thats where i stoped looking at your public tree, and started looking at code.

line 82: in requiredFunction.php in function `checkCookie` completely vulnerable to a SQL injection attack.


My advice to anyone wanting to run a pool / Stay away from this base.  


@Xenland php is easy to code, but hard to master. Again not trying to be mean. I just think people should be aware of what they are running on their severs.



- Sidenote: I run MtRed and EU.MtRed on a VPS and its fine.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on May 31, 2011, 05:30:18 PM
Not trying to sound like a dick, but reviewing over some of your code.

First concern: ಠ_ಠ
"register_globals = on"

This
http://mp2.fleshvirus.com/req/php.ini
http://mp2.fleshvirus.com/req/includeVariables
http://mp2.fleshvirus.com/req/loginAndUserStats.php?cookieValid=1
** http://mp2.fleshvirus.com/adminPanel.php?cookieValid=1&isAdmin=1

And thats where i stoped looking at your public tree, and started looking at code.

line 82: in requiredFunction.php in function `checkCookie` completely vulnerable to a SQL injection attack.


My advice to anyone wanting to run a pool / Stay away from this base.  


@Xenland php is easy to code, but hard to master. Again not trying to be mean. I just think people should be aware of what they are running on their severs.



- Sidenote: I run MtRed and EU.MtRed on a VPS and its fine.

All those pages that you showed up are irrleavent to registerGlobal hacks. I ALWAYS pre-set my variables if they are important. Which means I code with security in mind and if register globals is a red flag then you can see in my code that its un-hackable, even your example links show error messages showing every body that there is no access to admin with out "Admin Flag" set in the MySql Database. Those globals are there so the code knows which menu to output "NOT" which permissions to grant. Check my code again!!

Your entitled to your opinion about which software is better(obviously you'll think your software is better :P ) but could you please tell everyone how you MySql injected with the `checkCookie` function?


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: redditorrex on May 31, 2011, 06:05:01 PM
The call is from

Code:
universalChecklogin.php (1 hits)
Line 27: $cookieValid = $validateCookie->checkCookie($_COOKIE[$cookieName], $ip);

and the code in question.

   
Code:
$cookieInfo = explode("-", $input);

//Get "secret" from MySql database
$getSecretQ = mysql_query("SELECT `secret`, `pass`, `sessionTimeoutStamp` FROM `webUsers` WHERE `id` = ".$cookieInfo[0]." LIMIT 0,1");
$getSecret = mysql_fetch_object($getSecretQ);

I just make my cookie = "1;DROP TABLE pool_workers;--"


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on May 31, 2011, 07:15:09 PM
The call is from

Code:
universalChecklogin.php (1 hits)
Line 27: $cookieValid = $validateCookie->checkCookie($_COOKIE[$cookieName], $ip);

and the code in question.

   
Code:
$cookieInfo = explode("-", $input);

//Get "secret" from MySql database
$getSecretQ = mysql_query("SELECT `secret`, `pass`, `sessionTimeoutStamp` FROM `webUsers` WHERE `id` = ".$cookieInfo[0]." LIMIT 0,1");
$getSecret = mysql_fetch_object($getSecretQ);

I just make my cookie = "1;DROP TABLE pool_workers;--"
Ahh I see what your saying, all i need to do is add a mysql_real_escape_string() that will be in version 2,


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: davout on May 31, 2011, 08:25:55 PM
PHP coders are funny when they talk about security XD


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: redditorrex on May 31, 2011, 08:29:48 PM
PHP coders are funny when they talk about security XD

PHP coders are funny when they talk.

FTFY


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on May 31, 2011, 09:03:14 PM
1st post, longtime lurker

So, I decided to give this codebase a shot since my hand-crafted one was taking forever to write and mine wasn't much further along.

I've only spent the morning working with it, but it wasn't too hard to massage into my needs. My previous stats reporting won't work with this base, but I'm sure I'll find a way to incorporate it along with my other tweaks.

The site is http://simplecoin.us (http://simplecoin.us) if you'd like to see it in action. The pool is currently going (0% fee proportional during development) if you'd like to toss any miners at it.

Keep in mind it's in its early stages, even I don't have all my miners hitting it yet.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on May 31, 2011, 09:04:34 PM
oh, and many thanks to xenland. You'll have btc headed your way once I get everything straightened out.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on May 31, 2011, 10:15:26 PM
Thanks for the support guys esspecially the security issue that was pointed out byredditorrex, I got more features coming soon such as the colour of the header will reflect if the bitcoind server is off-line or online or something of the like.

Quote from: simplecoin
1st post, longtime lurker

So, I decided to give this codebase a shot since my hand-crafted one was taking forever to write and mine wasn't much further along.

I've only spent the morning working with it, but it wasn't too hard to massage into my needs. My previous stats reporting won't work with this base, but I'm sure I'll find a way to incorporate it along with my other tweaks.

The site is http://simplecoin.us if you'd like to see it in action. The pool is currently going (0% fee proportional during development) if you'd like to toss any miners at it.

Keep in mind it's in its early stages, even I don't have all my miners hitting it yet.
What up simplecoin you stalker, you.
Nice use of style sheets, Didn't expect it to be used so soon. Keep us posted about your experiences with the software, and of course suggestions or comments. I just signed up for a github account so if you find any additions you can update the code there when I post up the github link.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 01, 2011, 12:11:14 AM
Thanks for the support guys esspecially the security issue that was pointed out byredditorrex, I got more features coming soon such as the colour of the header will reflect if the bitcoind server is off-line or online or something of the like.

Quote from: simplecoin
1st post, longtime lurker

So, I decided to give this codebase a shot since my hand-crafted one was taking forever to write and mine wasn't much further along.

I've only spent the morning working with it, but it wasn't too hard to massage into my needs. My previous stats reporting won't work with this base, but I'm sure I'll find a way to incorporate it along with my other tweaks.

The site is http://simplecoin.us if you'd like to see it in action. The pool is currently going (0% fee proportional during development) if you'd like to toss any miners at it.

Keep in mind it's in its early stages, even I don't have all my miners hitting it yet.
What up simplecoin you stalker, you.
Nice use of style sheets, Didn't expect it to be used so soon. Keep us posted about your experiences with the software, and of course suggestions or comments. I just signed up for a github account so if you find any additions you can update the code there when I post up the github link.


So far, it handles most of what I need in a framework. The only real problem was broken references (could be a platform/install difference) and I can't get the stats page to do anything, nor find a proper reference for what it expects in the include. I took most of the css and other hacks directly from my own platform. I'd be happy to share the changes to further the project.

Major changes/additions:
shares table: timecode for time field, update to current on create
shares_history table: timecode time field updated in cron script on xfer.
current hashrate: custom class that compares shares/shares_history count over last 10 min.
mtgox integration: mtgox php api class.
added menu for index.php.
changes a few terms.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 01, 2011, 03:35:03 AM
Thanks for the support guys esspecially the security issue that was pointed out byredditorrex, I got more features coming soon such as the colour of the header will reflect if the bitcoind server is off-line or online or something of the like.

Quote from: simplecoin
1st post, longtime lurker

So, I decided to give this codebase a shot since my hand-crafted one was taking forever to write and mine wasn't much further along.

I've only spent the morning working with it, but it wasn't too hard to massage into my needs. My previous stats reporting won't work with this base, but I'm sure I'll find a way to incorporate it along with my other tweaks.

The site is http://simplecoin.us if you'd like to see it in action. The pool is currently going (0% fee proportional during development) if you'd like to toss any miners at it.

Keep in mind it's in its early stages, even I don't have all my miners hitting it yet.
What up simplecoin you stalker, you.
Nice use of style sheets, Didn't expect it to be used so soon. Keep us posted about your experiences with the software, and of course suggestions or comments. I just signed up for a github account so if you find any additions you can update the code there when I post up the github link.


So far, it handles most of what I need in a framework. The only real problem was broken references (could be a platform/install difference) and I can't get the stats page to do anything, nor find a proper reference for what it expects in the include. I took most of the css and other hacks directly from my own platform. I'd be happy to share the changes to further the project.

Major changes/additions:
shares table: timecode for time field, update to current on create
shares_history table: timecode time field updated in cron script on xfer.
current hashrate: custom class that compares shares/shares_history count over last 10 min.
mtgox integration: mtgox php api class.
added menu for index.php.
changes a few terms.

Awesome, I've noted the time stamp problems, hash rate display, and especially MtGox integration sounds like a great idea!


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 01, 2011, 01:49:10 PM
Many thanks to everyone in this thread for inspiration, You guys are going to like the fun new features :)

Check out regularly updated previews over @: mp2.fleshvirus.com (http://mp2.fleshvirus.com)

Any suggestions on securing url?string=query data for connecting to remote bitcoind app[?


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 02, 2011, 09:19:24 AM
Something handy I added to my cronjob/user table to cut down on huge sql calls (might save you some time on the stats calc):

Code:
/////////Update share counts
$sql ="select sum(id) as id, a.associatedUserId from ".
  "(select count(s.id) as id, p.associatedUserId from shares s, pool_worker p WHERE p.username=s.username group by p.associatedUserId ".
  "union ".
  "select count(s.id) as id, p.associatedUserId from shares_history s, pool_worker p WHERE p.username=s.username group by p.associatedUserId) a group by associatedUserId";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
mysql_query("UPDATE webUsers SET share_count=".$row["id"]." WHERE id=".$row["associatedUserId"]);
}

$sql ="select sum(id) as id, a.associatedUserId from ".
  "(select count(s.id) as id, p.associatedUserId from shares s, pool_worker p WHERE p.username=s.username AND s.our_result='N' group by p.associatedUserId  ".
  "union ".
  "select count(s.id) as id, p.associatedUserId from shares_history s, pool_worker p WHERE p.username=s.username AND s.our_result='N' group by p.associatedUserId) a group by associatedUserId ";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
mysql_query("UPDATE webUsers SET stale_share_count=".$row["id"]." WHERE id=".$row["associatedUserId"]);
}

$sql ="select sum(id) as id, a.associatedUserId from ".
  "(select count(s.id) as id, p.associatedUserId from shares s, pool_worker p WHERE p.username=s.username AND s.our_result='Y' group by p.associatedUserId  ".
  "union ".
  "select count(s.id) as id, p.associatedUserId from shares_history s, pool_worker p WHERE p.username=s.username AND s.our_result='Y' AND s.counted=0 group by p.associatedUserId) a group by associatedUserId ";
$result = mysql_query($sql);
$totalsharesthisround = 0;
while ($row = mysql_fetch_array($result)) {
mysql_query("UPDATE webUsers SET shares_this_round=".$row["id"]." WHERE id=".$row["associatedUserId"]);
$totalsharesthisround += $row["id"];
}
mysql_query("UPDATE settings SET value='".$totalsharesthisround."' WHERE setting='currentroundshares'");

settings is my own table I use to hold sitewide info: 2 varchar fields
the other 3 fields are int fields I added to webUsers.
The readout is in my loginanduserstats file, I tacked the rest onto the existing universalchecklogin queries


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 02, 2011, 12:40:20 PM
Nice work mate, been looking for something like this.  Keen to see v2 :)


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 02, 2011, 02:48:23 PM
I've got it to the stage where I can create an account but email validation doesn't work (no email sent).

What are the requirements for email validation to work?

In addition to this, looks like login.php is trying to connect to the mysql database without a username and password - line 41.  There's no connectDb function, unlike in register.php which works fine.  Can you have a look at this?


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: redditorrex on June 02, 2011, 05:43:52 PM
Another note, this codes stores user passwords in plaintext.  Only your 4 digit pin is hashed.

Code:
//Test registration information
$act = $_POST["act"];
if($act == "attemptRegister"){
//Valid date all fields
$username = $_POST["user"];
$pass = $_POST["pass"];
$rPass = $_POST["pass2"];
$email = $_POST["email"];
$email2 = $_POST["email2"];
$authPin = (int) $_POST["authPin"];

$validRegister = 1;
//.....
//Validate passwords
if($pass != $rPass){
if(strlen($pass) < 5){
$validRegister = 0;
$returnError .= " | Password is too short";
}else{
$validRegister = 0;
$returnError .= " | Passwords do not match";
}
}
//.....
if($validRegister){
//Add user to webUsers
$emailAuthPin = genRandomString(10);
$secret = genRandomString(10);
connectToDb();
mysql_query("INSERT INTO `xenland_pushpool`.`webUsers` (`admin`, `username`, `pass`, `email`, `emailAuthPin`, `secret`, `loggedIp`, `sessionTimeoutStamp`, `accountLocked`, `accountFailedAttempts`, `pin`)
VALUES ('0', '".$username."', [b]'".$pass."[/b]', '".$email."', '".$emailAuthPin."', '".$secret."', '0', '0', '0', '0', '".[b]hash("sha256", $authPin)[/b]."')");
$goodMessage = "Successfully signed up! You must authorize your account by now logging into your email address of ".$email." and clicking the authorize link";
}


Also, this does nothing. $salt isnt called on any of the hash functions.

Code:
//Encrypt settings
$salt = "836483jd7Dg6h5s92k";



Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 02, 2011, 06:02:07 PM
Another note, this codes stores user passwords in plaintext.  Only your 4 digit pin is hashed.

Code:
//Test registration information
$act = $_POST["act"];
if($act == "attemptRegister"){
//Valid date all fields
$username = $_POST["user"];
$pass = $_POST["pass"];
$rPass = $_POST["pass2"];
$email = $_POST["email"];
$email2 = $_POST["email2"];
$authPin = (int) $_POST["authPin"];

$validRegister = 1;
//.....
//Validate passwords
if($pass != $rPass){
if(strlen($pass) < 5){
$validRegister = 0;
$returnError .= " | Password is too short";
}else{
$validRegister = 0;
$returnError .= " | Passwords do not match";
}
}
//.....
if($validRegister){
//Add user to webUsers
$emailAuthPin = genRandomString(10);
$secret = genRandomString(10);
connectToDb();
mysql_query("INSERT INTO `xenland_pushpool`.`webUsers` (`admin`, `username`, `pass`, `email`, `emailAuthPin`, `secret`, `loggedIp`, `sessionTimeoutStamp`, `accountLocked`, `accountFailedAttempts`, `pin`)
VALUES ('0', '".$username."', [b]'".$pass."[/b]', '".$email."', '".$emailAuthPin."', '".$secret."', '0', '0', '0', '0', '".[b]hash("sha256", $authPin)[/b]."')");
$goodMessage = "Successfully signed up! You must authorize your account by now logging into your email address of ".$email." and clicking the authorize link";
}


Also, this does nothing. $salt isnt called on any of the hash functions.

Code:
//Encrypt settings
$salt = "836483jd7Dg6h5s92k";



Yes, I forgot to mention this as well. I setup pw hashing on my site. It was no problem, but was insecure out of the box.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: redditorrex on June 02, 2011, 06:11:36 PM
Another note, this codes stores user passwords in plaintext.  Only your 4 digit pin is hashed.

Code:
//Test registration information
$act = $_POST["act"];
if($act == "attemptRegister"){
//Valid date all fields
$username = $_POST["user"];
$pass = $_POST["pass"];
$rPass = $_POST["pass2"];
$email = $_POST["email"];
$email2 = $_POST["email2"];
$authPin = (int) $_POST["authPin"];

$validRegister = 1;
//.....
//Validate passwords
if($pass != $rPass){
if(strlen($pass) < 5){
$validRegister = 0;
$returnError .= " | Password is too short";
}else{
$validRegister = 0;
$returnError .= " | Passwords do not match";
}
}
//.....
if($validRegister){
//Add user to webUsers
$emailAuthPin = genRandomString(10);
$secret = genRandomString(10);
connectToDb();
mysql_query("INSERT INTO `xenland_pushpool`.`webUsers` (`admin`, `username`, `pass`, `email`, `emailAuthPin`, `secret`, `loggedIp`, `sessionTimeoutStamp`, `accountLocked`, `accountFailedAttempts`, `pin`)
VALUES ('0', '".$username."', [b]'".$pass."[/b]', '".$email."', '".$emailAuthPin."', '".$secret."', '0', '0', '0', '0', '".[b]hash("sha256", $authPin)[/b]."')");
$goodMessage = "Successfully signed up! You must authorize your account by now logging into your email address of ".$email." and clicking the authorize link";
}


Also, this does nothing. $salt isnt called on any of the hash functions.

Code:
//Encrypt settings
$salt = "836483jd7Dg6h5s92k";



Yes, I forgot to mention this as well. I setup pw hashing on my site. It was no problem, but was insecure out of the box.

Make sure you put that code in the tree for Xenland and others.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: d3c0n808 on June 02, 2011, 07:28:50 PM
I've got it to the stage where I can create an account but email validation doesn't work (no email sent).

What are the requirements for email validation to work?

In addition to this, looks like login.php is trying to connect to the mysql database without a username and password - line 41.  There's no connectDb function, unlike in register.php which works fine.  Can you have a look at this?

I concur I had the same issue, sendmail works so not sure why the validation didnt work.  Also I was unable to create new user or login to exhisting user i was able to get rid of the mysql bad account by changing the default account settings in php.ini but thats didnt fix anythign


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 02, 2011, 07:39:37 PM
Yes for some reason when I tar.ball'd it, I accidentally included the dev files at the time so those features were removed for testing purposes. Passwords are not hashed, in version one, nor was send email valid, theres a couple of other things too. Check out my first post I wrote up a "Bug list in version 1" they are all crossed out becuase that means i fixed them in version 2 which should be released in two or three days. Also I'm sure alot of you though it was annoying to change the $dir folder in every page, so I found a reliable code to auto-magically find it for you so all new installs should only need to change the requiredFunctions.php and that will be it :)

On a side note what kind of stats would you like included?


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 02, 2011, 07:49:35 PM
I've got it to the stage where I can create an account but email validation doesn't work (no email sent).

What are the requirements for email validation to work?

In addition to this, looks like login.php is trying to connect to the mysql database without a username and password - line 41.  There's no connectDb function, unlike in register.php which works fine.  Can you have a look at this?
For a fix until v2 go into login.php and change connecDb() to connecToDb();


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 02, 2011, 10:25:23 PM
And now more stat sharing code :)

This is a worker monitor. I have it named cronjobs/workers.php

Code:
<?php 

$req 
"/var/www/req/";
$functions = $req."requiredFunctions.php";
include(
$functions);

/////////Update workers
connectToDb();

//Active in past 10 minutes
try {
$sql ="SELECT sum(a.id) IS NOT NULL AS active, p.username FROM pool_worker p LEFT JOIN ".
  "(SELECT count(id) AS id, username FROM shares_history WHERE time > DATE_SUB(now(), INTERVAL 10 MINUTE) group by username "
  "UNION ".
  "SELECT count(id) AS id, username FROM shares_history WHERE time > DATE_SUB(now(), INTERVAL 10 MINUTE) group by username) a ON p.username=a.username group by username";
$result mysql_query($sql);
while ($resultObj mysql_fetch_object($result)) {
mysql_query("UPDATE pool_worker p SET active=".$resultObj->active." WHERE username='".$resultObj->username."'");
}
} catch (
Exception $e) {}

change required, active(tinyint) added to pool_worker


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: d3c0n808 on June 02, 2011, 10:49:04 PM
I've got it to the stage where I can create an account but email validation doesn't work (no email sent).

What are the requirements for email validation to work?

In addition to this, looks like login.php is trying to connect to the mysql database without a username and password - line 41.  There's no connectDb function, unlike in register.php which works fine.  Can you have a look at this?
For a fix until v2 go into login.php and change connecDb() to connecToDb();



There is no connecDB in login.php i think thats why its defaulting to the default sql name, pw etc


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 02, 2011, 11:21:21 PM
And now more stat sharing code :)
woops, that should be:
Code:
<?php 

$req 
"/var/www/req/";
$functions = $req."requiredFunctions.php";
include(
$functions);

/////////Update workers
connectToDb();

//Active in past 10 minutes
try {
$sql ="SELECT sum(a.id) IS NOT NULL AS active, p.username FROM pool_worker p LEFT JOIN ".
  "(SELECT count(id) AS id, username FROM shares WHERE time > DATE_SUB(now(), INTERVAL 10 MINUTE) group by username "
  "UNION ".
  "SELECT count(id) AS id, username FROM shares_history WHERE time > DATE_SUB(now(), INTERVAL 10 MINUTE) group by username) a ON p.username=a.username group by username";
$result mysql_query($sql);
while ($resultObj mysql_fetch_object($result)) {
mysql_query("UPDATE pool_worker p SET active=".$resultObj->active." WHERE username='".$resultObj->username."'");
}
} catch (
Exception $e) {}


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 03, 2011, 12:03:20 AM
Nice updates guys, I'll get github up and working after the 2nd version is released so everyone can have their own fork. Github dosen't want to accept my key or something so I can't upload nothing yet but I'll get it worked out soon


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 03, 2011, 06:01:10 AM
Version 2 is out!, The most notable updates are everything we've previously talked about, such as timestamp, and password hashing issues. Another feature is you ONLY need to edit a couple of files instead of editing the directory of every single page it auto-magically finds the path so it should be an easy as pie as some like to say to install and or update your front-end


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 03, 2011, 06:05:50 AM
Version 2 is out!, The most notable updates are everything we've previously talked about, such as timestamp, and password hashing issues. Another feature is you ONLY need to edit a couple of files instead of editing the directory of every single page it auto-magically finds the path so it should be an easy as pie as some like to say to install and or update your front-end

Excellent!  Going to give it a try tonight :)


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 03, 2011, 10:20:23 AM
So I've setup version 2 from scratch with new database based on the sql file you have included.

I can't get past registering a user.  There seems to be some undefined variables causing the problem and these are:

From index.php:
PHP Notice:  Undefined variable: files1 in /srv/www/htdocs/req/modules/loadModules.php on line 47

From register.php:
PHP Notice:  Undefined variable: act in /srv/www/htdocs/register.php on line 41
PHP Notice:  Undefined variable: act in /srv/www/htdocs/register.php on line 58
PHP Notice:  Undefined variable: goodMessage in /srv/www/htdocs/register.php on line 156
PHP Notice:  Undefined variable: returnError in /srv/www/htdocs/register.php on line 157
PHP Notice:  Undefined variable: goodMessage in /srv/www/htdocs/register.php on line 160

Cheers


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 03, 2011, 10:33:35 AM
Dude you've also hard coded your database name all over the place...are you planning on fixing that?


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 03, 2011, 11:28:02 AM
So I added the following to register.php:

$act = $_POST["act"];

above

if($act == "auth"){

and that fixed the registration.  I haven't configured mail properly so I just activated my account manual and gave myself admin.

I'm now successfully running a pool and it all seems to be working!  My miners are hashing away and the shares are being recorded.

Are you planning on added the ability to show shares based on workers?

Still seems to be a few more bugs.  I'm happy to work closer with you to debug them and improve the product further.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 03, 2011, 11:52:49 AM
Can you please explain the share and score payment types?

Is there a method to setup pay per share?

Cheers


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: timmmay on June 03, 2011, 12:59:47 PM
Another question...

When I query bitcoind getinfo, the hashespersec value is at 0.  Shouldn't this be showing up the total hash value of the pool?

Cheers


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: davout on June 03, 2011, 02:21:35 PM
When I query bitcoind getinfo, the hashespersec value is at 0.  Shouldn't this be showing up the total hash value of the pool?
Nope, that's normal.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: kjj on June 03, 2011, 02:46:09 PM
Another question...

When I query bitcoind getinfo, the hashespersec value is at 0.  Shouldn't this be showing up the total hash value of the pool?

Cheers

That is the hashing rate of your local node.  Zero is a good number here.  Anything higher is a waste.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: davout on June 03, 2011, 03:17:05 PM
Anything higher is a waste.
Definitely not, if you have have some spare cycles why not use them.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: d3c0n808 on June 03, 2011, 07:28:02 PM
So I've setup version 2 from scratch with new database based on the sql file you have included.

I can't get past registering a user.  There seems to be some undefined variables causing the problem and these are:

From index.php:
PHP Notice:  Undefined variable: files1 in /srv/www/htdocs/req/modules/loadModules.php on line 47

From register.php:
PHP Notice:  Undefined variable: act in /srv/www/htdocs/register.php on line 41
PHP Notice:  Undefined variable: act in /srv/www/htdocs/register.php on line 58
PHP Notice:  Undefined variable: goodMessage in /srv/www/htdocs/register.php on line 156
PHP Notice:  Undefined variable: returnError in /srv/www/htdocs/register.php on line 157
PHP Notice:  Undefined variable: goodMessage in /srv/www/htdocs/register.php on line 160

Cheers

Were you able to fix this issue?  And if so what was your resolution?  Im curious because ive been tinkering for a few hours and have been unable to login to a registered user.  I made admin in the database but it will still not allow me to login and create workers.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 03, 2011, 07:33:27 PM
So I added the following to register.php:

$act = $_POST["act"];

above

if($act == "auth"){

and that fixed the registration.  I haven't configured mail properly so I just activated my account manual and gave myself admin.

I'm now successfully running a pool and it all seems to be working!  My miners are hashing away and the shares are being recorded.

Are you planning on added the ability to show shares based on workers?

Still seems to be a few more bugs.  I'm happy to work closer with you to debug them and improve the product further.

Ill deffinatly get dynamic databases going and fix the registration out of the box.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 03, 2011, 07:34:19 PM
So, I went for the 2.0 upgrade.... seems like I have a lot of work to do.

Everyone received random account balances, the current round was reset, bitcoincontroller includes are all messed up. Lots of problems off the bat.
I was able to revert, but I recommend anyone attempting this be overly cautious and have backups ready.

That said the fopen includes with gets do not work for me with bitcoind.php. I can point it at a url, but it seems to behave awkwardly.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 03, 2011, 08:04:25 PM
As for the loadModules.php problem just remove the print_r() at the the end of the code, I'm going to be less reckless with my next releases and do some in-depth testing before the release.
Im removing the annoying bitcoind.php file, thought it might work but its do more harm then good.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: simplecoin on June 03, 2011, 08:06:36 PM
Oh, found an easy way around the fopen includes, I just included the bitcoin.inc.php and created a new instance of it.


Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: d3c0n808 on June 03, 2011, 09:00:14 PM
I'm sorry everytime i try to login i get this error any idea how to fix it? 



[Fri Jun 03 10:53:01 2011] [error] [client 192.168.1.100] PHP Warning:  mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/www/htdocs/login.php on line 46, referer: http://192.168.1.114/register.php



Title: Re: [Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 03, 2011, 09:32:04 PM
I'm sorry everytime i try to login i get this error any idea how to fix it? 



[Fri Jun 03 10:53:01 2011] [error] [client 192.168.1.100] PHP Warning:  mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/www/htdocs/login.php on line 46, referer: http://192.168.1.114/register.php



Just wait till the next version there are soo many bugs I over looked trying cram more features into the thing. I'll have the bugs fixed in the next version.



Title: Re: [Frozen] Mining Pool | Front End to pushpool
Post by: timmmay on June 04, 2011, 02:09:33 AM
So how can I actually verify that what my miners are hashing is coming from the bitcoin network?  I'm paranoid that I'm wasting my hashing power on nothing lol.


Title: Re: [Frozen] Mining Pool | Front End to pushpool
Post by: Xenland on June 04, 2011, 02:33:18 AM
I wonder if im hashing towards bitcoind or pushpoold my self, but i can tell now by looking in the database in the shares and if there are recent ones that are poping up then i know for sure im hashing with pushpoold


Title: Re: [Frozen] Mining Pool | Front End to pushpool
Post by: davout on June 04, 2011, 03:34:13 AM
I wonder if im hashing towards bitcoind or pushpoold my self, but i can tell now by looking in the database in the shares and if there are recent ones that are poping up then i know for sure im hashing with pushpoold
Or you can check with requests.log


Title: Re: [Alpha Testing In-Progress] Mining Pool | Front End to pushpool
Post by: Wayno on June 04, 2011, 08:58:02 PM
no download link.


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: dharmapolice on June 05, 2011, 12:59:02 AM
Hey, this looks great!  

I was just wondering where miningpool.sql file was, or if it was left out accidentally?


miningpool.sql seems to have changed names to insert_into_db.sql

I'm having an issue logging in, though.  After registering, I get the hash in my database, but I can't login with that username and password.  I'm heading out at the moment, but will take a look when I get back.

Also, the download link at the top of this page should be pointing to http://mp2.fleshvirus.com/download/v3/miningpoolv3.tar.gz

Thanks for all your work, this all is amazing!


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: Txyru on June 05, 2011, 04:09:06 AM
v3 is very very very broken with the current code for download.

I have spent the past 3 hours going through and fixing all I can so far, there is still more to fix...


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: timmmay on June 05, 2011, 06:28:40 AM
v3 is very very very broken with the current code for download.

I have spent the past 3 hours going through and fixing all I can so far, there is still more to fix...

I haven't tried it yet but had a skim through it.  It certainly looks cleaner.

Xenland - how much testing are you doing on this code before releasing it?  Is your goal to get us to help you find bugs?  Like I've said before, I'm happy to beta test it and show you bugs etc.  However it doesn't help if you start completely rewriting things...

How are you going setting up a github?


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: Wayno on June 05, 2011, 06:31:13 AM
register stops on sending email. guessing its bugged there?

Update
when registering the authpin isnt being set.
no code to enter it into the db.

email isnt being sent via sendConfirmationEmail
added
$emailSent = sendConfirmationEmail($insertId, $authoriseEmailPin, $email);
and function sendConfirmationEmail($userId, $authPin, $email)

activating account doesnt work
added
$userId = $_GET["userId"];
$authPin = $_GET["authPin"];


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: Xenland on June 05, 2011, 10:21:14 AM
This will be the last time i re-write the code. The last one was getting wayyyy tooo hard to figure out what was going on and what required what to do what. Anyways, on my VPS server I wiped it clean, just rebooted the WHOLE thing, uploaded my code, tested everything works great. The only thing that I knew that does not work is sending mail, but it only stopped working when i uploaded a php.ini file. So I guess I assumed it was that. I would like everyone to know that I would like to start my own pool so I'll always be constantly working towards making Mining Pool bug free.


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: Xenland on June 05, 2011, 10:29:33 AM
v3 is very very very broken with the current code for download.

I have spent the past 3 hours going through and fixing all I can so far, there is still more to fix...

I haven't tried it yet but had a skim through it.  It certainly looks cleaner.

Xenland - how much testing are you doing on this code before releasing it?  Is your goal to get us to help you find bugs?  Like I've said before, I'm happy to beta test it and show you bugs etc.  However it doesn't help if you start completely rewriting things...

How are you going setting up a github?

The last 2 versions I would just test out each feature and if it works then I'd release it but alot of people started complaining that there were alot of bugs so. Too squish the bugs I compeltly whipped the VPS harddrive and installed my front-end on to it. My results were I had absolutely no problems except the email sending and the validation abruptly stopped working.


Title: Re: [v3] Mining Pool | Front End to pushpool
Post by: Xenland on June 05, 2011, 10:58:30 AM
v3 is very very very broken with the current code for download.

I have spent the past 3 hours going through and fixing all I can so far, there is still more to fix...

Could you elaborate on what features you had to fix?


Title: Re: [v3] Mining Pool #2 | Front End to pushpool
Post by: Wayno on June 05, 2011, 04:00:08 PM
error in register.php line 67

not getting userid and authpin, also
$message."\n<br/>"."http://$serverAddress/activateAccount.php?authPin=$authPin&userId=$userId";

$message = ."\n<br/>"."http://$serverAddress/activateAccount.php?authPin=$authPin&userId=$userId";

?

and emails still isnt working via link in email still goto add

$userId = $_GET[userId];
$authPin = $_GET[authPin];

before
 $userId = $_GET[userId];
$authPin = $_GET[authPin];

   $activateSuccess = activateAccount($userId, $authPin);

authpin is not being set on signup aswell.


Title: Re: [v3] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 05, 2011, 04:29:21 PM
error in register.php line 67

not getting userid and authpin, also
$message."\n<br/>"."http://$serverAddress/activateAccount.php?authPin=$authPin&userId=$userId";

$message = ."\n<br/>"."http://$serverAddress/activateAccount.php?authPin=$authPin&userId=$userId";

?

and emails still isnt working via link in email still goto add

$userId = $_GET[userId];
$authPin = $_GET[authPin];

before
 $userId = $_GET[userId];
$authPin = $_GET[authPin];

   $activateSuccess = activateAccount($userId, $authPin);

authpin is not being set on signup aswell.
I tested the activateAccount.php and it successfully activated however it was simulated since neither will my localhost mail and my VPS send mail with php at the moment. If you have working mail please confirm that my fixes are fixed while I get setup correctly. You can get the updated version by following the download link in my original post


Title: Re: [v3] Mining Pool #2 | Front End to pushpool
Post by: Wayno on June 05, 2011, 07:14:02 PM
well it send the email but the serveraddress isnt set so it comes out wrong http://activateaccount.php/?authPin= need to add to functions?

also its still the same issue with not getting the id/authpin passed to the function activateAccount($userId, $authPin){

print("$userid and authpin") displays nothing still



Title: Re: [v3] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 05, 2011, 08:03:06 PM
Looks like you need register_globals = On
and I just uploaded  the fix for the server address
and for authentication to be fixed you need to reupload the functions.php file and the activateAccount.php

it would be a good idea to re upload the login and register.php pages a swell since there was spaces in the inputs which
cause users to sign up with a space in there name, password, etc,etc, anything that would make a system act crazy.


Title: Re: [v3] Mining Pool #2 | Front End to pushpool
Post by: redditorrex on June 06, 2011, 01:51:43 AM
Looks like you need register_globals = On

Looks like you need to fix this.
Until this is fixed I would highly suggest people not using this code base.


Title: Re: [3.1.5] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 06, 2011, 03:15:07 AM
Thanks the validate emails relies on it at the moment, the register globals wont be a problem by tommorow
I was wondering why everyone was referring to $_GET[] variables and everything being wrong with my code. They were thinking that the program worked with out register globals.


Title: Re: [3.1.5] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 06, 2011, 04:24:09 AM
Actually it's done today the latest, version on git hub has been working for me with register_globals=off, just waiting on my partner to confirm this on his dedicated server then I'll post the update on the original post.


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Wayno on June 06, 2011, 06:08:21 AM
just updated to the latest seem everything is working atm. good work

few things i noticed

admin panel cant set shares to be split? eg 1% goes to server

Blog updater? users search? if there coming just a reminder then ;)


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Xenland on June 06, 2011, 09:16:42 AM
just updated to the latest seem everything is working atm. good work

few things i noticed

admin panel cant set shares to be split? eg 1% goes to server

Blog updater? users search? if there coming just a reminder then ;)

Thanks wayno for the reminder, Just wanted to get all the bugs out of the core of everything so I can build on the solid code. I actually did forget about those features :D


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Wayno on June 06, 2011, 09:49:05 AM
welcome :)


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: unixdude on June 06, 2011, 05:31:35 PM
Hi Xenland

I've been following this thread for a while and just wanted to know if the stats.php will be included in a future update. Apart from that i had zero issues getting this to work when i actually get anything worthy i will deffo donate ;).



p.s. my first post so hello all :)




Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Xenland on June 06, 2011, 09:21:45 PM
Hi Xenland

I've been following this thread for a while and just wanted to know if the stats.php will be included in a future update. Apart from that i had zero issues getting this to work when i actually get anything worthy i will deffo donate ;).



p.s. my first post so hello all :)



Welcome to the thread unixdude,  yeah stats are coming very soon anything that you would like to see in particular?
I'm thinking about going with open flash chart for less of a server load, then pCharts which uses the GD2, although pCharts does look alot nicer and professional.


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Matrixion on June 07, 2011, 06:15:05 AM
Hey, Just registered to say that amongst others, i really appreciate the effort you're putting in on this frontend, i can say i found setup quite easy, and am definitely looking forward to future versions, looks like you're planning on implementing a mhash/s readout on workers, it may be worth integrating that into some form of user specific stats, to note perofrmance issues/failures over 24h or 7 day timeframes, for example. a simple line graph with a different line for each worker.

Thanks again for your effort!


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: unixdude on June 07, 2011, 06:51:47 AM

[/quote]
Welcome to the thread unixdude,  yeah stats are coming very soon anything that you would like to see in particular?
I'm thinking about going with open flash chart for less of a server load, then pCharts which uses the GD2, although pCharts does look alot nicer and professional.
[/quote]

Hi Xenland

I think Matrixion has covered almost everything I would like to see in terms of stats in his post so something along those lines would be fine :) really looking forward to future releases!


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Wayno on June 07, 2011, 10:53:02 AM
Hey Xenland

all is working really well atm.

just wondering when the site tells u when a block has been found the site is currently at 56k shares and we are just abit worried something isnt working.

thanks
Wayne


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: davout on June 07, 2011, 10:53:57 AM
Hey Xenland

all is working really well atm.

just wondering when the site tells u when a block has been found the site is currently at 56k shares and we are just abit worried something isnt working.

thanks
Wayne
SELECT * FROM shares WHERE upstream_result = 'Y'

If empty everythings normal


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: timmmay on June 07, 2011, 11:00:15 AM
Hey Xenland

all is working really well atm.

just wondering when the site tells u when a block has been found the site is currently at 56k shares and we are just abit worried something isnt working.

thanks
Wayne

Don't forget to setup the cronjobs too.  If you haven't found it already, there's a bug in blockUpdater.php.  The SQL query on line 44 refers to a column called "threashhold", this is a typo, it should be "threshhold".

What are your expectations for solving a block?  With 10GH/sec you might find one every few days if you're lucky (on average)


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: lexa500 on June 07, 2011, 11:01:17 AM
Xenland, i want to donate you a couple of btc, can you give the adress?


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Wayno on June 07, 2011, 11:05:01 AM
thanks timmay,

i am not the one doing the hashing, the owner wanted to know so i i asked ;)

Xenland

i looked nothing there atm guess ill tell em to wait.


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: dharmapolice on June 07, 2011, 07:31:08 PM
I'm having a problem with the cronjobs.  I installed php-cli - was this needed?

Here is my crontab:
Code:
*/10 * * * * /home/miningsite/req/cronjob/blockUpdater.php
*/12 * * * * /home/miningsite/req/cronjob/blockFound.php

Should I be running PHP?  Also, when trying to run the command from the command line I get this error:
Code:
$:php blockUpdater.php 
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Parse error:  syntax error, unexpected '{' in /home/miningsite/req/cronjob/blockUpdater.php on line 45

Thanks!


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: Xenland on June 07, 2011, 08:07:20 PM
Xenland, i want to donate you a couple of btc, can you give the adress?
All donations can go to the address that was supplied with the package.
or my personal Donation Address: 12QY5HYbiT5Nx6fek8ss5pAywPsV3kqdu3
Thank you for your contribution, All donations from here on out will go to a web designer
We really need a good mining pool interface, I'm really sick of this "WHITE!", bland and boring look
to every mining pool service.


Title: Re: [v3.2] Mining Pool #2 | Register_globals=off
Post by: colossus on June 08, 2011, 12:35:50 PM
I'm having a problem with the cronjobs.  I installed php-cli - was this needed?

Here is my crontab:
Code:
*/10 * * * * /home/miningsite/req/cronjob/blockUpdater.php
*/12 * * * * /home/miningsite/req/cronjob/blockFound.php

Should I be running PHP?  Also, when trying to run the command from the command line I get this error:
Code:
$:php blockUpdater.php 
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Parse error:  syntax error, unexpected '{' in /home/miningsite/req/cronjob/blockUpdater.php on line 45

Thanks!

same problem here im not a php wizard  but it doesn't look that syntactically incorrect


Title: Re: [v3.2] Mining Pool #2 | Asking for web design donations
Post by: davout on June 08, 2011, 12:47:26 PM
The crontab looks fine.

You can probably run PHP directly if you have the correct shebang line and the executable flag on the file


Title: Re: [v3.2] Mining Pool #2 | Asking for web design donations
Post by: colossus on June 08, 2011, 12:48:15 PM
ok I think, think not sure

this is the problem line there where 2 sets of brackets it was missing one of the end, I added

while($accounts = mysql_fetch_array($getListOfAccountsQ))

however...... i now get

PHP Warning:  mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/btcfinland/req/cronjob/blockUpdater.php on line 46

Now in my experience php developers always say ignore the warning if they are not fatal so it could be that this worked  :D

or not  :(


Title: Re: [v3.2] Mining Pool #2 | Asking for web design donations
Post by: Xenland on June 08, 2011, 06:13:52 PM
ok I think, think not sure

this is the problem line there where 2 sets of brackets it was missing one of the end, I added

while($accounts = mysql_fetch_array($getListOfAccountsQ))

however...... i now get

PHP Warning:  mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/btcfinland/req/cronjob/blockUpdater.php on line 46

Now in my experience php developers always say ignore the warning if they are not fatal so it could be that this worked  :D

or not  :(


This issue along with the misspelling issue will be updated with the graphing update.
Get ready for some Mhash STAT!


Title: Re: [v3.2] Mining Pool #2 | Asking for web design donations
Post by: unixdude on June 08, 2011, 06:34:06 PM
ok I think, think not sure

this is the problem line there where 2 sets of brackets it was missing one of the end, I added

while($accounts = mysql_fetch_array($getListOfAccountsQ))

however...... i now get

PHP Warning:  mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/btcfinland/req/cronjob/blockUpdater.php on line 46

Now in my experience php developers always say ignore the warning if they are not fatal so it could be that this worked  :D

or not  :(


This issue along with the misspelling issue will be updated with the graphing update.
Get ready for some Mhash STAT!

Awesome can't wait!


Title: Re: [v3.2.9] Mining Pool #2 | Asking for web design donations
Post by: lexa500 on June 09, 2011, 05:57:52 AM
thanks for your work!
i have i question about rpc server.
what should i use for it? push pool?


Title: Re: [v3.2.9] Mining Pool #2 | Asking for web design donations
Post by: Xenland on June 09, 2011, 06:31:28 AM
thanks for your work!
i have i question about rpc server.
what should i use for it? push pool?

Rpc server information will be your RPC information in your config file for bitcoind.
RPC server information is used to get information about the bitcoin network and your current
balance in your wallet. It is also used for sending payments to users.


Title: Re: [v3.2.9] Mining Pool #2 | Asking for web design donations
Post by: Wayno on June 09, 2011, 01:25:11 PM
Hello pplz.

i was looking over networkblocks and found something intresting

id    blockNumber    timestamp    accountAddress    confirms
9    129583            1307622747     (blank)             0

just wondering if anyone else is getting this i seem to cant get

$transactions[$i]["confirmations"];
$transactions[$i]["category"];
$transactions[$i]["address"]

to display anything.


Title: Re: [v3.2.9] Mining Pool #2 | Asking for web design donations
Post by: openrune on June 09, 2011, 01:59:33 PM
Thanks for the great Work Xenland
And hello to ALL
The version 3.2.9 runs great on http://mine.tenobis.com !


Title: Re: [v3.2.9] Mining Pool #2 | Asking for web design donations
Post by: davout on June 09, 2011, 02:07:25 PM
The version 3.2.9 runs great on http://mine.tenobis.com !
Don't see it


Title: Re: [v3.2.9] Mining Pool #2 | Asking for web design donations
Post by: Xenland on June 09, 2011, 08:37:06 PM
The version 3.2.9 runs great on http://mine.tenobis.com !
Don't see it
Well i do :)

Looks great, i love the feeling of my software being used :D


Title: Re: [v3.2.9] Mining Pool #2 | Web design Donation Pot: 4BTC
Post by: openrune on June 09, 2011, 10:18:46 PM
I test now with two miners connected
1. Dablo Miner: works good
2. Gui Miner: works good
:)


Title: Re: [v3.2.9] Mining Pool #2 | Web design Donation Pot: 4BTC
Post by: Xenland on June 10, 2011, 12:30:41 AM
I test now with two miners connected
1. Dablo Miner: works good
2. Gui Miner: works good
:)
http://www.mkspvf.com/Uploads/stevenpadams/great_success.png


Title: Re: [v3.2.9] Mining Pool #2 | Web design Donation Pot: 4.15BTC
Post by: unixdude on June 10, 2011, 06:48:17 AM
Just finished last set of tests so we will be going live with our private pool on the weekend, so far works great the only thing I think I am going to do is migrate the DB to a machine we have with SSD's and a bit more ram to mitigate any future IO problems we may experience.


Title: Re: [v3.2.9] Mining Pool #2 | Web design Donation Pot: 4.15BTC
Post by: Xenland on June 10, 2011, 09:08:30 AM
Just finished last set of tests so we will be going live with our private pool on the weekend, so far works great the only thing I think I am going to do is migrate the DB to a machine we have with SSD's and a bit more ram to mitigate any future IO problems we may experience.
Keep us posted and I'll throw the link up in the examples sections as soon as its ready :)


Title: Re: [v3.2.9] Mining Farm #2 | Web design Donation Pot: 4.15BTC
Post by: Koalemos on June 10, 2011, 02:33:32 PM
I don't understand why you want a nice design. People are gonna change it anyway. I guess all the functions put together in a stupid design is better, people can change it then the way the want. Or do you aim at people without the dev-skills?


Title: Re: [v3.2.9] Mining Farm #2 | Web design Donation Pot: 4.15BTC
Post by: Xenland on June 10, 2011, 03:38:06 PM
I don't understand why you want a nice design. People are gonna change it anyway. I guess all the functions put together in a stupid design is better, people can change it then the way the want. Or do you aim at people without the dev-skills?

You are correct it's only a matter of time until users knowledgeable about just bitcoins will want to get into mining pool and won't have enough money hire a web designer them self s. So in the mean time why not have there mining pool look great until they mine enough BTC to hire a web designer. I'm trying to work with the designer best as possible to make the stylesheeting flexible as possible so when you guys want to put int your own style sheets you wont have to fuss with figuring out complicated tag structures. The web design it self will also be another way of branding the official website, i guess. Considering the offical website( comming soon) will have a market place for modules and merchendising,etc ,etc, etc I'm also hoping that this new design will show what you can do with my software in terms of design, something that will make you feel free when you do your "OWN" design and say , I can do this! and this, and on my page I'll put the login box over here, I just want it to be flexible and look good at the same time so it appeals to Devs & non-Devs alike


Title: Re: [v3.2.9] Mining Farm #2 | Web design Donation Pot: 4.15BTC
Post by: warweed on June 10, 2011, 04:48:02 PM
So I'm a bit of a n00b and have been racking my head but is designed to use Linux bitcoind and just run it with the bitcoin conf setup for rpc or am I missing something ?


Title: Re: [v3.2.9] Mining Farm #2 | Web design Donation Pot: 4.15BTC
Post by: redhatzero on June 10, 2011, 05:05:03 PM
yes.. you're missing the pushpoold between bitcoind and  the web frontend


Title: Re: [v3.2.9] Mining Farm #2 | Web design Donation Pot: 4.15BTC
Post by: warweed on June 10, 2011, 05:15:02 PM
Ah ok is there separate installation instructions for pushpool or is anyone up to the challange of doing a full on install if I give shell access ? If I pay in btc ?

Just tell me what you require for OS an i shall tell you what I require

This crap is just starting to bug me to the pint I rather get some one else to do it

Prefferably the OP I will gladly clear up the rest of the bounty plus A few extra


Title: Re: [v3.2.9] Mining Farm #2 | Web design Donation Pot: 4.15BTC
Post by: timmmay on June 11, 2011, 12:04:44 AM
Ah ok is there separate installation instructions for pushpool or is anyone up to the challange of doing a full on install if I give shell access ? If I pay in btc ?

Just tell me what you require for OS an i shall tell you what I require

This crap is just starting to bug me to the pint I rather get some one else to do it

Prefferably the OP I will gladly clear up the rest of the bounty plus A few extra

Download pushpool here http://yyz.us/bitcoin/pushpool-0.4.1.tar.gz

Follow the guide here to setting it up http://forum.bitcoin.org/index.php?topic=10321.0

The prerequisites can be a pain sometimes


Title: Re: [Beta v4] Mining Farm #2 | Mining Pool Front-End
Post by: dcconsulting on June 17, 2011, 06:54:46 PM
Hi Xenland,

Your Frontend looks much better than the last one. I picked up a little issue though the "Register" button does not forward to register.php but acts the same as the Login button.

Both tries to login the user.

Sterling work though !


Title: Re: [Beta v4] Mining Farm #2 | Mining Pool Front-End
Post by: Xenland on June 17, 2011, 09:50:55 PM
Hi Xenland,

Your Frontend looks much better than the last one. I picked up a little issue though the "Register" button does not forward to register.php but acts the same as the Login button.

Both tries to login the user.

Sterling work though !
Thanks that's great news to hear!
and about the bug I'll get right on that for the official release


Title: Re: [Public v4] Mining Farm #2 | Mining Pool Front-End
Post by: xmasterpx on June 18, 2011, 01:46:47 PM
Hi,
we are testing atm.

- I cannot save at the "website preferences" / have it do over mysql
- Workers cant be deleted
- Is the Mysql file realy correct? Never seen something like "<<<<<<< HEAD" same as "=============" in a dump. / Sql cant read the file i have to put anything in the db manually
- The Design is broken on IE
- Pool stats are going from the right to the left?

used the files on first page. Download today.

and is this:
Quote
*Strong encrypted session cookies
*Auth pin needed to change certain aspects of user profile
*Instant pay out
*Stats will calculate when the next block
will be found and graphs the estimated time
*Email Validation
*Percentage Fee option
*HTML is written with Style Sheets in mind
*Out of the box translation support
*Flexible administrator panel
*API support for workers status.
*Native support for TradeHill bitcoin worth, along
with a "Potential Balance" display that displays your account balance with the current worth
*Live WYSIWYG Blog post and Admin page editors

allready implemented? where i can set the fee? (only in the database?)

best regards


Title: Re: [Public v4] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 19, 2011, 09:27:20 PM
when i import insert_into_database.sql, i received following error during import

Code:
Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 97
STR: <<<<<<<
SQL: -- phpMyAdmin SQL Dump
-- version 3.3.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
<<<<<<< HEAD
-- Generation Time: Jun 17, 2011 at 02:35 AM
=======
-- Generation Time: Jun 14, 2011 at 04:34 PM
>>>>>>> f9332a8ad0cd4e27505f162718c69fc8ea297aa7
-- Server version: 5.1.54
-- PHP Version: 5.3.5-1ubuntu7.2

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


SQL query:

-- phpMyAdmin SQL Dump -- version 3.3.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost <<<<<<< HEAD -- Generation Time: Jun 17, 2011 at 02:35 AM ======= -- Generation Time: Jun 14, 2011 at 04:34 PM >>>>>>> f9332a8ad0cd4e27505f162718c69fc8ea297aa7 -- Server version: 5.1.54 -- PHP Version: 5.3.5-1ubuntu7.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD
-- Generation Time: Jun 17, 2011 at 02:35 AM
=======
-- Generation ' at line 6
Try using the new version of Mining Farm #2.  It has a much cleaner SQL dump.


Title: Re: [Public v4] Mining Farm #2 | Mining Pool Front-End
Post by: Xenland on June 19, 2011, 09:33:03 PM
Hi,
we are testing atm.

- I cannot save at the "website preferences" / have it do over mysql
- Workers cant be deleted
- Is the Mysql file realy correct? Never seen something like "<<<<<<< HEAD" same as "=============" in a dump. / Sql cant read the file i have to put anything in the db manually
- The Design is broken on IE
- Pool stats are going from the right to the left?

used the files on first page. Download today.

and is this:
Quote
*Strong encrypted session cookies
*Auth pin needed to change certain aspects of user profile
*Instant pay out
*Stats will calculate when the next block
will be found and graphs the estimated time
*Email Validation
*Percentage Fee option
*HTML is written with Style Sheets in mind
*Out of the box translation support
*Flexible administrator panel
*API support for workers status.
*Native support for TradeHill bitcoin worth, along
with a "Potential Balance" display that displays your account balance with the current worth
*Live WYSIWYG Blog post and Admin page editors

allready implemented? where i can set the fee? (only in the database?)

best regards
Thank you for reminding me When i re-designed the pages I forgot to include the percentage fee


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 20, 2011, 04:45:26 AM
Bug report!  This is in v4.0.3

"functions.php" line 271

Code:
$getRoundSharesQ = msyql_query("SELECT `id FROM `shares_history` WHERE `blockNumber` = '".$block["blockNumber"]."' AND `username` = '$username.%' AND `our_result` != 'N'");

Spot the "mysql_query" typo?  Essentially breaks the entire website if logged in, haha!   ;D



Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 20, 2011, 04:51:12 AM
Code suggestion.  In "functions.php" we are not specifying the RPC port and thus assuming it for every RPC call.  Ex:

Code:
//Bitcoind RPC information
$rpcType = "http";
$rpcUsername = "bitcoins";
$rpcPassword = "lolsalad";
$rpcHost = "127.0.0.1";

I had to define rpcHost as 127.0.0.1:8337 because that's what port my bitcoind listens on.  I suggest to either add a comment on the end of that and specify a port OR define another variable like $rpcPort.


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: xmasterpx on June 20, 2011, 06:58:01 AM
Hi,
im just wondering of the low rate of bug reports.
i reinstalled it 4 times now cause i think im on the wrong way.

but no it doesnt work like expected.

It is to much to explain right now cause i hve to go to work.

See you later.

PS:
Do you need any programmer?
I'm here for any help. ;)

bug: 4.0.3
Quote
$getRoundSharesQ = mysql_query("SELECT `id FROM `shares_history` WHERE `blockNumber` = '".$block["blockNumber"]."' AND `username` = '$username.%' AND `our_result` != 'N'");

replace with:
Quote
$getRoundSharesQ = mysql_query("SELECT `id` FROM `shares_history` WHERE `blockNumber` = '".$block["blockNumber"]."' AND `username` = '$username.%' AND `our_result` != 'N'");


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 20, 2011, 08:50:00 AM
Thanks for that bugfix masterp.


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: xmasterpx on June 20, 2011, 09:04:25 AM
Change (index.php)
Code:
else if($numRows == 0){
$i=0;
//Go through the pool history and display that
$poolHistory = mysql_query("SELECT `averageMhash`, `timestamp` FROM `stats_poolMHashHistory` WHERE `timestamp` >= '".$fiveMinutesAgo."' ORDER BY `timestamp` DESC");
while($poolHash = mysql_fetch_array($poolHistory)){
if($i > 0){
$poolHashArray .=",";
$timeHashArray .=",";
}
$i++;
$poolHashArray .= $poolHash["averageMhash"];
$timeHashArray .= "'".date("G:i:s", $time["timestamp"])."'";
}

to
Code:
else if($numRows == 0){
$i=0;
//Go through the pool history and display that
$poolHistory = mysql_query("SELECT `averageMhash`, `timestamp` FROM `stats_poolMHashHistory` WHERE `timestamp` >= '".$fiveMinutesAgo."' ORDER BY `timestamp` DESC");
while($poolHash = mysql_fetch_array($poolHistory)){
if($i > 0){
$poolHashArray .=",";
$timeHashArray .=",";
}
$i++;
$poolHashArray .= $poolHash["averageMhash"];
$timeHashArray .= "'".date("G:i:s", $poolHash["timestamp"])."'";
}

its fixing the zero time at index.php (if logged out)


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 20, 2011, 11:37:51 AM
Can you explain what you mean by "zero time"?


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: xmasterpx on June 20, 2011, 11:59:33 AM
Hi,
if you're logged out. And watch your Mainpage. You'll see your Average PoolRate(Graph) but without any timestamps.
They are all on zero.

And btw if you change "DESC" to "ASC" in the mysql statements on line ~59 and ~87 (index.php)
the timeline is "normal" from left to the right.


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 20, 2011, 12:08:12 PM
Got it, and your fix works!  Been struggling to get stats working now.  Also, a big thing I think we should mention to users.  To run stats, statsUpdater.php must be run as a cronjob.  However, there is a large section of code commented out for the "Generate User Shares History" section.  Is this section of code tested?


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: xmasterpx on June 20, 2011, 12:25:54 PM
I dont think that the code has been tested.
Working for a patch now to see the whole Pool Rate over time.

At the moment we can see only averages. More interesting is the total rate i think.


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: phorensic on June 20, 2011, 12:39:11 PM
I just realized that the code in question INSERTS into a table that is not created by default from Xen's SQL database dump. "stats_userSharesHistory" .  I created the table manually, but I don't really know if it's working for sure.  I'm getting a lot of zeros in my stats.  Developing this code on the fly is fun!


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: xmasterpx on June 20, 2011, 01:41:49 PM
I will not try that ^^ i think that xen will implement this later itself.


Now for the Total Hash Rate of the Pool:

1. SQL insert
Code:
ALTER TABLE `stats_poolMHashHistory` ADD `totalMhash` INT( 50 ) NOT NULL 
2. now open statsUpater.php
replace:
Code:
//Get average Mhash for the entire pool
$poolAverageHashQ = mysql_query("SELECT `mhashes` FROM `stats_userMHashHistory` WHERE `mhashes` > 0 AND `timestamp` = '".$globalTime."'");
$numPoolHashRows = mysql_num_rows($poolAverageHashQ);
$averagePoolHash = 0;
while($poolHash = mysql_fetch_array($poolAverageHashQ)){
$averagePoolHash += $poolHash["mhashes"];
}
if($averagePoolHash > 0 && $numPoolHashRows > 0){
$averagePoolHash = $averagePoolHash/$numPoolHashRows;
}
//Add pool average to table
mysql_query("INSERT INTO `stats_poolMHashHistory` (`timestamp`, `averageMhash`)
VALUES('$globalTime', '$averagePoolHash')");
with:
Code:
//Get average and total Mhash for the entire pool
$poolAverageHashQ = mysql_query("SELECT `mhashes` FROM `stats_userMHashHistory` WHERE `mhashes` > 0 AND `timestamp` = '".$globalTime."'");
$numPoolHashRows = mysql_num_rows($poolAverageHashQ);
$averagePoolHash = 0;
$totalPoolHash = 0;
while($poolHash = mysql_fetch_array($poolAverageHashQ)){
$averagePoolHash += $poolHash["mhashes"];
$totalPoolHash += $poolHash["mhashes"];
}
if($averagePoolHash > 0 && $numPoolHashRows > 0){
$averagePoolHash = $averagePoolHash/$numPoolHashRows;
}
//Add pool average and total to table
mysql_query("INSERT INTO `stats_poolMHashHistory` (`timestamp`, `averageMhash`, `totalMhash`)
VALUES('$globalTime', '$averagePoolHash', '$totalPoolHash')");

save.

3. open index.php
and replace it with this one:
http://nopaste.info/46f62a7fde_nl.html

4. Looks like that:
http://imageshack.us/photo/my-images/864/chartz.png/


Title: Re: [v4.0.3] Mining Farm #2 | Mining Pool Front-End
Post by: Xenland on June 20, 2011, 05:22:52 PM
Thanks guys for the input your effort will not go un-noticed, I shall add these things on the next version, and I shall also bring back the userSharesHistory but all it really does is show the amount of time it takes to receive a share although I'm sure the community would like more stats to look at then just two :D


Title: Re: [v4.0.3] Mining Farm #2 | Big thanks to all the donors!
Post by: phorensic on June 21, 2011, 12:27:36 AM
xmasterpx, love the new stat layout.  I am having a problem in my "statsUpdater.php" where it is not updating the 'epochTimestamp' in the 'shares' table.  This is what I get in my php logs:

Code:
[20-Jun-2011 20:20:35] PHP Warning:  mktime() expects parameter 1 to be long, string given in /var/www/req/cronjob/statsUpdater.php on line 30
[20-Jun-2011 20:20:35] PHP Notice:  Undefined offset: 1 in /var/www/req/cronjob/statsUpdater.php on line 27
[20-Jun-2011 20:20:35] PHP Notice:  Undefined offset: 1 in /var/www/req/cronjob/statsUpdater.php on line 30
[20-Jun-2011 20:20:35] PHP Notice:  Undefined offset: 2 in /var/www/req/cronjob/statsUpdater.php on line 30
[20-Jun-2011 20:20:35] PHP Notice:  Undefined offset: 1 in /var/www/req/cronjob/statsUpdater.php on line 30
[20-Jun-2011 20:20:35] PHP Notice:  Undefined offset: 2 in /var/www/req/cronjob/statsUpdater.php on line 30

My epochTimestamp is 0 in every row.


Title: Re: [v4.0.3] Mining Farm #2 | Big thanks to all the donors!
Post by: phorensic on June 21, 2011, 12:39:50 AM
Nevermind, my `time` column was screwed up, it was just an int instead of "`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP," .  Don't mind my n00b ramblings  ;D


Title: Re: [v4.0.3] Mining Farm #2 | Big thanks to all the donors!
Post by: phorensic on June 21, 2011, 01:07:31 AM
You rock masterp!

http://farm4.static.flickr.com/3252/5855181090_c90c35630a_b.jpg


Title: Re: [v4.0.3] Mining Farm #2 | Big thanks to all the donors!
Post by: Xenland on June 21, 2011, 01:25:58 AM

Thanks for your contributions masterp ive added yor code to be in the next update along with a couple of other fixes that will be included should be released tonight!


Title: Re: [v4.1] Mining Farm #2 | Module Ideas!?
Post by: peedee on June 21, 2011, 10:27:24 PM
Great work guys!


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: xmasterpx on June 22, 2011, 07:23:37 AM
Hi,
Thanks phorensic   :)

But Xenland is rocking more ;)

@xenland
before i update my version. anything to do at the database?
or just that?
Code:
ALTER TABLE `stats_poolMHashHistory` ADD `totalMhash` INT( 50 ) NOT NULL 

secondary it is maybe useful to write it down at the first post if someone want to make an update.

best regards


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: Xenland on June 22, 2011, 07:27:09 AM
Hi,
Thanks phorensic   :)

But Xenland is rocking more ;)

@xenland
before i update my version. anything to do at the database?
or just that?
Code:
ALTER TABLE `stats_poolMHashHistory` ADD `totalMhash` INT( 50 ) NOT NULL 

secondary it is maybe useful to write it down at the first post if someone want to make an update.

best regards
That looks about right, I believe totalMhash was the only field I used for MySql
you can find all current change log updates over at http://miningfarm.com/changeLog.php

Thanks everybody for your support!


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: xmasterpx on June 22, 2011, 07:30:21 AM
Hi,
yes i have seen this changelog.
But i cant see any sqltable changing. Because of that is was asking. :>

I will update now.


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: xmasterpx on June 22, 2011, 07:39:49 AM
Hi,
do you have tested your code?

TotalHashes arent working anymore. :>


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: Xenland on June 22, 2011, 07:40:47 AM
Hi,
yes i have seen this changelog.
But i cant see any sqltable changing. Because of that is was asking. :>

I will update now.
Oh you want specifics? Its really hard to output that kind of information, I'm constantly updating my software to be-inline with my future plans like Modules and Skin chooser. In fact I believe there will be a state that my software wont need any more mysql changes, it'll be database pefect! :P

Thinking about a Lottery module? whatchu thinks?

P.S. total hashes updates to mysql but I forgot to output it to the data on the index, I'll post an update soon after I find my self in the forest


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: xmasterpx on June 22, 2011, 07:46:26 AM
Hi,
do you have tested your code?

TotalHashes arent working anymore. :>

May you use "spline" instead of "line" on the charts. it looks realy better.
use this code xen:
http://nopaste.info/46f62a7fde_nl.html

its showing the stats even you're logged out.

P.S.
A lottery modul?
Hmm i would not use it but would be nice.


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: Xenland on June 22, 2011, 08:16:12 AM
Hi,
do you have tested your code?

TotalHashes arent working anymore. :>

May you use "spline" instead of "line" on the charts. it looks realy better.
use this code xen:
http://nopaste.info/46f62a7fde_nl.html

its showing the stats even you're logged out.

P.S.
A lottery modul?
Hmm i would not use it but would be nice.
Thanks for that, i was wondering about how you made your graph look so smooth i need to stop and ask more questions.

Personally i wouldnt use a lottory module either considering that someone could change my code to rig it. May i could run a local mining farm and the lottory module just outsources the interface, that could be a potientially huge jackpot if users from every pool participated with just one jack pot
Whatchu think?


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: xmasterpx on June 22, 2011, 08:32:22 AM
Hi,
That would be nice.
And i think each user can choose itself implement a form like for withdraw -> send to jackpot an amount X.X
or an selfchoosed automatic percentage on each round in the lottery.
if the jackpot pays out you send it back to the farm and the user get it in his balance.

But if you run it yourself my pool cant participate to this. cause we are farming namecoins :>


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: FreddyE on June 22, 2011, 09:29:56 AM
how do I set a pool fee?


Title: Re: [v4.1] Mining Farm #2 | Donate Mhash/s to http://173.212.217.202/
Post by: Xenland on June 22, 2011, 10:15:35 AM
Hi,
That would be nice.
And i think each user can choose itself implement a form like for withdraw -> send to jackpot an amount X.X
or an selfchoosed automatic percentage on each round in the lottery.
if the jackpot pays out you send it back to the farm and the user get it in his balance.

But if you run it yourself my pool cant participate to this. cause we are farming namecoins :>

Looks like I'll just have to run two lottos, Namecoin and Bitcoind lottory modules!!!!
I'm trying to think of a way that will make it so the user can send the payment to the pot with out allowing the pool operator to mess with the code....baffelling.....

Oh yeah freedyE pool fee options is comming soon I left that out by accident on the graphic design shift change, Thanks for the reminder :D


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: phorensic on June 22, 2011, 06:06:27 PM
Ah dangit, you released a new version just as our private pool code is frozen while we find our first real block.  Looks like I have a lot more hours of hacking once we find our first block!


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: peedee on June 22, 2011, 09:02:03 PM
How would I query for the number of active workers ?


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: Xenland on June 22, 2011, 09:08:13 PM
How would I query for the number of active workers ?
Code:
$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

Code:
SELECT `id` FROM `stats_userMhashes` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0
try that?


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: xane on June 22, 2011, 09:40:49 PM
Ok I read a couple of pages, but I can't find any info to WTF THIS SOFTWARE ACTUALLY DOES.  :P

Is it just a mining pool solution?


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: peedee on June 22, 2011, 10:47:35 PM
Its actually like this :

$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

$workers = mysql_query("SELECT count(*) FROM `stats_userMHashHistory` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0");

// Verify it worked
if (!$workers) echo mysql_error();

$nrworkers = mysql_fetch_array($workers);


Then where ever you want to display the amount of workers :

echo "$nrworkers[0]"


Btw the stats_userMHashHistory table is filling up pretty quickly, especially if the number of workers that have been created increases, I think this will be become a scalability bottleneck.


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: gigabytecoin on June 23, 2011, 04:18:29 AM
Its actually like this :

$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

$workers = mysql_query("SELECT count(*) FROM `stats_userMHashHistory` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0");

// Verify it worked
if (!$workers) echo mysql_error();

$nrworkers = mysql_fetch_array($workers);


Then where ever you want to display the amount of workers :

echo "$nrworkers[0]"


Btw the stats_userMHashHistory table is filling up pretty quickly, especially if the number of workers that have been created increases, I think this will be become a scalability bottleneck.

Just don't use MySQL then. CouchDB or another database type optimized for large databases.


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: BombaUcigasa on June 23, 2011, 08:39:21 AM
$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;


$fiveMinutesAgo = time() - 60 * 5; // WTF @ convulted code...


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: Xenland on June 23, 2011, 09:50:59 AM
$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;


$fiveMinutesAgo = time() - 60 * 5; // WTF @ convulted code...

I guess I could save a line of execution by doing the following

Code:
$fiveMinutesAgo = time()-60*5;

I'm sure I probably save .01 of a nano second that way.
In all seriousness tho, I find the original way easier to read when other users edited it they can quickly pick up what exacly is happening


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: peedee on June 23, 2011, 11:20:04 AM
Its actually like this :

$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

$workers = mysql_query("SELECT count(*) FROM `stats_userMHashHistory` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0");

// Verify it worked
if (!$workers) echo mysql_error();

$nrworkers = mysql_fetch_array($workers);


Then where ever you want to display the amount of workers :

echo "$nrworkers[0]"


Btw the stats_userMHashHistory table is filling up pretty quickly, especially if the number of workers that have been created increases, I think this will be become a scalability bottleneck.

Just don't use MySQL then. CouchDB or another database type optimized for large databases.

What about purging / summarizing? Some stats don't need to be available up to the lowest timeslice level forever.

For example :
Keep timeslice level data for 1 week
Keep hour data for 1 month
Keep day data for 3 months
Keep month data for 5 years

Can make nice graphs out of that and save A LOT of space. A bottleneck will be reached someday, keep adding resources gets expensive / risky so it's better to start summarizing while it's still the early stage than to find out you'll need hour long running jobs to purge / summarize your data later.

Or am I missing something and do we need to keep everything we collect ?


Title: Re: [v4.1] Mining Farm #2 | Help donate hashes [Testnet] http://173.212.217.202/
Post by: Xenland on June 23, 2011, 11:37:31 AM
Its actually like this :

$fiveMinutesAgo = time();
$fiveMinutesAgo -= 60*5;

$workers = mysql_query("SELECT count(*) FROM `stats_userMHashHistory` WHERE `timestamp` >= $fiveMinutesAgo AND `mhashes` > 0");

// Verify it worked
if (!$workers) echo mysql_error();

$nrworkers = mysql_fetch_array($workers);


Then where ever you want to display the amount of workers :

echo "$nrworkers[0]"


Btw the stats_userMHashHistory table is filling up pretty quickly, especially if the number of workers that have been created increases, I think this will be become a scalability bottleneck.

Just don't use MySQL then. CouchDB or another database type optimized for large databases.

What about purging / summarizing? Some stats don't need to be available up to the lowest timeslice level forever.

For example :
Keep timeslice level data for 1 week
Keep hour data for 1 month
Keep day data for 3 months
Keep month data for 5 years

Can make nice graphs out of that and save A LOT of space. A bottleneck will be reached someday, keep adding resources gets expensive / risky so it's better to start summarizing while it's still the early stage than to find out you'll need hour long running jobs to purge / summarize your data later.

Or am I missing something and do we need to keep everything we collect ?


This all sounds pretty good idears, I think most of the data wont be neccesary.


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: kr105 on June 23, 2011, 04:03:32 PM
Link not working for 4.1.1:(


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: peedee on June 23, 2011, 04:43:28 PM
Can you update the changelog ?


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: Xenland on June 23, 2011, 04:56:41 PM
Can you update the changelog ?

Added serverFeePercentage mysql.

And fixed the accounts not being rewarded bug

Sorry cant have more detailed changelog, but its just me and i cant rememeber every change


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: kr105 on June 23, 2011, 05:26:01 PM
Here is a .patch of the changes from 4.1.0 to 4.1.1
http://www.mediafire.com/?07e4l23sjszvcen


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: peedee on June 23, 2011, 07:39:13 PM
Estimated Bitcoins does not seem to work for me ?


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: Xenland on June 23, 2011, 08:24:38 PM
Estimated Bitcoins does not seem to work for me ?
I seem to be experiencing this problem too, It must of broke with some last minute fixes in the display, I'll have a fix up soon, Thanks mate!


Title: Re: [v4.1.2] Mining Farm ::: Annoying Bugs Sqwished!
Post by: sergio on June 24, 2011, 01:22:41 AM
bug reports based on demo, which I believe it is 4.1.2 since I could not find the version number on it.

Under account details --> worker Status it displays
{ "User":{ "username":"sergio.3", "currSpeed":"0", "status":"Connected" }, "Pool":{ } }

CurrSpeed:0 it seems wrong since the miner it is running.

Under account details --> Overall Stats
The requested URL /json/poolstats.php was not found on this server.
The file is missing.

The estimated reward for the round seems to be off, since I am the only miner currently running the test and as time goes by the rewards goes down, that would make sense only if there were more miners joining the test.

Under Managed Workers, once a worker has been created the delete option does not work.

Hopefully this bug will be fixed on the next release.

Thanks


Title: Re: [v4.1.2] Mining Farm ::: Annoying Bugs Sqwished!
Post by: Xenland on June 24, 2011, 01:34:52 AM
Ill check it out but i bet scince i JUST sign off my miner it will look like that please tell me if this problem persists after the next round. And i did forget pool stats fixes coming in a few hours
bug reports based on demo, which I believe it is 4.1.2 since I could not find the version number on it.

Under account details --> worker Status it displays
{ "User":{ "username":"sergio.3", "currSpeed":"0", "status":"Connected" }, "Pool":{ } }

CurrSpeed:0 it seems wrong since the miner it is running.

Under account details --> Overall Stats
The requested URL /json/poolstats.php was not found on this server.
The file is missing.

The estimated reward for the round seems to be off, since I am the only miner currently running the test and as time goes by the rewards goes down, that would make sense only if there were more miners joining the test.

Under Managed Workers, once a worker has been created the delete option does not work.

Hopefully this bug will be fixed on the next release.

Thanks


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 24, 2011, 04:45:59 AM
Bug report that doesn't really break anything - "mainstyle.css"  line 155

Code:
ul#list-nav li {
      display:inline
}

Needs to have a ;


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: d3c0n808 on June 24, 2011, 05:28:39 AM
Xenland one question....if your currently working on a block shouldn't the stats say which block number your currently on regardless of wether or not you found a block?  I was just wondering because on the test net yours is showing current block and found blocks as well or does the pool have to find the first block? Also in 4.1.2 the estimated is 0, in the previous version 4.1.1 i believe with me mining solo on the pool estimated was 50 which would be correct as im the only worker.  Is this a bug or just my webserver F-in up.   Sorry to bug ya just wondering


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: Xenland on June 24, 2011, 05:33:21 AM
Xenland one question....if your currently working on a block shouldn't the stats say which block number your currently on regardless of wether or not you found a block?  I was just wondering because on the test net yours is showing current block and found blocks as well or does the pool have to find the first block? Also in 4.1.2 the estimated is 0, in the previous version 4.1.1 i believe with me mining solo on the pool estimated was 50 which would be correct as im the only worker.  Is this a bug or just my webserver F-in up.   Sorry to bug ya just wondering

Correct you must find at least one block before the blocks found stats page works correctly ill see if i can replace the nasty white area with a nice current block graph in the mean time if that would help


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: sakkaku on June 24, 2011, 05:36:04 AM
Ahh I see what your saying, all i need to do is add a mysql_real_escape_string() that will be in version 2,

When working with SQL you should escape every variable going in.  It doesn't matter if it came from you hand carving it into a piece of stone and transplanting it into the server like an act of god.  All it takes is one oops to turn a "safe" variable into an attack vector.


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 24, 2011, 05:39:43 AM
Ahh I see what your saying, all i need to do is add a mysql_real_escape_string() that will be in version 2,

When working with SQL you should escape every variable going in.  It doesn't matter if it came from you hand carving it into a piece of stone and transplanting it into the server like an act of god.  All it takes is one oops to turn a "safe" variable into an attack vector.
Wow your response is wayyy late, were at version 4 buddy, try again :)


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: sakkaku on June 24, 2011, 05:40:40 AM
Ahh I see what your saying, all i need to do is add a mysql_real_escape_string() that will be in version 2,

When working with SQL you should escape every variable going in.  It doesn't matter if it came from you hand carving it into a piece of stone and transplanting it into the server like an act of god.  All it takes is one oops to turn a "safe" variable into an attack vector.
Wow your response is wayyy late, were at version 4 buddy, try again :)

lol sorry.  I'm half asleep >_<


Title: Re: [Pre-Beta] Mining Pool #2 | Front End to pushpool
Post by: Xenland on June 24, 2011, 05:43:08 AM
Ahh I see what your saying, all i need to do is add a mysql_real_escape_string() that will be in version 2,

When working with SQL you should escape every variable going in.  It doesn't matter if it came from you hand carving it into a piece of stone and transplanting it into the server like an act of god.  All it takes is one oops to turn a "safe" variable into an attack vector.
Wow your response is wayyy late, were at version 4 buddy, try again :)

lol sorry.  I'm half asleep >_<
:P its all good!

You can check out the updated version here if your intention is to stay up that is: http://173.212.217.202/


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: phorensic on June 24, 2011, 07:18:57 AM
Can you update the changelog ?

Added serverFeePercentage mysql.

And fixed the accounts not being rewarded bug

Sorry cant have more detailed changelog, but its just me and i cant rememeber every change
"Accounts not being rewarded bug" - I thought it was just me running on testnet that broke things, I solved 14 blocks and all balances were 0, so I have a private pool going now on the real blockchain.  Because I have modified your v4.0.1 release *heavily*, do you mind posting a diff or describing how this bug was fixed?


Title: Re: [v4.1.1] Mining Farm ::: Annoying Bugs Sqwished!
Post by: Xenland on June 24, 2011, 07:28:50 AM
Can you update the changelog ?

Added serverFeePercentage mysql.

And fixed the accounts not being rewarded bug

Sorry cant have more detailed changelog, but its just me and i cant rememeber every change
"Accounts not being rewarded bug" - I thought it was just me running on testnet that broke things, I solved 14 blocks and all balances were 0, so I have a private pool going now on the real blockchain.  Because I have modified your v4.0.1 release *heavily*, do you mind posting a diff or describing how this bug was fixed?

Honestly i dont remeber, i get so many fix/suggestion requests i just cant remeber changes in the code it self. the top half of blockUpdater.php was wierd i keptd hacking at it until i worked correctly.

I honestly think it was a misspelling somewere and on top of that the if statements didnt work.

When i upload 4.2.2 the stats will get purged after a certain amount of time to save memory.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: kr105 on June 24, 2011, 02:21:40 PM
Hey Xenland, you should move to SVN or GIT to track your changes better  ;)


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 24, 2011, 03:54:41 PM
I agree, but he used Github already and abandoned it!  We want github again!   ;D


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: frizzl on June 24, 2011, 04:31:51 PM
/justdoeeet


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: peedee on June 24, 2011, 08:00:11 PM
Xenland : in the 4.1.2 version the serverFeepercentage column was removed from the SQL script, is that on purpose ?



Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: sakkaku on June 24, 2011, 08:01:03 PM
I agree, but he used Github already and abandoned it!  We want github again!   ;D

Github is <3


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: openrune on June 24, 2011, 08:14:41 PM
Hi all, i just installed the actual Farm 4.1.2 everything works good exept this:

When i should type in the auth code i get wired errors above the code field but to add the code provided in the mail works

then when i login i see in on top left, aswelll on the statistics page and in the percentage field in the administrator section

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in .../req/functions.php on line 340

guess there is a little mess in the sql file

:)


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: peedee on June 24, 2011, 08:25:24 PM
Hi all, i just installed the actual Farm 4.1.2 everything works good exept this:

When i should type in the auth code i get wired errors above the code field but to add the code provided in the mail works

then when i login i see in on top left, aswelll on the statistics page and in the percentage field in the administrator section

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in .../req/functions.php on line 340

guess there is a little mess in the sql file

:)


Lol. thats the missing column I just pointed out. It tries to get the serverfeepercentage :)

Try :

ALTER TABLE websiteSettings ADD  serverFeePercentage varchar(20) NOT NULL AFTER browserTitle;

Then add a percentage and see if it works.




Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 24, 2011, 08:31:15 PM
It is supposed to be a varchar and 'x%' or an int and 'x'?


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: openrune on June 24, 2011, 09:14:35 PM
thanks peedee that solved the problem


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: Xenland on June 24, 2011, 09:21:24 PM
I'll find something that tracks changes better, last time github ruined everything it appended old code with my new code for some reason and it took me 6 hours to clean up the code.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: Xenland on June 24, 2011, 09:22:02 PM
Xenland : in the 4.1.2 version the serverFeepercentage column was removed from the SQL script, is that on purpose ?



No please add serverFeePercentage back this was a regression.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: sakkaku on June 24, 2011, 09:22:56 PM
I'll find something that tracks changes better, last time github ruined everything it appended old code with my new code for some reason and it took me 6 hours to clean up the code.

You probably f*cked something up when you committed your changes to git.  I have never had that issue.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: openrune on June 24, 2011, 10:28:01 PM
Wow the Frontpage looks great when a worker is active ;)

but i have an other error on the stats page aswell as in the blocksUpdater.php:

Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.0 401 Authorization Required) thrown in on line 0



Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: Xenland on June 24, 2011, 10:38:07 PM
Wow the Frontpage looks great when a worker is active ;)

but i have an other error on the stats page aswell as in the blocksUpdater.php:

Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.0 401 Authorization Required) thrown in on line 0

i allso have a lot rpc upstream erros in the miner, but he allready was abot to find valid and rejected blocks,

thats a bit wired ;)

Yes im receving this too it started happening around 12-2am my time(when i wasnt playing with code)
Looking for a fix could be a bitcoin-php problem or bitcoimd problem possibly.

Im trying github again and ill just keep backups before updating to prevent this problem


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: peedee on June 24, 2011, 10:58:26 PM
There are two other stats that have been broken with 4.1.2 :

accountDetails.php :

Estimated Reward this Round

header.php :

Estimated
 

???


...


Title: Re: [v4.1.2] Mining Farm :: [Regressing to v4.1.2] Updates may take longer
Post by: Xenland on June 24, 2011, 11:39:53 PM
Sorry everyone, I technically have 3 different versions on my computer, all on different partitions/servers. I'm just going to download the 4.1.2 version again and start over. This may take a bit longer for another daily update, to prevent this from happening again I'll try using github so I can stop fussing with all these regressions I keep finding. Hopefully github will play nice this time. Again sorry for the inconvenience.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 25, 2011, 03:31:13 AM
My github fork has been updated with some quick initial changes.  I hope to contribute as much as I can to this project while I test my private pool and try to make it public.  Currently I am only editing the fork with bits and pieces of what I like, it's not a clone of my current pool code which would change everything and break things.  "inset_into_database.sql" needs some major editing.  The version on github is horrible, while the version in your released tarballs is pretty close.  I suggest deleting the original in your master branch and pasting in a copy from your tarballs.  Cheers!


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: openrune on June 25, 2011, 01:10:17 PM
Hello All

My mine works good now on http://mine.tenobis.com !
But there is still a little bug and i cant find why that is its on the stats page and in the block cronjobs aswell:

Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.0 401 Authorization Required) thrown in on line 0

Does anyone have an idea why that happens??


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: drontus on June 25, 2011, 10:45:20 PM
Fatal error: Call to undefined function bindtextdomain() in Z:\home\localhost\www\req\functions.php on line 36


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: drontus on June 25, 2011, 11:20:22 PM
and one more
Fatal error: Call to undefined function gettext() in Z:\home\localhost\www\1\index.php on line 23


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 25, 2011, 11:21:44 PM
Fatal error: Call to undefined function bindtextdomain() in Z:\home\localhost\www\req\functions.php on line 36
What version of PHP do you have?  I believe that function is built right into PHP without a module also.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: drontus on June 25, 2011, 11:51:44 PM
php 5.3


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: Big Time Coin on June 26, 2011, 12:09:42 AM
posting to sub  ;D good work xen.


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 26, 2011, 02:11:08 AM
php 5.3
sudo aptitude install gettext-base


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: timmmay on June 26, 2011, 02:40:20 AM
php 5.3
sudo aptitude install gettext-base

Looks like he's on windows :D


Title: Re: [v4.1.2] Mining Farm ::: [Bug testing Until 1AM central time]
Post by: phorensic on June 26, 2011, 08:18:03 AM
php 5.3
sudo aptitude install gettext-base

Looks like he's on windows :D
Oh jeez.  He needs to delete his Z: drive and stick to mining! jk


Title: Re: [v4.1.2] Mining Farm ::: Git hub & Twitter Available
Post by: xmasterpx on June 26, 2011, 09:44:29 AM
Bug.
Rewards function.php
Code:
		//Get estimated earnings
$estReward = 0;
if($totalPoolShares > 0 && $totalShares > 0){
$estReward = $totalPoolShares/$totalShares;
}

should be
Code:
		//Get estimated earnings
$estReward = 0;
if($totalPoolShares > 0 && $totalShares > 0){
$estReward = $totalShares/$totalPoolShares;
}


Title: Re: [v4.1.3] Mining Farm ::: Git hub & Twitter Available
Post by: timmmay on June 26, 2011, 11:58:24 AM
Hey Xenland - I just updated to 4.1.3 and the "blog" part of the front page isn't opening.  See http://203.173.42.154



Title: Re: [v4.1.3] Mining Farm ::: Git hub & Twitter Available
Post by: openrune on June 26, 2011, 01:34:58 PM
I just installed 4.1.3

It seems that the Blog is gone, the errors in activateAccount.php still appears but now the site doesnt even tell you anymore that your account was activated, it did tell you that even with the errors in 4.1.2

Warning: include(..../req/menu.php) [function.include]: failed to open stream: No such file or directory in .../activateAccount.php on line 47
Warning: include() [function.include]: Failed opening '.../req/menu.php' for inclusion (include_path='.:') in .../activateAccount.php on line 47
Warning: include() [function.include]: Filename cannot be empty in .../activateAccount.php on line 53
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:') in .../activateAccount.php on line 53


in the top right corner where the currencies and est. income etc is, there is an error:

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/tenobis.com/subdomains/mine/httpdocs/req/functions.php on line 391

on the Admin Panel i cant change the settings anymore.....

And this on the stats Page (this didnt change since 4.1.2):

Fatal error: Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.0 401 Authorization Required) thrown in on line 0

But i saw that this isnt the case on timmmay miningfarm, wonder what he has different, cause xen told me that he has the same error


Title: Re: [v4.1.3] Mining Farm ::: Git hub & Twitter Available
Post by: phorensic on June 26, 2011, 06:25:46 PM
Aw man, you broke the github fork by starting over from scratch!  It's alright, I'll figure out how to refork or something.


Title: Re: [v4.1.3] Mining Farm ::: Git hub & Twitter Available
Post by: d3c0n808 on June 26, 2011, 07:32:23 PM
I uploaded the new github, it looks pretty good I love what you did with the block stats now you can at least see which block your own vs just a blank page if you found no blocks. the only thing I could see thus far it seems is a mysql error, when I try to change info from admin page it returns a Unknown column 'currencyData' in 'field list'  Other people have been having issues on the registration ive seen no such issue as ive just reregisterd myself and it seems to be working ok...


Title: Re: [v4.1.3] Mining Farm ::: Git hub & Twitter Available
Post by: phorensic on June 26, 2011, 11:29:45 PM
One thing I've been meaning to ask before I take my pool public.  Can you integrate some sort of "Forgot Password" system?


Title: Re: [v4.1.2] Mining Farm ::: Git hub & Twitter Available
Post by: xmasterpx on June 27, 2011, 07:10:12 AM
Bug.
Rewards function.php
Code:
		//Get estimated earnings
$estReward = 0;
if($totalPoolShares > 0 && $totalShares > 0){
$estReward = $totalPoolShares/$totalShares;
}

should be
Code:
		//Get estimated earnings
$estReward = 0;
if($totalPoolShares > 0 && $totalShares > 0){
$estReward = $totalShares/$totalPoolShares;
}

still not fixed in 4.1.51
the pool will reward more than 50BTC with this code

$pendingBalance is without any function.

still have the reward bug that i hve explained in PM.

THANKS for the disable TH option. :>


Title: Re: [v4.1.2] Mining Farm ::: Git hub & Twitter Available
Post by: Xenland on June 27, 2011, 11:40:36 AM
Oh i overlooked that post itll be fixed keep them bug reports comming guys! :D
Bug.
Rewards function.php
Code:
		//Get estimated earnings
$estReward = 0;
if($totalPoolShares > 0 && $totalShares > 0){
$estReward = $totalPoolShares/$totalShares;
}

should be
Code:
		//Get estimated earnings
$estReward = 0;
if($totalPoolShares > 0 && $totalShares > 0){
$estReward = $totalShares/$totalPoolShares;
}

still not fixed in 4.1.51
the pool will reward more than 50BTC with this code

$pendingBalance is without any function.

still have the reward bug that i hve explained in PM.

THANKS for the disable TH option. :>


Title: Re: [v4.1.51] Mining Farm ::: Git hub & Twitter Available
Post by: timmmay on June 27, 2011, 12:34:44 PM
Running 4.1.51.  Here's a few things that don't seem to be working:

1. Miner stats - shows 0 speed all the time
2. Pool stats (front page)
3. Blog posts are missing
4. ./json/poolstats.php link doesn't exist
5. payment calculcations seem to be inconsistent/incorrect.  I'm running on testnet and have solved 3 blocks.  The pool is set to charge a 1% fee.  The statistics page says my payment for each block is 45BTC (135 total) yet my balance is at 103BTC (doesn't make sense??).  And actually as I was typing this I refreshed my pool page and my balance has just dropped to 101BTC???  Auto payment is set to 0.

Cheers

EDIT: and now it's dropped to 100BTC lol.  Something is stealing my balance....


Title: Re: [v4.1.51] Mining Farm ::: Git hub & Twitter Available
Post by: xmasterpx on June 27, 2011, 12:59:37 PM
Running 4.1.51.  Here's a few things that don't seem to be working:

1. Miner stats - shows 0 speed all the time
2. Pool stats (front page)
3. Blog posts are missing
4. ./json/poolstats.php link doesn't exist
5. payment calculcations seem to be inconsistent/incorrect.  I'm running on testnet and have solved 3 blocks.  The pool is set to charge a 1% fee.  The statistics page says my payment for each block is 45BTC (135 total) yet my balance is at 103BTC (doesn't make sense??).  And actually as I was typing this I refreshed my pool page and my balance has just dropped to 101BTC???  Auto payment is set to 0.

Cheers

EDIT: and now it's dropped to 100BTC lol.  Something is stealing my balance....

1. is working for me
2. is working for me
3. is working for me
4. has never exists
5. he knows that and he is working on it

some more bugs @ payout

Code:
	if(isSet($getCredentials->sendAddress)){
echo $getCredientials->sendAddress;
}else{

Typo Bug

And:
Code:
							//Does this accountbalance meet the `cashoutMinimum`
$accountBalance = $getCredientials->accountBalance;
$cashOutAddress = $getCredientials->sendAddress;
$userId = $getCredientials->userId;
$cashOutMin = getCashoutMin();
echo $cashOutAddress;
Dont know why but $accountBalance, $cashOutAddress are empty :O
at this point. Dont found why


Title: Re: [v4.1.51] Mining Farm mix with 4.1.51 sql settings
Post by: openrune on June 27, 2011, 10:25:13 PM
http://mine.tenobis.com runs now with 1 Ghash and works good !!


Title: Re: [v4.1.51] Mining Farm ::: Git hub & Twitter Available
Post by: phorensic on June 27, 2011, 11:17:04 PM
Running 4.1.51.  Here's a few things that don't seem to be working:

<snip>
3. Blog posts are missing
</snip>
Is your mySQL table populated in that section?  Can you add a blog post on the admin page?


Title: Re: [v4.1.51] Mining Farm ::: Git hub & Twitter Available
Post by: Xenland on June 28, 2011, 01:50:53 AM
Running 4.1.51.  Here's a few things that don't seem to be working:

<snip>
3. Blog posts are missing
</snip>
Is your mySQL table populated in that section?  Can you add a blog post on the admin page?

No i've removed the blog posts. I decided to have a really basic core system that way modules can do the fun stuff, Including blogs and signature generation, forums(maybe :)


Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: xmasterpx on June 29, 2011, 07:17:19 AM
Hi Xen,
we want to release soon.
When you will have fixed the outstanding reward and cashout bugs?

best regards

P.S
and please add the block status invalid.

Code:
{
        "account" : "",
        "category" : "orphan",
        "amount" : 50.25293224,
        "confirmations" : 0,
        "txid" : "790c5494c0a26a520c3cffc0dae536173bedfd4ef512b65db9bbf5613d68f0bb",
        "time" : 1309191321
    }
]



Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: Xenland on June 29, 2011, 09:45:45 AM
I have another bigger project I'm currently working on, With my time less available and the lack of monetary gain from donations my interest has hmmm I think I should say has "disinclined" a tid-bit, I should have some testing and the release done by Saturday or so. Thank for your patience

:D

Hi Xen,
we want to release soon.
When you will have fixed the outstanding reward and cashout bugs?

best regards

P.S
and please add the block status invalid.

Code:
{
        "account" : "",
        "category" : "orphan",
        "amount" : 50.25293224,
        "confirmations" : 0,
        "txid" : "790c5494c0a26a520c3cffc0dae536173bedfd4ef512b65db9bbf5613d68f0bb",
        "time" : 1309191321
    }
]



Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: d3c0n808 on June 29, 2011, 07:04:56 PM
Sorry I've been going through the code, and I still can't figure out how to change the background color on the menu buttons.  I've changed all the images from the image folder to no avail and I cant find the color in the css.  Anyone have any idea where that parameter is located?  Sorry Im not a coder.


Title: Re: [v4.1.6] Mining Farm ::: TENOBIS TEST REPORT
Post by: openrune on June 29, 2011, 07:05:57 PM
Hello all

Well by now we have our first 24h behind us, everything works well! We was able to rise the Hashrate from 2 gh/s yesterday to around 5.5 gh/s today, we thank all who joined us allready and help us rise the hashrate. If you wanna join us feel free to do so:
http://mine.tenobis.com

By now workers hash with an efficiency of 92% to 98%, the hasrate is accurate displayed for every worker aswell as the efficiency rate.

Slow workers with around 5 kh/s have an accurate display for the hashrate.

The  CPU USAGE of Bitcoind and Pushpoold is 2% (i wonder how this will rise when we get more ghashes)

We are still on our first goal, the first BLOCK ! :)


we discovered a minor bug that wasnt visible in the beginning:

There is a difference between the top right est. earnings and the est. earnings in the account details.

Wouldnt it be great to see the total of all workers for every miner ??
We wanna specialy thank Xenland for his dedicated work and aswell all others here that support this project!


Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: d3c0n808 on July 01, 2011, 06:50:13 AM
Still cant get stats update properly here...what was your secret to getting it to work?

did you add the cronjobs to your crontab?  Do you have php cli installed?  your crontab should have a php /Path/to/cronjob


Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: xmasterpx on July 01, 2011, 07:19:55 AM
I have another bigger project I'm currently working on, With my time less available and the lack of monetary gain from donations my interest has hmmm I think I should say has "disinclined" a tid-bit, I should have some testing and the release done by Saturday or so. Thank for your patience

:D

Hmm okay ^^
But may rethink that. :>
In my case i donated nothing cause i have nothing that is working. I cant go live at the moment so... i have nothing i could spend.

greetings


Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: Xenland on July 01, 2011, 10:03:03 AM
Indeed I get your point, You haven't advertised your domain to the public yet so there fore you can't get blocks to mine to donate. I was just trying notify anybody that was waiting so they don't get too anxious for the daily updates I've been presenting lately.

*The more you know!  ;D


Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: d3c0n808 on July 02, 2011, 10:17:53 PM
What kind of time frame do you guys that have it working run in terms of the crontab file? 5minutes? * minutes?

I use */1 for the statsupdater, everything else default /5 /8


Title: Re: [v4.1.6] Mining Farm ::: Help us mine our first block mine.Tenobis.com
Post by: d3c0n808 on July 03, 2011, 04:48:23 PM
Check your mail log and see if php is sending the email out to postfix.   If not then its a problem between php and postfix.  If not its more than likely the relay server your using. 


Title: Re: [v4.1.61] Mining Farm ::: Git Pulled
Post by: d3c0n808 on July 03, 2011, 09:43:55 PM
you don't need to edit the php.ini that much, you'll need to enter the address for the smtp server so in your case 127.0.0.1 port 25 and postfix should pick it up.  Make sure postfix is running on port 25, and then it should send through postfix vs sendmail. 


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: Xenland on July 04, 2011, 02:34:27 PM
Your an all in one guy, Database programming and a dentist, I bet you can do both at the same time :P

But in all seriousness
Could you be more specific and clear about what functions aren't working for you?
I have been following this thread daily and was aware of your mailing problem but it was nothing that I can fix personally(Didn't personally think I was required to butt-in really?)
My software relies on PHP mailing functions which is usually supported on more then 90% out of the box VPS hosting and it is more of a PHP issue then a software it sounds like anyways.(May be config issue)
Anyways I remember about a month ago I had mailing issues with PHP and I never did find a solution except that I reloaded the operating system which is less then ideal for recommending someone for a solution.

I actually did some testing yesterday and posted a bunch of fixes like I announced I would about a week ago.
and in all actuality it took me relativity 4-6 weeks to create this software from scratch, So i think your estimate for how long you've been chipping away is probably a little off.

P.S. Before the update that i mentioned above I have deleted poolstats.php unless github didn't commit it to the request in which this case I would ask your workers/users to ignore the broken link. Thanks mate!


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: Xenland on July 04, 2011, 03:42:51 PM
Thats just it, I have other apps that rely on the same php.ini file and all other mail apps work fine....only the frontend software wont send emails out for registering new clients....pretty important feature to work....are you saying you have fixed something or made an update now? It is very confusing as where to look for when updates are applied......also I dont get the confusion with github, I mean you zip up the files and upload them to the server correct? How do the files keep coming up missing or not extra files included??

That's a really odd problem, I'll look into it further. about the git hub thing I personally liked the part were I zip it up and upload to FTP but I had floods of change log requests every time an update was posted. Someone suggested I use a management system for coders such as Git Hub, I like it in the sense all I must do is type in a few commands and it will scan the code for new changes and update it to the website, However I have had issues with it such as a week ago someone did a pull request and I didn't know what that was. I was pushed into a corner to choose either accept the weird push issue that was reported in the terminal or force it. Thinking I'd break the upload I just accepted the pull then pushed it to the server and I come to find out just about every file had weird series of numbers along with "<<<<<<<<" signs in groups in a line. The code was a messed up to yin yang took about 6 hours to clean up. Long story short I still have problems with it but I backup a lot more to prevent issues like that. Anyways back to git hub, You can go to the git hub page and find the master branch there should be a comparison tool some where on the page(I still have trouble finding it). You can find your version that you downloaded and compare it with another version, it will then show you a list of files with red and green lines. The green lines means those lines were added to the project and the red one means that it was deleted from the project in comparison of each other.

and no none of my fixes were email auth related, Mostly optimizations for databases, some interface touch ups, and although bit coins were distribute correctly it would show up wrong in a few displays such as the stats.php file it would be a few BTC off and I added support for showing which blocks were invalid or orphaned in the stats page. Even tho they were never counted when rewarding users(just to clear any confusion on that)

Hope this helps mate!


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: Xenland on July 05, 2011, 07:30:05 AM
Thats just it, I have other apps that rely on the same php.ini file and all other mail apps work fine....only the frontend software wont send emails out for registering new clients....pretty important feature to work....are you saying you have fixed something or made an update now? It is very confusing as where to look for when updates are applied......also I dont get the confusion with github, I mean you zip up the files and upload them to the server correct? How do the files keep coming up missing or not extra files included??

do you happen to know the methods of how these apps send mail? are they publicly available for the code to look at if so please give me some links to look over the code and I can get something worked out even quicker


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: d3c0n808 on July 05, 2011, 02:58:02 PM
Thats just it, I have other apps that rely on the same php.ini file and all other mail apps work fine....only the frontend software wont send emails out for registering new clients....pretty important feature to work....are you saying you have fixed something or made an update now? It is very confusing as where to look for when updates are applied......also I dont get the confusion with github, I mean you zip up the files and upload them to the server correct? How do the files keep coming up missing or not extra files included??

Are these other apps web-based mail apps?  Or are they just mail apps running locally.  You may have to edit the sendmail file to use a relay host perhaps.  Also your php.ini what is in your sendmail path?  should be something like usr/sbin/sendmail -t -i This may not be a website problem so much as just a configuration issue.  I would use sendmail, and route that through postfix for an easy fix.  So i think you said your port was 587  so sendmail should have something like this for the relay server localhost:587 and of course your auth if you require one if not you can leave that blank. 


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: d3c0n808 on July 05, 2011, 05:15:18 PM
Cant have sendmail and postfix installed at the same time.

All my other web based apps that use the same php.ini file work fine so I know its specific to the front end website.....that is the only one that will not send out emails...I also have a in house mail server as I do domain/web hosting.....I have a very good understanding of how the mail works which is why I am baffled at why these emails wont send......

I appreciate your help more than you know but I had to move to other software as I just couldnt afford to spend any more days/weeks on this project...folks are starting to get ancy and I need to show them something that works well....

I have found several other front ends that work very well out of the box so to speak ....they even inlcluded templates for fast editing to customize to your liking....good stuff!

Thanks again for your time and help.

Np, sorry we couldn't get it working for you... On my box installation took a few minutes, sendmail works fine etc etc.  Not sure why your distro is having an issue.  Once again I'm sorry we could not be of more help.  Im sure its probably something stupid too that was preventing it from working, with linux and webapps it always seems to be something small that makes a much larger problem.  Haha anyhow have a good one man and good luck on the pool.


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: Xenland on July 06, 2011, 12:57:42 AM
BulletHead21, Could you try something out to verify something for me,

If you go into the register.php file search for the following code
Code:
mail($to, $subject, $message, $headers);

and change it to

Code:
mail($to, $subject, $message);

Anyway, apparently I forgot the headers variable during clean up maybe possibly this is an issue with your set up?
On top of that I read on another forum about a similar issue with another application that headers didn't play nice with postfix.
Let me know if this works or doesn't and we can get this potential issue out of the way.


Title: Re: [v4.1.51] Mining Farm ::: Git hub & Twitter Available
Post by: phorensic on July 06, 2011, 05:36:38 AM
And:
Code:
							//Does this accountbalance meet the `cashoutMinimum`
$accountBalance = $getCredientials->accountBalance;
$cashOutAddress = $getCredientials->sendAddress;
$userId = $getCredientials->userId;
$cashOutMin = getCashoutMin();
echo $cashOutAddress;
Dont know why but $accountBalance, $cashOutAddress are empty :O
at this point. Dont found why
I am experiencing the same bug.  Whe accountDetails tries to send a manual payout the variable is undefined and I get this in my apache log:

Code:
[error] [client xx] PHP Fatal error:  Uncaught BitcoinClientException: [0]: sendtoaddress requires a destination address\n\n  thrown in  on line 0, referer: http://xx.com/accountDetails.php

I've tried to recode it over and over again, but $cashOutAddress doesn't seem to get defined, even though the getCredientials->sendAddress command works everwhere else in the page.


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: phorensic on July 06, 2011, 07:35:09 AM
I've come up with a fix for the problem described above.  However, I'm too tired to post it.  I've come to the conclusion that there isn't a single page of this project that works right out of the box.  I have had to hack every single file to get things to work.  Very frustrated at the moment.  I have a feeling there is no testing that occurs before each release.  There are large portions of code--for critical features--that just simply do not, and cannot, work.  I realize I can help by posting commits on github, but I do not have the time to do that while I am trying to diagnose, fix, and add to our pool in production.  Grr.


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: Xenland on July 06, 2011, 09:30:24 AM
Im looking into this problem now,
I Do test my projects before releasing them;that is i reload my VPS operating system load up bitcoin and start up puspoold and let tesnet run untill i find 2-3 blocks then i do a quick pay out on test net then release it.

I appoligize I shall test more thoroughly to ensure everyone's convenience of install.
As id also like to note i technically haven't published this software we've just been pre beta testing.
I appreciate everyone's input and i can't wait until i can officially release my software for the masses and then i can send some tokens of appreciation towards all the contributors upon selling licenses.

Thanks to all the contributors i wouldn't be here with out you!

Oh yeah, thought i mention that once it release it for production use, there will be some implementation of an install file that will be used just like SMF or other popular webapps out there.

UPdate:I changed the thread title just to make this more apparent.


Title: Re: [Beta v4.1.73] Mining Farm
Post by: Xenland on July 06, 2011, 09:48:37 AM
While doing some testing I noticed a wierd bug with testnet, that it says confirms=>86 and category immature... Anybody else think this is wierd?

Oh yeah forgot 120confirms.. duhh!
Its still earlyer here..


Title: Re: [v4.1.73] Mining Farm .::. Fixed stats page reward display for invalid blocks
Post by: Xenland on July 07, 2011, 06:03:15 AM
I've come up with a fix for the problem described above.  However, I'm too tired to post it.  I've come to the conclusion that there isn't a single page of this project that works right out of the box.  I have had to hack every single file to get things to work.  Very frustrated at the moment.  I have a feeling there is no testing that occurs before each release.  There are large portions of code--for critical features--that just simply do not, and cannot, work.  I realize I can help by posting commits on github, but I do not have the time to do that while I am trying to diagnose, fix, and add to our pool in production.  Grr.

It actually dosne't help if you don't help us with information, I realise there is a "bug" but what did you do to recreate this bug?
Does payout address update?
Is payout address setup?
If the payout address is updated, what is your unconfirmed BTC status?


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: d3c0n808 on July 07, 2011, 11:00:55 PM
Hi Xenland I uploaded the new release and it seems at least on my server the stat updates no longer work.  The crons are still running I upgraded the database, and had something like 191,000 workers which was wrong so I dropped all the tables and started fresh.  Still not correctly identifiying the number of active or total workers also the front page speed also seems to not work.  Perhaps its just my server setup that is creating this issue.  Just thought I would post so your aware.


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: phorensic on July 08, 2011, 04:45:32 AM
Alright, had some time to push a commit on how I fixed manual payouts.  I also removed (deleted) the code for automatic payouts because I just don't trust it, yet.  If you notice, I still left some "mouse turds" behind in the code for that automatic payout system, meh.

The next thing I work on that might help the project is my theory on how blockFound.php should work.  I'll push a commit if it works.  I'm going to try a method where it looks in the database for a found block instead of bitcoind transactionlist.  This could also do an if/then comparison with the transactionlist if you want to be super paranoid.  It would then copy all rows in "shares" from the winning row backwards in time and place them in shares_history for balance calculation.  On top of that, I don't see any code that does a DELETE on the "shares" database to clean it up.  It only copies into shares_history (which has a proper DELETE mechanism in the code) and then further into shares_dead when they are counted and balances are updated.

Edit:  My github Network Graph doesn't show the commit, but you can find it in my commits section.


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: Xenland on July 08, 2011, 06:04:41 AM
Alright, had some time to push a commit on how I fixed manual payouts.  I also removed (deleted) the code for automatic payouts because I just don't trust it, yet.  If you notice, I still left some "mouse turds" behind in the code for that automatic payout system, meh.

The next thing I work on that might help the project is my theory on how blockFound.php should work.  I'll push a commit if it works.  I'm going to try a method where it looks in the database for a found block instead of bitcoind transactionlist.  This could also do an if/then comparison with the transactionlist if you want to be super paranoid.  It would then copy all rows in "shares" from the winning row backwards in time and place them in shares_history for balance calculation.  On top of that, I don't see any code that does a DELETE on the "shares" database to clean it up.  It only copies into shares_history (which has a proper DELETE mechanism in the code) and then further into shares_dead when they are counted and balances are updated.

Edit:  My github Network Graph doesn't show the commit, but you can find it in my commits section.

Thanks mate for your contributions :D I like this more then donations honestly. Im checking out the code right meow!

Update: i forgot to mention that i do have plans for such optimizations, but optimizing code that isnt finished  is redundent in my programming experience. Thanks again for the input and your concerns honestly like i said i like feedback, suggestions and code corrections more then do monetary donations scince those things help evenyone and not just myself


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: ziomik on July 08, 2011, 07:34:44 PM
Hi, thank's for your work ! 
Sorry for my english...
I have a problem on the home I have this error:
Code:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/www/req/functions.php on line 262

and statistic:
Code:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/stats.php on line 83

other problem is blockUpdater.php
Code:
Warning: fopen(http://mtgox.com/code/data/ticker.php) [function.fopen]: failed to open stream: HTTP request failed! in /var/www/req/cronjob/blockUpdater.php on line 81

Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/req/cronjob/blockUpdater.php on line 82

Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/req/cronjob/blockUpdater.php on line 83

Thank's for support :)


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: ziomik on July 08, 2011, 08:56:02 PM
RESOULT:
php.ini            "allow_url_fopen = On"

Bye!  8)


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: Xenland on July 09, 2011, 05:51:17 AM
RESOULT:
php.ini            "allow_url_fopen = On"

Bye!  8)

Hmm welll your function.php error dosent make sense scince there is no Mysql quey on that line. I'm not saying your lying I just honestly don't know what it would be saying that.
as for the mtgox that error is predictable as I'm still trying to figure out how to make the mtgox bitcoin worth load properly. even tho it says an error the software should still be operational, my design behind this project is to have things still work even if something is broken.

I'm actually overhauling the entire software package at the moment, meaning I'm copying and pasting code by code and testing bit by bit. This should get every little error I have in my code. The estimated release date for the updated software I would say Monday it should be fully released and tested. Also the new HTML structure will be more cross browser compatible :D


Title: Re: Beta v4.2.1] Mining Farm [Cloud Server Bitcoind Testing] 700Mhash/s
Post by: Xenland on July 09, 2011, 06:13:14 PM
Okay so I have the testing software that is stable besides the email authorization, Im having troubles with sendmail so I disabled email authorization(don't need anyways). But I pointed my 6990 and I'm getting over 700Mhash/s please donate your mhash/s I will be running this server until we find a block!!! all payouts will be disabled until everything is checked for correct payouts but everyone WILL GET PAYED after the check is done(takes alike a day)


Title: Re: Beta v4.2.1] Mining Farm [Estimated display fix,blog posts added]
Post by: openrune on July 11, 2011, 12:34:20 PM
Hi Xenland I uploaded the new release and it seems at least on my server the stat updates no longer work.  The crons are still running I upgraded the database, and had something like 191,000 workers which was wrong so I dropped all the tables and started fresh.  Still not correctly identifiying the number of active or total workers also the front page speed also seems to not work.  Perhaps its just my server setup that is creating this issue.  Just thought I would post so your aware.

After my update to the latest version i can report the same problems as d3cn808 has, so it has to be the code


Title: Re: Mining Farm [Security Audit Went Well, Download V5]
Post by: Xenland on July 14, 2011, 06:31:23 AM
Dear Mining Farm Pool Operator(s),

Mining Farm has just undergone a rigorous series of tests, mainly security to protect your wallet from attackers that would like to steal at any given moment. We have done a 8 hour full security audit that covered every single page and have found over 2 major security flaws known as MySql Injections these are really easy to fix but sometimes not always apparent to spot.(Remember Mt. Gox? Same thing) We have fixed these flaws and it is recommended that you download the latest version(link provided below).

In case you haven't noticed after downloading the new version we have aimed at complying with W3 standards so our software will work on all browsers(even phones!) that are W3 compliant, this is an extra step to ensure the best possible capabilities for your users, so I hope you enjoy the new design, We have a more refined version of the design comming your way so sit tight!

We hope you enjoy the new software and I double hope that none of the security fixes broke the software as I haven't been able to fully test(I'm starting to see colours I've been up for so long :P).
Mining Farm claims no fees for Red Cross donations they go straight to tradehill every week, I have contacted tradehill
about having a static bitcoin address that would allow us to directly donate and they said they are working on getting this
impletmented.


http://forum.bitcoin.org/index.php?topic=10617.msg152161#msg152161


Good night everyone :)


Title: Re: Mining Farm [Security Audit Went Well, Download V5]
Post by: mich on July 14, 2011, 01:11:30 PM
"Account Details" in menu returns empty page :(

Parse error: syntax error, unexpected '{' in /var/www/accountDetails.php on line 69

For fix this file (accountDetails.php):

Quote
if(!empty($_POST["donate1"]){

replase to
if(!empty($_POST["donate1"])){

Quote
$returnError = gettext("No bitcoins were sent | Contact Pool operator";

replase to
$returnError = gettext("No bitcoins were sent | Contact Pool operator");


Title: Re: Mining Farm [Security Audit Went Well, Download V5]
Post by: ziomik on July 14, 2011, 06:40:02 PM
Thank's mich


Title: Re: Mining Farm [Version 5.0.1] [Fix: Account details is fixed!]
Post by: Xenland on July 14, 2011, 06:55:31 PM
Account details.php page would show up blank and it is now fixed !

I've tested the payouts and disabled donations payouts until further testing is done on manual payouts.


Title: Re: Mining Farm [Version 5.0.1] [Fix: Account details is fixed!]
Post by: d3c0n808 on July 15, 2011, 12:18:34 AM
I uploaded v5, very very nice job xenland looking good, love the new stats and the layout. 


Title: Re: Mining Farm [Version 5.0.1] [Fix: Account details is fixed!]
Post by: phorensic on July 15, 2011, 01:25:49 AM
I don't think there are enough <div> tags in the new layout  :D :D


Title: Re: Mining Farm [Version 5.0.1] [Fix: Account details is fixed!]
Post by: Xenland on July 15, 2011, 01:45:42 AM
Thanks d3con!

Phorensic you crack me up man! :D
Gotta love that bitcoinmonkey :P :D


Title: Re: Mining Farm [Version 5.0.1] [Fix: Account details is fixed!]
Post by: phorensic on July 15, 2011, 03:44:08 AM
If any Bitcoin Monkeys are reading this thread - https://BitcoinMonkey.com (https://BitcoinMonkey.com) has applied the security patches and is good to go.


Title: Re: Mining Farm [Version 5.0.4] [Scheduled: Menu and Blogs Editor]
Post by: phorensic on July 15, 2011, 05:57:05 AM
This post might be of interest - http://forum.bitcoin.org/index.php?topic=26879.0 (http://forum.bitcoin.org/index.php?topic=26879.0) .  Haven't had an account balance big enough to cause an error, yet, but I totally overlooked this one.


Title: Re: Mining Farm [Version 5.0.4] [Scheduled: Menu and Blogs Editor]
Post by: Xenland on July 15, 2011, 03:18:24 PM
This post might be of interest - http://forum.bitcoin.org/index.php?topic=26879.0 (http://forum.bitcoin.org/index.php?topic=26879.0) .  Haven't had an account balance big enough to cause an error, yet, but I totally overlooked this one.

Thanks mate, That is some insight full information.! :D


Title: Re: Mining Farm [Version 5.0.4] [Scheduled: Menu and Blogs Editor]
Post by: FlipPro on July 15, 2011, 03:58:43 PM
I created the Layout ! If you want me to make you a fully custom template, to your specification just send me a PM. I am charging 10 BTC's for each template, this includes all graphics, logos, and template files!


Title: Re: Mining Farm [Version 5.0.4] [Scheduled: Menu and Blogs Editor]
Post by: Xenland on July 15, 2011, 04:33:25 PM
I approve the message Above!

On another note, I have the blogs editor back, Everything has been tested up("updates", "deletes", and "inserts") I'll be adding a pagination feature soon to keep it all nicely in pages.
Menu editor comming today!

Keep it cheezy!


Title: Re: Mining Farm Pool Software [Version 5.0.5] [Scheduled: Menu Editor]
Post by: openrune on July 18, 2011, 02:07:35 AM
Thanks for the new 5.0.5 Update and the Support Xen the new Miningfarm works great!
Actualy we go towards 10 gh/s and everything works fine ;)

We are actualy about to get a new design for the mine!

tenobis
http://mine.tenobis.com


Title: Re: Mining Farm Pool Software [Version 5.0.5] [Scheduled: Menu Editor]
Post by: Xenland on July 18, 2011, 07:41:43 AM
Due to the nature of this forum, I will start to migrate to my official website over at www.MiningFarm.com I will have chatting or messaging board for serious Mining Pool Disscussions over there. This forum is just getting littered with too many people that like to abuse something good which can be used for wonderful things but nobody is see the potential of any of it. For any serious people and non-scammers out their you can feel safe at a heavly moderated forum within a couple of days. I'll post up agian when i have everything fully functioning


Title: Re: Mining Farm Pool Software [Version 5.0.5] [Scheduled: Menu Editor]
Post by: phorensic on July 18, 2011, 08:37:28 AM
Thanks for the donation Xenland!


Title: Re: Mining Farm Pool Software [Version 5.0.5] [Scheduled: Menu Editor]
Post by: Xenland on July 18, 2011, 09:57:31 AM
Its under construction, I'll have a Fun section to talk about w/e so its only semi-serious in the area. anyways.

www.MiningFarm.com/smf


Title: Re: Open-Source Pooling Web Software [Version 5.0.9] [Scheduled: Menu Editor]
Post by: mich on July 18, 2011, 01:45:23 PM
Receiving messages from cron:
-----------
PHP Notice:  Undefined variable: efficientSharesQ in /var/www/pool/req/cronjob/statsUpdater.php on line 68
PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, null given in /var/www/pool/req/cronjob/statsUpdater.php on line 68
PHP Notice:  Undefined variable: ineffiecientSharesQ in /var/www/pool/req/cronjob/statsUpdater.php on line 69
PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, null given in /var/www/pool/req/cronjob/statsUpdater.php on line 69
PHP Warning:  Division by zero in /var/www/pool/req/cronjob/statsUpdater.php on line 71
-----------
and

------------
PHP Notice:  Use of undefined constant ticker - assumed 'ticker' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant last - assumed 'last' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant ticker - assumed 'ticker' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant sell - assumed 'sell' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant ticker - assumed 'ticker' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant buy - assumed 'buy' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
-----------

and

-----------
12PHP Notice:  Undefined property: stdClass::$serverFeeLocalAddress in /var/www/pool/req/cronjob/blockFound.php on line 92
345
----------


Title: Re: Open-Source Pooling Web Software [Version 5.0.9] [Scheduled: Menu Editor]
Post by: Xenland on July 18, 2011, 05:46:41 PM
Receiving messages from cron:
-----------
PHP Notice:  Undefined variable: efficientSharesQ in /var/www/pool/req/cronjob/statsUpdater.php on line 68
PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, null given in /var/www/pool/req/cronjob/statsUpdater.php on line 68
PHP Notice:  Undefined variable: ineffiecientSharesQ in /var/www/pool/req/cronjob/statsUpdater.php on line 69
PHP Warning:  mysql_num_rows() expects parameter 1 to be resource, null given in /var/www/pool/req/cronjob/statsUpdater.php on line 69
PHP Warning:  Division by zero in /var/www/pool/req/cronjob/statsUpdater.php on line 71
-----------
and

------------
PHP Notice:  Use of undefined constant ticker - assumed 'ticker' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant last - assumed 'last' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant ticker - assumed 'ticker' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant sell - assumed 'sell' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant ticker - assumed 'ticker' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
PHP Notice:  Use of undefined constant buy - assumed 'buy' in /var/www/pool/req/cronjob/blockUpdater.php on line 84
-----------

and

-----------
12PHP Notice:  Undefined property: stdClass::$serverFeeLocalAddress in /var/www/pool/req/cronjob/blockFound.php on line 92
345
----------

Oh dear, Looks like I forgot to update the miningfarm_database.sql file.

Thank you for this bug report, Check back at GitHub for the latest files in an hour


Title: Re: Open-Source Pooling Web Software [Version 5.0.9] [Scheduled: Menu Editor]
Post by: Xenland on July 18, 2011, 06:16:01 PM
Okay miningfarm_database.sql uploaded! You should do a fresh install of MiningFarm to ensure that everything went smoothly. If you are updating back up your data on a .sql file, then delete everything in the database upload the miningfarm_database.sql, then upload the backup .sql file and it will insert your data like nothing ever changed


Title: Re: [!!Bounty Awarded!!] Open-Source Pooling Web Software [Version 5.1.1]
Post by: pero991 on July 20, 2011, 10:57:08 AM
Hy my pool just entered beta, please help me solve the first block
http://46.4.148.165/


Title: Re: [!!Bounty Awarded!!] Open-Source Pooling Web Software [Version 5.1.3]
Post by: Xenland on July 21, 2011, 01:28:07 AM
Cool I'll add you to the list!
Let me know if you have any problems or If you would like you can go over to the GitHub page(https://github.com/Xenland/MiningFarm/issues?sort=created&direction=desc&state=open) and Add an Issue your self, and remember be descriptive and detailed if you do. Also the Issues section is like the Suggestion box :)


Title: Re: [First License Sold!] Open-Source Pooling Web Software [Version 5.1.4]
Post by: Xenland on July 21, 2011, 10:11:44 PM
Yep just sold me first license to http://mine.tenobis.com for a single use license with free-upgrades for life!
So what does the license do exactly? Well normally I have advertisements that pay's for development server costs, and programming Labor costs. Now this license gives exclusive lifetime guarantee for no advertisements for LIFE and I can do this because I'm getting paid for what the advertisements would normally pay for programming and server costs.

If you would like to have a private license, please don't be afraid to PM me.

Also the new stats are up on the GitHub download.
You can find a preview here
http://miningfarm.com/stats.php


Title: Re: [First License Sold!] Open-Source Pooling Web Software [Version 5.1.4]
Post by: phorensic on July 29, 2011, 08:37:27 PM
Usually that means it timed out when trying to connect to their API.  It throws that every once in a while on our setup.


Title: Re: [First License Sold!] Open-Source Pooling Web Software [Version 5.1.4]
Post by: Xenland on July 31, 2011, 12:01:42 PM
Mysql optimizations comming soon I have cut the 5 minute php execution to just 30 seconds to a minute at most. I still have 2 other files to optimized brb :)


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software
Post by: Xenland on August 03, 2011, 05:35:28 PM
Note to the community: I must settle down a little bit with MiningFarm and point my attention towards another project I've been meaning to finish and have been working off and on with over the past couple of months. I'm going to be fixes errors only for the next course of the next 2 months or so with mining farm until my project is finished as in order for me to continue working on mining farm I can't be broke and must go where the money is to keep the server up and running. So please only report errors and not suggestions for the course of the next month or two. You'll know when my next project is released it will be pretty enlightening to the community. That is my hopes and dreams any ways.

I came into Bitcoin thinking that there would be businesses popping up every where as it got popular, looks like I joined way too early to watch that magically happen, and must be the one of the few that will attempt to sprout the Bitcoin vision. I hope others will join me in backing the Bitcoin economy with products and services that have actual value.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software
Post by: brandon@sourcewerks on August 04, 2011, 12:41:28 AM
I'm with you Xenland.  Adding value to the community is paramount.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software
Post by: Xenland on August 05, 2011, 01:44:12 AM
I'm with you Xenland.  Adding value to the community is paramount.

:) Honestly if we had more then 5 suppliers that only used Bitcoins as payment(including wages, taxes, etc) the Bitcoin worth would skyrocket! I hope to start the trend of secure, fast, friendly eCommerce store and set the bar for online Bitcoin business model. I think since we are technically early adopters still(in the sense that their is still real business's and niches to be made and filled) its our job as a community to shun out the the useless projects and turn our eyes towards the future that we want Bitcoins to improve our life. Not to say fiat won't be helpful, but there will always be same Bitcoin community no matter how diluted it gets with new comers we just need to set the bar and build a base of what we all think the direction of bitcoin should go.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software
Post by: phorensic on August 05, 2011, 08:36:02 AM
uhoh, you let out hints of your next project!  will be watching closely, of course.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software
Post by: sareea on August 08, 2011, 10:44:00 AM
Hello all !
I have a 300M/hash worker and it is not being recognized as online ...
The shares are ok .

And when i try to reset my password , when i click the verification link it says
"Unknown column 'emailToken' in 'where clause' " .
Can some one help me please ?
It is urgent !
Thanks !


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: slimofftb on January 12, 2013, 01:35:01 AM
I have been working to get MiningFarm to work and i have only a few issues....
 
 I get these errors

Notice: Undefined index: miningfarm in /opt/lampp/htdocs/MiningFarm/index.php on line 18

Notice: Undefined variable: threshhold in /opt/lampp/htdocs/MiningFarm/req/functions.php on line 301

Fatal error: Uncaught BitcoinClientException:
  • : Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) thrown in on line 0

I have everything setup correct in terms of pushpool and Bitcoind i just need to resolve these issues.

also do i point mining farm to the same Database as pushpool?

im running on Ubuntu 12.04 in vmware.

any suggestions?


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: Xenland on January 12, 2013, 03:02:56 AM
Undefined issues are becuase of error reporting. Completly turn off error reporting for production systems. As a side note this error isnt acutally an error its just a warning that can be ignored. As for the third issue perhaps thr bitcoin-php library isnt properly being utilized in conjunction with bitcoin and mining farm. If that is the case youll have to wait till i post the new mining farm that will utilized my BDK libray.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: Xenland on January 14, 2013, 01:55:18 AM
How did that work for ya slimofftb?


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software
Post by: brie on March 30, 2013, 10:35:51 AM
Hello all !
I have a 300M/hash worker and it is not being recognized as online ...
The shares are ok .

I'm having this issue as well, I have a miner hashing on my pool at 400Mh/s yet the site reports 0 workers.
On the statistics page it says "Shares this round: 0" even though the site is counting shares from my workers, also the stats graph shows 0 Mh/s.

Does anyone know what could be wrong?


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: Xenland on April 18, 2013, 04:57:37 AM
It seems I forgot about a huge donation that one generously made and got side tracked into doing paid projects to pay off all my usd debts... well I'm square as far as the debts go and it looks like I should go about giving back to what has been given, I've already talked to that said entity and I plan to begin writing code officially in June, There is also talks of getting a hosting service involved that will provide one click installations specifically for this project but details are getting sorted out. Wish us luck and leave all "detailed" and "practical" requests below. I won't respond to most any thing until june so don't ask big questions just write big lists of what you need and want, diagrams are perferred, flowcharts will help get your point across, use descriptive and precise words and you'll get your features Cheers!


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: plasticuser on December 03, 2013, 11:33:58 PM
Made any progress? Your website isn't working...


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: Xenland on December 04, 2013, 11:29:44 PM
I've been working on building an encrypted messenger app which is just skype clone (decentralized) for people who like their privacy and of course I have my day job which I have to keep, I can't say I can work on this any more and haven't even started on the plans I had for this project which I'm up set about considering I had put in alto of thought into it, due to the changing unforeseen circumstances I can't work on this at this time.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: kr105 on December 06, 2013, 09:04:46 AM
Is your encrypted messenger app private?


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: Xenland on December 06, 2013, 12:41:31 PM
Is your encrypted messenger app private?

Thanks for asking, here is the link to the current public test version https://github.com/Xenland/DahliaCommunications
It has ONLY encrypt/decrypt capabilities with RSA, so messages can only be around 500-600 characters (with 4096 bit encryption), RSA is built for key exchange. Anyways the the idea is test this version for now and build it up to the fully fledged messenger.

Notes: I've built a fully fledged messenger with networking, and database storage capabilities along with a server that accepts JSON commands with working RSA and AES encryption, how ever the public test versions will help me isolate issues I'm having with the full version (full version is private right now, with plans to be released open source when ready).

I need someone to deploy dahlia public prototypes and finals for windows but I have Linux covered.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: kr105 on December 06, 2013, 04:23:44 PM
Seems interesting, I may help to build you the windows version, I will take a look on your source code later today.


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: RocketSingh on October 10, 2014, 07:17:22 PM
This Open-Source Pooling Web Software is a great project. Would like to know the current status of it. Is the Github repo in working condition ?


Title: Re: v5.6.0 ][ Open-Source Pooling Web Software ( MiningFarm )
Post by: mistercoin on October 11, 2014, 03:04:16 PM
This Open-Source Pooling Web Software is a great project. Would like to know the current status of it. Is the Github repo in working condition ?

Was it completely necessary to necro this thread? You could have looked at the last commit on the repo...