Pages:
Author

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

sr. member
Activity: 406
Merit: 250
yes - debian lenny apache2 php5.3,

I tested the cronjob.php from ivasilov's github if there is a btc comunication problem (200 OK ) and that one works with out any error but ofcourse i dnt get a result...




Sorry I haven't had the chance to chat, it's been a busy day.

What version of simplecoin are you using? 1,2,experimental? I'm looking at the experimental code personally.
member
Activity: 62
Merit: 10
yes - debian lenny apache2 php5.3,

I tested the cronjob.php from ivasilov's github if there is a btc comunication problem (200 OK ) and that one works with out any error but ofcourse i dnt get a result...


sr. member
Activity: 406
Merit: 250
I deleted the additional parameters but that didnt solve the problem, i usualy had this error with the miningfarm from xenland, but in that case was a wrong rpc value the problem.

I cheched requiredFunctions.php if the values are correct what they indeed are. So there is probably just a small bug what doesnt allows the cronjob.php to communicate with bitcoind.

The right include path is set aswell in the cronjobs.

It sounds like a possible server issue. Are you running this on a typical linux/apache/mysql setup?
member
Activity: 62
Merit: 10
I deleted the additional parameters but that didnt solve the problem, i usualy had this error with the miningfarm from xenland, but in that case was a wrong rpc value the problem.

I cheched requiredFunctions.php if the values are correct what they indeed are. So there is probably just a small bug what doesnt allows the cronjob.php to communicate with bitcoind.

The right include path is set aswell in the cronjobs.
sr. member
Activity: 406
Merit: 250
hmm, it should be getting 200 transactions from the server. you can take the other parameters out and just leave in the listtransactions call. The only downfall to this is if you get too many transactions it knocks it off the list.
member
Activity: 62
Merit: 10
Quote
There is an other bug in the Admin Page, its not possible to change any value since the pin nbr dnt gets accepted, but it works fine on the account details site

This issue should be fixed in the experimental branch.

This solved it perfectly thank you!

But i discovered an other problem when i run cronjob.php:
Code:
Fatal error: Uncaught BitcoinClientException: [0]: Didn't receive 200 OK from remote server. (HTTP/1.1 404 Not Found) thrown in on line 0

guess thats why the mine keeps counting on the same block!

I use pushpool 5 and bitcoin 0.3.23
The rpc values works with the requiredFunctions.php i can see on the stats page difficulty and blockcount etc.. just the cronjob.php gives me the 200 error
sr. member
Activity: 406
Merit: 250
Ok, btc account locking is now in the experimental repo. You will need to add an enum field to webUsers: btc_lock (0,1) and the locks table (fields - varchar: name, tinyint locked) if you wish to use it.


To answer the issues:

Statistics on the site are empty.

Without the cronjobs running, there will be no stats. Do you have pushpool/bitcoind up and running?

when i cronjob any of the cronjob php files manualy trough command line i get this error:

Code:
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS

Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0

Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
I'm not familiar with ionCube PHP. I recommend running the cronjobs using wget through your apache interface.

Quote
There is an other bug in the Admin Page, its not possible to change any value since the pin nbr dnt gets accepted, but it works fine on the account details site

This issue should be fixed in the experimental branch.

Quote
We have allso a bug since the first block was found on the stats.php:

Code:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in .../httpdocs/stats.php on line 298
where the blocks per week box was.

on news.php:
Code:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in .../httpdocs/news.php on line 25
on users.php
Code:
Warning: include() [function.include]: Filename cannot be empty in .../httpdocs/users.php on line 82

Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:') in .../httpdocs/users.php on line 82

Since the block was found it isnt possible to see the personal stats page anymore, and the left sidebar keeps counting on the same block even when the block is allready shown as found


I'll look into this.
member
Activity: 62
Merit: 10
hey everyone

when i cronjob any of the cronjob php files manualy trough command line i get this error:

Code:
Cannot load the ionCube PHP Loader - it was built with configuration 2.2.0, whereas running engine is API220090626,NTS

Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0

Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

There is an other bug in the Admin Page, its not possible to change any value since the pin nbr dnt gets accepted, but it works fine on the account details site
We have allso a bug since the first block was found on the stats.php:

Code:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in .../httpdocs/stats.php on line 298
where the blocks per week box was.

on news.php:
Code:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in .../httpdocs/news.php on line 25
on users.php
Code:
Warning: include() [function.include]: Filename cannot be empty in .../httpdocs/users.php on line 82

Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:') in .../httpdocs/users.php on line 82

Since the block was found it isnt possible to see the personal stats page anymore, and the left sidebar keeps counting on the same block even when the block is allready shown as found




legendary
Activity: 1960
Merit: 1012
SELL bitcoinmarket.net | bitcoinitalia.com SELL
Hi,
my server error in /var/log/apache2/error.log
Statistics on the site are empty.
Thank's for help.

