Bitcoin Forum
October 16, 2018, 01:42:17 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Poll
Question: Would you use such a mining proxy?  (Voting closed: April 13, 2011, 10:26:05 PM)
Yes, it seems like a good idea. - 7 (63.6%)
Maybe. - 1 (9.1%)
No, I don't like the idea. - 3 (27.3%)
No, I use something similar already. - 0 (0%)
Total Voters: 11

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 »  All
  Print  
Author Topic: Flexible mining proxy  (Read 87949 times)
Brian DeLoach
VIP
Full Member
*
Offline Offline

Activity: 166
Merit: 100


View Profile
August 14, 2011, 02:00:17 AM
 #301

the httpd.conf in /etc/apache2 is blank. Is there another file by that name somewhere else?

edit: config file is apache2.conf for Debian. Google is pretty useful.
1539697337
Hero Member
*
Offline Offline

Posts: 1539697337

View Profile Personal Message (Offline)

Ignore
1539697337
Reply with quote  #2

1539697337
Report to moderator
1539697337
Hero Member
*
Offline Offline

Posts: 1539697337

View Profile Personal Message (Offline)

Ignore
1539697337
Reply with quote  #2

1539697337
Report to moderator
1539697337
Hero Member
*
Offline Offline

Posts: 1539697337

View Profile Personal Message (Offline)

Ignore
1539697337
Reply with quote  #2

1539697337
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539697337
Hero Member
*
Offline Offline

Posts: 1539697337

View Profile Personal Message (Offline)

Ignore
1539697337
Reply with quote  #2

1539697337
Report to moderator
1539697337
Hero Member
*
Offline Offline

Posts: 1539697337

View Profile Personal Message (Offline)

Ignore
1539697337
Reply with quote  #2

1539697337
Report to moderator
Brian DeLoach
VIP
Full Member
*
Offline Offline

Activity: 166
Merit: 100


View Profile
August 14, 2011, 02:25:02 AM
 #302

Of course, fix a problem and another shows up

Code:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in
 /var/www/common.inc.php:33\nStack trace:\n#0 /var/www/common.inc.php(33): PDO->__construct('mysql:host=loca...', 'Alphy',
 'bitminer')\n#1 /var/www/index.php(31): db_connect()\n#2 {main}\n  thrown in /var/www/common.inc.php on line 33
shotgun
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
August 14, 2011, 06:01:00 PM
 #303

Of course, fix a problem and another shows up

Code:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in
 /var/www/common.inc.php:33\nStack trace:\n#0 /var/www/common.inc.php(33): PDO->__construct('mysql:host=loca...', 'Alphy',
 'bitminer')\n#1 /var/www/index.php(31): db_connect()\n#2 {main}\n  thrown in /var/www/common.inc.php on line 33


Open the /etc/mysql/my.cnf (debian) or /etc/my.cnf (rhel) and set max_connections=250 or to something higher than what you have currently. I'm not going to get into the per-thread buffer memory usage stuff when you increase max_connections... so either read up on it or just be aware that each connection allocates ram so if you are low on memory you might want to consider that impact. The default mysql max_connections is 100, fyi. I am not sure why flexible proxy uses connections so much - maybe it's not making persistent or pooled connections.

<luke-jr> Catholics do not believe in freedom of religion.
virtualcodewarrior
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
August 16, 2011, 12:39:59 AM
 #304

I have the same problems as alfalfa. Every so often apache runs out of clients and has to be restarted. Increasing the clients doesn't help because then PHP throws the exception. I run 4 separate miners through the proxy and use the latest phoenix release. I mine mostly on Eligius.

It looks like new connections keep being opened without closing the old ones (or maybe it closes the old ones slower then it opens the new ones) Sometimes it recovers on its own.
shotgun
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
August 16, 2011, 03:08:34 AM
 #305

I have the same problems as alfalfa. Every so often apache runs out of clients and has to be restarted. Increasing the clients doesn't help because then PHP throws the exception. I run 4 separate miners through the proxy and use the latest phoenix release. I mine mostly on Eligius.

It looks like new connections keep being opened without closing the old ones (or maybe it closes the old ones slower then it opens the new ones) Sometimes it recovers on its own.

This is likely due to a bug in the application where it's not closing connections properly. Simple solution: create a /etc/crontab entry that restarts apache and/or mysql every N hours.

Code:
01 * * * * root /etc/init.d/httpd restart > /dev/null
02 * * * * root /etc/init.d/mysqld restart > /dev/null

<luke-jr> Catholics do not believe in freedom of religion.
bitfoo
Donator
Sr. Member
*
Offline Offline

Activity: 289
Merit: 250



View Profile
August 24, 2011, 01:22:06 AM
 #306

After watching tshark, poclbm.py output, and tailing the access log for the proxy, I have determined that a low KeepAliveTimeout setting in the Apache config was the culprit.

The KeepAliveTimeout on my server was 3 seconds, and the ask rate was 5.  This caused the miner to try to use a KeepAlive session, only to find it timed out.  Then it had to establish a new connection.  This was giving the connection issues I was seeing.

Essentially what this means is the KeepAliveTimeout setting has to be higher than the ask rate.  I would suggest adding a few seconds on top to make sure there's a little wiggle room.
Thanks for the info!  I'll add this to the readme, and perhaps to the .htaccess file.

In general, is it preferable to configure Apache with KeepAlive enabled or disabled for this proxy?

shotgun
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
August 24, 2011, 04:13:10 AM
 #307

After watching tshark, poclbm.py output, and tailing the access log for the proxy, I have determined that a low KeepAliveTimeout setting in the Apache config was the culprit.

The KeepAliveTimeout on my server was 3 seconds, and the ask rate was 5.  This caused the miner to try to use a KeepAlive session, only to find it timed out.  Then it had to establish a new connection.  This was giving the connection issues I was seeing.

Essentially what this means is the KeepAliveTimeout setting has to be higher than the ask rate.  I would suggest adding a few seconds on top to make sure there's a little wiggle room.
Thanks for the info!  I'll add this to the readme, and perhaps to the .htaccess file.

In general, is it preferable to configure Apache with KeepAlive enabled or disabled for this proxy?

enabled afaik, ymmv

<luke-jr> Catholics do not believe in freedom of religion.
Intention
Full Member
***
Offline Offline

Activity: 128
Merit: 100


View Profile
September 01, 2011, 09:42:42 PM
 #308

So I got this up and running on just a temporary vps before I commit to running this on a local machine since I'm very bad at these things and things usually end up getting reinstalled.

I have the web portion up and running with the dashboard etc it is currently installed in the root of the machine's apache directory.  I have pointed my miner to the ip of my vps however I keep getting the same loop of errors.

2011-09-02 05:36:39: Listener for "test": myip:8332 02/09/2011 05:36:39, Problems communicating with bitcoin RPC 1 2
2011-09-02 05:36:44: Listener for "test": myip:8332 02/09/2011 05:36:44, Problems communicating with bitcoin RPC 2 2
2011-09-02 05:36:49: Listener for "test": myip:8332 02/09/2011 05:36:49, Problems communicating with bitcoin RPC 3 2
2011-09-02 05:36:49: Listener for "test": myip:8332 02/09/2011 05:36:49, No more backup pools left. Using primary and starting over.

I have made sure magic_quotes_gpc is off by manually entering the option and I've also changed the keepalive time out to 10 seconds however I am not sure what else could be causing this.

YinCoin YangCoin ☯☯First Ever POS/POW Alternator! Multipool! ☯ ☯ http://yinyangpool.com/ 
Free Distribution! https://bitcointalk.org/index.php?topic=623937
skEwb
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
September 02, 2011, 07:50:22 PM
 #309

Ran it on my own private VPS for a while and had no issues with it. It was working as it should. Thanks for the proxy.
kripz
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
September 03, 2011, 05:03:23 AM
 #310

This is long dead, though still working. I've read reports on this proxy loosing up to 10% of shares due to the code and/or apache not keeping up with the number of requests.

Please check your miner/proxy/pool stats and compare.

 Merged mining, free SMS notifications, PayPal payout and much more.
http://btcstats.net/sig/JZCODg2
coblee
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1044


Creator of Litecoin. Director of Eng at Coinbase.


View Profile
September 08, 2011, 07:45:03 AM
 #311

This is long dead, though still working. I've read reports on this proxy loosing up to 10% of shares due to the code and/or apache not keeping up with the number of requests.

Please check your miner/proxy/pool stats and compare.

I've seen it slow down due to db getting too large. So I have to clean them out at least once a week doing this:

DELETE FROM `work_data` WHERE DATEDIFF(UTC_TIMESTAMP(), `time_requested`) > 0;
DELETE FROM `submitted_work` WHERE DATEDIFF(UTC_TIMESTAMP(), `time`) > 0;

Cdecker
Hero Member
*****
Offline Offline

Activity: 490
Merit: 503



View Profile WWW
September 08, 2011, 09:16:19 AM
 #312

The proxy is quite good AFAIK, I have a consistent rejection rate of ~1%, but that's to be expected.

Want to see what developers are chatting about? http://bitcoinstats.com/irc/bitcoin-dev/logs/
Bitcoin-OTC Rating
Naven
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
November 05, 2011, 08:00:05 PM
 #313

@cdhowie, are u planing any updates?
btc_artist
Full Member
***
Offline Offline

Activity: 154
Merit: 100


Bitcoin!


View Profile WWW
November 30, 2011, 04:45:34 PM
 #314

Watching

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
siggy
Sr. Member
****
Offline Offline

Activity: 388
Merit: 250


Your professional profile on the blockchain


View Profile
February 04, 2012, 12:00:23 AM
 #315

apologies for resurecting an old thread..

is this still being updated / mantained?  Is there a better mining proxy out there?   I've now got 6 rigs I'm managing, and soon to be expanding further... having one central location to view stats & manage pools would be a godsend...

thanks,
Sigg

EPIK



              ▄▄███████▄▄
        ▄███████████████▄
    ▄█████████    ████████▄
  ▄█████▀▀              ▀▀█████▄
▄█████      ▄██    ██▄███████▄
███████      ▀▀    ▀▀█████████
████████    ▄▄    ▄▄█████████
██████▀    ███    ██▀████████
  █████▄      ▀▀    ▀▀  ▀██████
  ▀███████▄▄▄    ▄▄███████▀
      ▀████████▄▄███████▀
          ▀█████████████▀
                  ▀▀▀▀▀▀▀
TOKEN

THE FUTURE OF DIGITAL COLLECTIBLES
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████

████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
Ann Thread
  Telegram  Twitter  Facebook  Medium  Reddit  Whitepaper 



▄█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▄
█    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  █
████████████████████
████████████████████
███████████████▀▀▀▀▀
██████████████  ▄▀███
██████████████▄  ▀▀▀▀
████████████████████
▀██████████████████▀
WALLET

          

██████████  █████████
██████████  █████████
██████████  █████████
  ▄▄▄▄▄▄▄▄▄▀▄▄▄▄▄▄▄▄
  █████████  ████████
  █████████  ████████
  █████████  ████████
  █████████  ████████
  █████████  ████████
ITEMS
fizzisist
Hero Member
*****
Offline Offline

Activity: 706
Merit: 500



View Profile WWW
February 04, 2012, 09:21:10 AM
 #316

apologies for resurecting an old thread..

is this still being updated / mantained?  Is there a better mining proxy out there?   I've now got 6 rigs I'm managing, and soon to be expanding further... having one central location to view stats & manage pools would be a godsend...

thanks,
Sigg

I use this proxy and it works well enough for me. It's a shame that it's not still actively developed, though.

I took a look at the various forks on Github and it looks like virtualcodewarrior's is the most recently updated, but the last commit was Aug 21, 2011... Still, it might be worth a look (I haven't looked at it yet).

I second the question, is there a better proxy out there? Should we start a bounty or something? Are there any major problems with the proxy that need fixing?

ummas
Sr. Member
****
Offline Offline

Activity: 274
Merit: 250


View Profile
April 05, 2012, 08:20:16 AM
 #317

I`m on the topic now.
I`ll try to run that, and if it will work for me, i`ll start thinking for better solution.
Is there any other as fizzisist said ?
Red Emerald
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile WWW
April 30, 2012, 05:14:38 AM
 #318

apologies for resurecting an old thread..

is this still being updated / mantained?  Is there a better mining proxy out there?   I've now got 6 rigs I'm managing, and soon to be expanding further... having one central location to view stats & manage pools would be a godsend...

thanks,
Sigg

I use this proxy and it works well enough for me. It's a shame that it's not still actively developed, though.

I took a look at the various forks on Github and it looks like virtualcodewarrior's is the most recently updated, but the last commit was Aug 21, 2011... Still, it might be worth a look (I haven't looked at it yet).

I second the question, is there a better proxy out there? Should we start a bounty or something? Are there any major problems with the proxy that need fixing?
Any progress on this?

Lomax42
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
June 14, 2012, 06:13:01 AM
 #319

Does anyone can tell what's the problem?? Why do so many Getworks * and so little Shares *
Pool              Latest work requested                                Getworks * Shares * Rejected *  
Deepbit By 123 at 2012-06-14 06:10:56 UTC                         7939         1936        1.86%


Use cgminer-2.3.4-win32 & 15 comp
MasterX
Member
**
Offline Offline

Activity: 88
Merit: 10



View Profile
November 15, 2012, 09:09:57 AM
 #320

Thanks for the release!  I'll dedicate some time to pulling and installing it tomorrow, and pass that money along once it's up.  After all, a promise is a promise Smiley  Thanks again.

Cool, thanks!  Hope the software works for you.

If you run into any trouble, let me know.  I intend to support the software I publish.  (That goes for everyone.)
Hi cdhowie,

Maybe i'm missing something, but after i installed the database and changed mysql parameters (login&passwd);
When typing the url in my browser http://127.0.0.1 i get the apache login window, askin for credentials, but whatever i try, it keeps coming back and i'm unable to login.
I tried changing the credentials in the config file, but even with default 'admin' + 'changeme' it does not work.

Is there anything else i should check or do before i'm able to login/use this software?

Any help would be great!

PS: i'm testing this on the most recent stable release of Xampp.


| Donations: 1MegaXG1bd6mTEQCdAMjVzGexcYrF5LJKv |
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 17 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!