Bitcoin Forum
May 05, 2024, 02:56:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 »  All
  Print  
Author Topic: [Pushpool Web Frontend] Simplecoin v5.0 Opensource PHP/MySQL - NEW RELEASE  (Read 57147 times)
Lolcust
Member
**
Offline Offline

Activity: 112
Merit: 11

Hillariously voracious


View Profile
August 18, 2011, 03:19:20 PM
 #181

Hey, just a quick question - are there "noob-friendly" instructions on how to set this baby up, and what are the approximate sys.reqirements (how big a VPS would I need to play around with this baby) ?

No, there are currently no noob-friendly instructions. In fact, I don't recommend anyone trying to setup a public pool without significant development and network knowledge.

For a small pool a 1gb-2core vps might suffice.

I run my install on 4 servers. 1x8core sql, 1x8core pool, 2x2core web & replication

Well, you see, I am contemplating  the creation of a somewhat audacious bitcoin fork, and the way it seems to be coming out, it would be best if it had a pool at "day zero". Thing is, I'm not very rich (otherwise I would have hired a decent coder instead of trying to recall the long foregone days when I tried to learn the mysterious art of making computers do my bidding Wink )

I might convince a close friend to start up a virtualbox vm with 1+ gb RAM on her box in the beginning, but she will likely eventually kill it so she can play Crysis and that other popular shooty thing with more comfort.
Thus, I am looking into possibility of renting a relatively frugal VM for the purpose of my experiment.

Geist Geld, the experimental cryptocurrency, is ready for yet another SolidCoin collapse Wink

Feed the Lolcust!
NMC: N6YQFkH9Gn9CTm4mpGwuLB5zLzqWTWFw67
BTC: 15F8xbgRBA1XZ4hmtdFDUasroa2A5rYg8M
GEG: gK5Lx6ypWgr69Gw9yGzE6dsA7kcuCRZRK
1714920985
Hero Member
*
Offline Offline

Posts: 1714920985

View Profile Personal Message (Offline)

Ignore
1714920985
Reply with quote  #2

1714920985
Report to moderator
1714920985
Hero Member
*
Offline Offline

Posts: 1714920985

View Profile Personal Message (Offline)

Ignore
1714920985
Reply with quote  #2

1714920985
Report to moderator
1714920985
Hero Member
*
Offline Offline

Posts: 1714920985

View Profile Personal Message (Offline)

Ignore
1714920985
Reply with quote  #2

1714920985
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714920985
Hero Member
*
Offline Offline

Posts: 1714920985

View Profile Personal Message (Offline)

Ignore
1714920985
Reply with quote  #2

1714920985
Report to moderator
1714920985
Hero Member
*
Offline Offline

Posts: 1714920985

View Profile Personal Message (Offline)

Ignore
1714920985
Reply with quote  #2

1714920985
Report to moderator
1714920985
Hero Member
*
Offline Offline

Posts: 1714920985

View Profile Personal Message (Offline)

Ignore
1714920985
Reply with quote  #2

1714920985
Report to moderator
Paul4games
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
August 19, 2011, 09:50:37 AM
 #182

Simplecoin i have some questions:
1.Am i allowed to mine from different ips(i mean if i'm running 4 rigs i don't want them to get banned because of different ips or so)?
2.If i'm not allowedt o mine form more ips, tell me what's the limit(i mean like 2 ips per worker or 1 ip per worker)?
simplecoin (OP)
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile WWW
August 19, 2011, 05:00:52 PM
 #183

Simplecoin i have some questions:
1.Am i allowed to mine from different ips(i mean if i'm running 4 rigs i don't want them to get banned because of different ips or so)?
2.If i'm not allowedt o mine form more ips, tell me what's the limit(i mean like 2 ips per worker or 1 ip per worker)?


That is based on the pool software you use. My frontend is only for the web. The only IP restriction is one ip logged into the web server at a time, none of this will cause a ban.

Donations: 1VjGJHPtLodwCFBDWsHJMdEhqRcRKdBQk
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
August 20, 2011, 09:15:46 AM
 #184

Hello,
I am getting these warnings

Code:
] PHP Warning:  Invalid argument supplied for foreach()
in /var/www/includes/stats.php on line 89

and
Code:
] PHP Warning:  Invalid argument supplied for foreach()
in /var/www/stats.php on line 75

[Sat Aug 13 11:47:01 2011] [error] [client 84.228.254.88
] PHP Fatal error:  Call to a member function fetch() on
 a non-object in /var/www/includes/stats.php on line 42,

Some one told me that

Quote
Probably this query is not returning a value, so it gives an error.
Code:
$sql = "SELECT count(id) FROM shares WHERE id > $lastwinningshare AND our_result='N'";
Most likely it will go away as soon as it returns something.
( from this article :
https://bitcointalk.org/index.php?topic=36672.0
)

Please help ! It is urgent
thanks !
simplecoin (OP)
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile WWW
August 25, 2011, 05:46:24 AM
 #185

Sorry for the delays. I'm trying to lock-down some things for 4.1.

Also, forum link has changed.

Donations: 1VjGJHPtLodwCFBDWsHJMdEhqRcRKdBQk
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
August 26, 2011, 06:21:52 AM
 #186

Any updates Smiley ?

And can you please provide me a solution for the php fatal error for the that member function ?
I have been stuck for 2 weeks on my pool just because of this .i really thank you for the help
AnnihilaT
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
August 26, 2011, 12:41:35 PM
 #187

Sareea,

I really suggest that you dont even bother trying to start a pool simply because if a problem like this gets you stuck for more than two weeks you dont have the technical ability to run a pool.  There will be much larger day to day problems than this one that arise while running a pool.  Its not install and forget software.  You need to be able to program and understand the code because there will be problems and you will need to fix them yourself.  I dont mean to be mean but you are clearly not qualified to run a pool.  Im just being honest and trying to save you alot more pain down the road.
Keninishna
Hero Member
*****
Offline Offline

Activity: 556
Merit: 500



View Profile
August 27, 2011, 08:57:41 AM
Last edit: August 27, 2011, 09:46:51 AM by Keninishna
 #188

ok I almost have your pool up I have one sql issue thats causing the site to fail. I get
Code:
PHP Fatal error:  Call to a member function fetch() on a non-object in /var/www/simplecoin/includes/stats.php on line 276