Code:
[Sat Jul 09 14:27:48 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/accountdetails.php
[Sat Jul 09 14:29:33 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/accountdetails.php
[Sat Jul 09 14:29:46 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/accountdetails.php
[Sat Jul 09 14:30:11 2011] [error] [client xx.xx.xx.xx] PHP Notice:  Undefined variable: cookieName in /var/www/includes/universalChecklogin.php on line 23, referer: http://xx.xx.xx.xx/includes/
[Sat Jul 09 14:35:51 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/accountdetails.php
[Sat Jul 09 14:35:59 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/my_stats.php
[Sat Jul 09 14:39:31 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/accountdetails.php
[Sat Jul 09 14:43:12 2011] [error] [client xx.xx.xx.xx] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/adminPanel.php on line 42, referer: http://xx.xx.xx.xx/index.php
[Sat Jul 09 14:43:39 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/index.php
[Sat Jul 09 14:43:42 2011] [error] [client xx.xx.xx.xx] PHP Warning:  mysql_data_seek(): Offset 0 is invalid for MySQL result index 28 (or the query data is unbuffered) in /var/www/stats.php on line 353, referer: http://xx.xx.xx.xx/index.php

and error cron log syslog:
Code:
Jul  9 15:50:01 bitcoinitalia CRON[11981]: (root) CMD (/var/www/cronjobs/cronjob.php)
Jul  9 15:50:01 bitcoinitalia CRON[11980]: (root) CMD (/var/www/cronjobs/archive.php)
Jul  9 15:50:01 bitcoinitalia CRON[11978]: (CRON) error (grandchild #11981 failed with exit status 126)
Jul  9 15:50:01 bitcoinitalia CRON[11979]: (CRON) error (grandchild #11980 failed with exit status 126)
sr. member
Activity: 406
Merit: 250
It's not really different for obscurity, but moreso that I used a different algorithm when I setup my initial site before open-sourcing it.

I just haven't gotten around to changing it Wink
sr. member
Activity: 313
Merit: 258
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.

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.

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.

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.





 
sr. member
Activity: 406
Merit: 250
Nice catch. The salting in the OS version is slightly different than my sites implementation (hooray obscurity!). Fixing in repo now.
member
Activity: 717
Merit: 86
Will try that out again and see if I can get it to give me something other than internal server error 500 which is what I usually get.....is there a way I can check my tables for something missing maybe? I imported the .sql file included in the download with no errors. Was there any additional steps I needed to take maybe in creating any extra tables possibly?

Thanks again Mike! You can expect a donation for sure! Awseome stuff!

Peace!
member
Activity: 84
Merit: 10
Typo in your code (or mikes).   Change $_$authPin to $authPin
I'm thinking it doesn't think my account has a valid $authPin?  But it does...  Am I missing something?

I should have caught that.  Thank you, that fixed it.

That typo is in "simplecoin-simplecoin-v2.0-0-g361c13d.tar.gz", that's the rev I pulled.
full member
Activity: 210
Merit: 100
Mike,

Been a lurker on the thread, and now trying to setup Simplecoin.

I have everything working, and in fact, my tests with one of my rigs appears to be working fine.

However, I cannot load the Admin Panel.  I have the link on my login, but when clicked it's a blank page and I get this error in the Apache error.log:

Code:
[Thu Jul 07 02:36:39 2011] [error] PHP Parse error:  syntax error, unexpected T_VARIABLE in /htdocs/adminPanel.php on line 43

Any thoughts, that line in my version of the code is:

Code:
       //Make sure an authPin is set and valid when $act is active^M
        if($_POST["act"] && $_$authPin == $inputAuthPin){



typo in your code (or mikes).   Change $_$authPin to $authPin


member
Activity: 84
Merit: 10
Mike,

Been a lurker on the thread, and now trying to setup Simplecoin.

I have everything working, and in fact, my tests with one of my rigs appears to be working fine.

However, I cannot load the Admin Panel.  I have the link on my login, but when clicked it's a blank page and I get this error in the Apache error.log:

Code:
[Thu Jul 07 02:36:39 2011] [error] PHP Parse error:  syntax error, unexpected T_VARIABLE in /htdocs/adminPanel.php on line 43

Any thoughts, that line in my version of the code is:

Code:
        //Make sure an authPin is set and valid when $act is active^M
        if($_POST["act"] && $_$authPin == $inputAuthPin){

I'm thinking it doesn't think my account has a valid $authPin?  But it does...  Am I missing something?

member
Activity: 717
Merit: 86
It seems also some of the cronjobs are failing with a exit code/status of 255?

Only 2 cronjobs I get these errors on is when payout.php is tried to be executed by cron and also cronjob.php gives me this error...the rest run without errors from cron....only those 2 php files cause this cron error with a exiting code/status of 255?

I looked at the directoryinclude and all the cronjob files are setup the same....why only those 2 error out?

Please help!

Thanks!
donator
Activity: 640
Merit: 500
Nice initiative, if I didn't have to pay so many damn bills Ill probably open-source mine as well.

Tell me if you need help with anything.

Kind regards
Kris
member
Activity: 717
Merit: 86
Thanks! Got the clients to connect succesfully! Do you have an example of about how long or in how many minutes I should run each cronjob file? I know in the thread it states from 10 to 30 minutes but how about the workers.php one for example? I like the stats to update frequently but I do not want to create to much or uneeded database traffic either...

Thanks again for all your help!

Anyone else having issues accessing the admin page? I have my account flag set to 1 in the database? Cant seem to figure that one out.

Peace!
sr. member
Activity: 406
Merit: 250
Looks like BurningToad is going to share his MaxPPS code, so hopefully we'll have MaxPPS as a payout option soon.
Pages:
Jump to: