Pages:
Author

Topic: [Pushpool Web Frontend] Simplecoin v5.0 Opensource PHP/MySQL - NEW RELEASE - page 4. (Read 57208 times)

member
Activity: 78
Merit: 10
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
sr. member
Activity: 406
Merit: 250
Sorry for the delays. I'm trying to lock-down some things for 4.1.

Also, forum link has changed.
member
Activity: 78
Merit: 10
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://bitcointalksearch.org/topic/php-white-screen-36672
)

Please help ! It is urgent
thanks !
sr. member
Activity: 406
Merit: 250
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.
newbie
Activity: 46
Merit: 0
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)?
member
Activity: 112
Merit: 11
Hillariously voracious
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.
sr. member
Activity: 406
Merit: 250
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
member
Activity: 112
Merit: 11
Hillariously voracious
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) ?
member
Activity: 68
Merit: 10
Great job, for simplecoin.

One thing that is important to know is that security by obscurity is a very bad thing, most of the times there are problems with the design and even when the design of the algorithm is good, there are security holes that go undetected until the cracker finds out.

-DiamondPlus

Open source security algorithms are the best, for example take a look at the security of the bitcoin network, it is very solid, and in the rare event that a security was found most likely it would be in the implementation and it would be fixed within hours.

There are a lot of commercial security closed source programs that use the vigenere cipher, of course that is a secret, the vigenere cipher is very easy to implement and it provides security against the average person, but by design it is insecure, it is used a lot due to its simplicity,  in closed source it is very hard to tell it uses the vigenere chipher, until someone does some reverse engineering, and after that the security completely colapses, any good cracker will crack the algorithm no very easy but doable. There are other algorithm that are also very simple and easy to implement used in closed source programs like rot13, or substitution cipher both very insecure and worse than vigenere.

Then there the famous one time pad very secure only algorithm proven to be unbreakable but also not very practical.

-DiamondPlus

The there are the good ones, but more complex idea, rsa, blowfish, etc, these can only be broken by brute force attacks, extremely difficult specially is the keys are large.

I used to be a cryptographer in the mid 90, so I am not up to date with the latest algorithms, but one thing I learned is that most close source packages are very insecure, and there are packages that break the security of those closed source programs, there was a programmer I do not remember his name that wrote software to unlock the locks, he was arrested in las vegas by the fbi after he gave a conference in defcon, he would talk a lot about insecure close source software with mathematical proofs, he sold unlock software for most closed source commerical packages.

-DiamondPlus

The lesson to be learned is that for the most security it is best to rely on a good algorithm, and not by security by obscurity, therefore most secure algorithms are usually open source. In theory if a person is a brilliant genius a close source security software could be secure, but for most of us, and most real world cases, open source is the way to go for security.

In many companies managers believe on closed source, the only reason for that is ignorance, they are usually not cryptographers, and know very little about programming, when working for a company like that vigenere cipher is great makes the manager happy and you are done quickly with the job, but for a job well done it is all in the algorithm and its implementation  and it takes more work when you have security in mind.

-DiamondPlus
sr. member
Activity: 406
Merit: 250
speed is a file or a directory ?
Thanks
Can you take a look please?
http://78.47.162.164/

And should i uncomment this line ?
//echo $e->getMessage();

Speed is a file, generated by stats, you can stop it's creation in incudes/stats.php if you wish.
member
Activity: 78
Merit: 10
speed is a file or a directory ?
Thanks
Can you take a look please?
http://78.47.162.164/

And should i uncomment this line ?
//echo $e->getMessage();
sr. member
Activity: 406
Merit: 250
it's a hashrate file used by stats sites.

make the missing directory.  Wink
member
Activity: 78
Merit: 10
I checked in this file
https://github.com/simplecoin/simplecoin/blob/master/includes/stats.php