So I google some and take a look at line 276, I see its under function usersharecount()
Code:
if ($currentSharesR = $currentSharesQ->fetch()) {

Apparently when the fetch fails it returns a false, and its expecting an object so the error causes more errors  Grin
I think my understanding fails at the SQL code above it here:

Code:
$sql = "SELECT count(id) as id FROM shares WHERE id > $lastwinningshare AND username in ('".implode("','",$workers)."')";

I have the database set up properly, it has all the tables, pushpoold is working away I can create a worker (if I comment out the above code) and login and submit shares. Thanks for any help.

edit:
nevermind I found out it was because there was no $lastwinningshare I manually set it to 1 now everything is good (untill i find a block lol)
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
August 27, 2011, 07:11:11 PM
Last edit: August 28, 2011, 07:09:00 AM by sareea
 #189

ok I almost have your pool up I have one sql issue thats causing the site to fail. I get
Code:
PHP Fatal error:  Call to a member function fetch() on a non-object in /var/www/simplecoin/includes/stats.php on line 276

So I google some and take a look at line 276, I see its under function usersharecount()
Code:
if ($currentSharesR = $currentSharesQ->fetch()) {

Apparently when the fetch fails it returns a false, and its expecting an object so the error causes more errors  Grin
I think my understanding fails at the SQL code above it here:

Code:
$sql = "SELECT count(id) as id FROM shares WHERE id > $lastwinningshare AND username in ('".implode("','",$workers)."')";

I have the database set up properly, it has all the tables, pushpoold is working away I can create a worker (if I comment out the above code) and login and submit shares. Thanks for any help.

edit:
nevermind I found out it was because there was no $lastwinningshare I manually set it to 1 now everything is good (untill i find a block lol)

Can you please explain to me how you exactly fixed it ? I am still  a newbie learning the business Smiley

Edit : Solved it Cheesy
simplecoin (OP)
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile WWW
August 30, 2011, 03:54:24 AM
 #190

Version 5 is released  Cool

A lot of bug fixes, especially for new pools!
Even more optimization to sql (especially for multi-million share rounds )
Main cronjob can run every minute with very little impact.
Winning shares are much more easily handled.
Also unconfirmed shares are perfectly accurate.

Tested with lastnpps scoring, will be testing prop soon.

Now to get multi-pool/coin support into the base.

Donations: 1VjGJHPtLodwCFBDWsHJMdEhqRcRKdBQk
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
August 31, 2011, 12:16:14 PM
 #191

Thanks for the effort.
How can i upgrade from v4 to v5?
simplecoin (OP)
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile WWW
August 31, 2011, 04:37:21 PM
 #192

You'll need to add the new table (unrewarded_shares) and look for other sql changes.

Donations: 1VjGJHPtLodwCFBDWsHJMdEhqRcRKdBQk
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
September 01, 2011, 10:24:40 AM
 #193

i tested it , it doesn't have the problems v4 had !
Thanks a lot !

I faced few things though :
- Resetting the password with lostpassword didn't work for me, i edited it to be http:// and not https:// as it is in lostpassword.php.
It even ruins the password, even the old password stops working. What should i do ?
I think it is because lostpassword.php uses sha256 encryption and the login.php uses the $salt thing ?

- in accountdetails.php , you added the field ( current password ) to change the password, but even though you put the password it says " you must put your current password" , it doesn't  recognize it .

Thanks a lot simplecoin ! you are awesome ! Smiley
mich
Legendary
*
Offline Offline

Activity: 3136
Merit: 1032


#1 VIP Crypto Casino


View Profile
September 01, 2011, 12:01:26 PM
 #194

- Resetting the password with lostpassword didn't work for me, i edited it to be http:// and not https:// as it is in lostpassword.php.
It even ruins the password, even the old password stops working. What should i do ?
I think it is because lostpassword.php uses sha256 encryption and the login.php uses the $salt thing ?

lostpassword.php, line 53 must be like:
$result = mysql_query("UPDATE webUsers SET pass='".hash("sha256", $pass.$salt)."', accountFailedAttempts = 0 WHERE  username='$resetUsername' AND emailAuthPin='$resetAuth' ");

.
.BITCASINO.. 
.
#1 VIP CRYPTO CASINO

▄██████████████▄
█▄████████████▄▀▄▄▄
█████████████████▄▄▄
█████▄▄▄▄▄▄██████████████▄
███████████████████████████████
████▀█████████████▄▄██████████
██████▀██████████████████████
████████████████▀██████▌████
███████████████▀▀▄█▄▀▀█████▀
███████████████████▀▀█████▀
 ▀▀▀▀▀▀▀██████████████
          ▀▀▀████████
                ▀▀▀███

.
......PLAY......
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
September 01, 2011, 01:14:56 PM
 #195

- Resetting the password with lostpassword didn't work for me, i edited it to be http:// and not https:// as it is in lostpassword.php.
It even ruins the password, even the old password stops working. What should i do ?
I think it is because lostpassword.php uses sha256 encryption and the login.php uses the $salt thing ?

lostpassword.php, line 53 must be like:
$result = mysql_query("UPDATE webUsers SET pass='".hash("sha256", $pass.$salt)."', accountFailedAttempts = 0 WHERE  username='$resetUsername' AND emailAuthPin='$resetAuth' ");
Yeah it works now Smiley thanks .

The only problem left is in changing the password , any idea ? It doesn't recognize that i inserted my current password ...
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
September 02, 2011, 07:24:39 AM
 #196

I tried to do this to fix the changing password problem .

I changed this line
$oldPass = hash("sha256", mysql_real_escape_string($_POST["currentPassword"]));
to
$oldPass = hash("sha256", $oldPass.$salt, mysql_real_escape_string($_POST["currentPassword"]));

But it didn't work.

The update process starts with
if($oldPass == $hashedPass){

I tried to define $hashedPass and fetch the password from the DB to  it .
Still didn't work .

And says
"You must type in the correct current password before you can set a new password. "

Please help
mich
Legendary
*
Offline Offline

Activity: 3136
Merit: 1032


#1 VIP Crypto Casino


View Profile
September 02, 2011, 08:55:05 AM
 #197

I tried to do this to fix the changing password problem .

I changed this line
$oldPass = hash("sha256", mysql_real_escape_string($_POST["currentPassword"]));
to
$oldPass = hash("sha256", $oldPass.$salt, mysql_real_escape_string($_POST["currentPassword"]));

But it didn't work.

The update process starts with
if($oldPass == $hashedPass){

I tried to define $hashedPass and fetch the password from the DB to  it .
Still didn't work .

And says
"You must type in the correct current password before you can set a new password. "

Please help

$oldPass = hash("sha256", mysql_real_escape_string($_POST["currentPassword"]).$salt);

.
.BITCASINO.. 
.
#1 VIP CRYPTO CASINO

▄██████████████▄
█▄████████████▄▀▄▄▄
█████████████████▄▄▄
█████▄▄▄▄▄▄██████████████▄
███████████████████████████████
████▀█████████████▄▄██████████
██████▀██████████████████████
████████████████▀██████▌████
███████████████▀▀▄█▄▀▀█████▀
███████████████████▀▀█████▀
 ▀▀▀▀▀▀▀██████████████
          ▀▀▀████████
                ▀▀▀███

.
......PLAY......
sareea
Member
**
Offline Offline

Activity: 78
Merit: 10


View Profile
September 02, 2011, 09:25:36 AM
 #198

I tried to do this to fix the changing password problem .

I changed this line
$oldPass = hash("sha256", mysql_real_escape_string($_POST["currentPassword"]));
to
$oldPass = hash("sha256", $oldPass.$salt, mysql_real_escape_string($_POST["currentPassword"]));

But it didn't work.

The update process starts with
if($oldPass == $hashedPass){

I tried to define $hashedPass and fetch the password from the DB to  it .
Still didn't work .

And says
"You must type in the correct current password before you can set a new password. "

Please help

$oldPass = hash("sha256", mysql_real_escape_string($_POST["currentPassword"]).$salt);


It works now !! Smiley Thanks a lot man Smiley
mich
Legendary
*
Offline Offline

Activity: 3136
Merit: 1032


#1 VIP Crypto Casino


View Profile
September 03, 2011, 08:56:14 AM
 #199

Any body know, why MtGox rate don't shows correct about 5 last days? They changed a code?

.
.BITCASINO.. 
.
#1 VIP CRYPTO CASINO

▄██████████████▄
█▄████████████▄▀▄▄▄
█████████████████▄▄▄
█████▄▄▄▄▄▄██████████████▄
███████████████████████████████
████▀█████████████▄▄██████████
██████▀██████████████████████
████████████████▀██████▌████
███████████████▀▀▄█▄▀▀█████▀
███████████████████▀▀█████▀
 ▀▀▀▀▀▀▀██████████████
          ▀▀▀████████
                ▀▀▀███

.
......PLAY......
Danilo
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
September 04, 2011, 11:08:59 AM
 #200

Hello everyone,

I set all the parameters of my previous scripts and everything works fine, but I want to move to this one because I prefer this script, but I get the following error:

Fatal error: Uncaught BitcoinClientException:
  • : Connect error: Connection refused (111) thrown in on line 0

bitcoind working on port 8332
Workers have a communication with a pushpoold on 8341 and 8344 port.

I entered all that is needed in requiredFunctions.php, and tried different ports but still get that error.

What could be the problem?

Thank you in advance for your reply,
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 »  All
  Print  
 
Jump to:  

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