and i think the source of this is here : ( it is true that this file doesn't exist :S )
Code:
setCache("pool_hashrate", $currenthashrate, 300);
try {
$fileName = "/var/www/api/pool/speed";
$fileHandle = fopen($fileName, 'w') or die("can't open file");
fwrite($fileHandle, ($currenthashrate/1000));
fclose($fileHandle);
} catch (Exception $e) {
//echo $e->getMessage();
}

Sorry for the double post
member
Activity: 78
Merit: 10
The other files of the script are not running, all i see is a white screen , all i see is the header and thats it . nothing else .

I am checking what is not installed , i am having everything being running fine .

Please help !
Code:
[Fri Aug 12 16:11:18 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62

[Fri Aug 12 16:11:19 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/register.php

[Fri Aug 12 16:11:21 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/stats.php

PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/gettingstarted.php

[error] [client 58.218.199.22
7] script '/var/www/proxyheader.php' not found or unable
 to stat

[Fri Aug 12 16:10:52 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/register.php

[Fri Aug 12 16:11:13 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/register.php

[Fri Aug 12 16:11:16 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/register.

] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/about.php

[Fri Aug 12 16:10:49 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/about.php

[Fri Aug 12 16:10:51 2011] [error] [client 109.66.112.62
] PHP Warning:  fopen(/var/www/api/pool/speed): failed t
o open stream: No such file or directory in /var/www/inc
ludes/stats.php on line 62, referer: http://78.47.162.16
4/stats.php

What are these ?
sr. member
Activity: 406
Merit: 250
Version 4 is now in the master and experimental branches!

There is no clear upgrade path from 2.0-4.0, It would be faster to migrate the shares/user data over manually than to rely on a script that may take hours to run.

Additionally version 4 is not without a few bugs, but overall it is more stable and usable than version 2 or 3.

There is a known issue with the stats, share count doesn't seem to be going up. This doesn't affect payout, just a quirk with the stats page.
member
Activity: 78
Merit: 10
Any updates Simplecoin ? i am very curious about this Smiley
Thanks !
legendary
Activity: 3122
Merit: 1032
#1 VIP Crypto Casino
Just testing new 3rd version, and got this mistakes:

Warning: array_key_exists() expects parameter 2 to be array, boolean given in /var/www/includes/stats.php on line 150

Warning: Division by zero in /var/www/includes/header.php on line 99

PS: It was until pool accept shares from worker.
PPS: When no one worker conected the same mistakes ((((
member
Activity: 78
Merit: 10
Hello,
When will you release the new updated version ? And will it have sql injection security ?
I really wanna use simplecoin , and if i install the current one is it upgradable to 4 ? I am looking up to open my pool today or tomorrow .
Please answer me Smiley Thanks !

Currently there will not be an easy upgrade path from 2-4. The database changes are drastic.
Version 2 should have sql injection security as should the expirimental branch in the repository.
So what do you suggest ?
I wanna work with simplecoin !! Smiley

I'm ironing out the last bits now. I'll have v4 in the repository soon enough.
OOOO ok i will wait man Smiley
sr. member
Activity: 406
Merit: 250
Hello,
When will you release the new updated version ? And will it have sql injection security ?
I really wanna use simplecoin , and if i install the current one is it upgradable to 4 ? I am looking up to open my pool today or tomorrow .
Please answer me Smiley Thanks !

Currently there will not be an easy upgrade path from 2-4. The database changes are drastic.
Version 2 should have sql injection security as should the expirimental branch in the repository.
So what do you suggest ?
I wanna work with simplecoin !! Smiley

I'm ironing out the last bits now. I'll have v4 in the repository soon enough.
member
Activity: 78
Merit: 10
Hello,
When will you release the new updated version ? And will it have sql injection security ?
I really wanna use simplecoin , and if i install the current one is it upgradable to 4 ? I am looking up to open my pool today or tomorrow .
Please answer me Smiley Thanks !

Currently there will not be an easy upgrade path from 2-4. The database changes are drastic.
Version 2 should have sql injection security as should the expirimental branch in the repository.
So what do you suggest ?
I wanna work with simplecoin !! Smiley
Pages:
Jump to: