Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 460. (Read 5806004 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
User switching on windows does mystical voodoo the adl library doesn't like.
It is impossible to catch that somehow?
Some watchdog on ADL thread to detect and fix when it happen?
ADL thingy is good to disable mining when it is overheating.
It is my desktop pc, so i need to switch user to allow my kids play on theirs accounts...
Alas not that I'm aware of.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
User switching on windows does mystical voodoo the adl library doesn't like.
It is impossible to catch that somehow?
Some watchdog on ADL thread to detect and fix when it happen?
ADL thingy is good to disable mining when it is overheating.
It is my desktop pc, so i need to switch user to allow my kids play on theirs accounts...
member
Activity: 103
Merit: 10
Hi, what would be the parameter syntax in the cgminer.conf file to stop the stratum protocol on btcguils and returning to the old connect way ?

I have 3 PC's ans all 3 are crashing after some time ... at the same time ... (must be stratum/pool related).

thanks for your help.
sr. member
Activity: 383
Merit: 250
is there any chance of a GUI to be made for this to make miners and configs a lot simpler etc like over clocking settings miner settings then add in and done makes it up

Most likely not.  You can use the menu's within Cgminer to set those settings and then save a conf file. Further startups of Cgminer would use that saved conf file.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
User switching on windows does mystical voodoo the adl library doesn't like.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
Any ideas about how to fix "hanging" on windows when ADL is enabled?
cgminer frozen after about 3-4hrs of mining yesterday :/ I`m not getting it, it always happen when I`m away form pc and user is switched to login screen.

I`m using now startup batch:
Code:
cgminer --shares 1
cgminer --no-adl
1st instance is setting up clocks and exit after one share, 2nd one is mining.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Well if sockets are actually working (the link there is about how to enable them when they aren't working) then it's a problem with the socket connecting to the target.

So it's a firewall/port forwarding problem if sockets are installed properly and enabled in PHP
(they are on by default usually in linux, but not always in windows)

That's what I figured.  I will update this thread if I ever find a solution. I am trying out some experiments from the php.net website.
If you 'roll' on over to FreeNode #cgminer it's usually easy to sort out where the problem is.
sr. member
Activity: 322
Merit: 250
Well if sockets are actually working (the link there is about how to enable them when they aren't working) then it's a problem with the socket connecting to the target.

So it's a firewall/port forwarding problem if sockets are installed properly and enabled in PHP
(they are on by default usually in linux, but not always in windows)

That's what I figured.  I will update this thread if I ever find a solution. I am trying out some experiments from the php.net website.
full member
Activity: 182
Merit: 100
Perfect, thanks GlenBot!
newbie
Activity: 46
Merit: 0
How to enter multiple pools from the command line?

Here's my shortcut that launches it upon startup (win7):
C:\cgminer\cgminer.exe -o http://pool.bitclockers.com:8332 -u MyPoolUsername1 -p MyPoolPassword1 -o http://mtred.com:8337 -u MyPoolUsername2 -p MyPoolPassword2 --load-balance

Hope that helps...

full member
Activity: 182
Merit: 100
How to enter multiple pools from the command line?
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
... as per API-README - you say in cgminer what IP addresses are allowed to access cgminer.
Then in miner.php you say the IP:port:randomshortname of the cgminer
Yeah, I forgot to mention that I did that. I set the allowed addresses in the config file, and as you saw below that statement, I added it to miner.php.

... as per the README FAQ ... it means sockets are either disabled on not installed in your PHP
There is a link in the FAQ.

That's the part I can't figure out.

Code:
Q: I run PHP on windows to access the API with the example miner.php. Why does
it fail when php is installed properly but I only get errors about Sockets not
working in the logs?
A: http://us.php.net/manual/en/sockets.installation.php
 

I am not running PHP on windows. I have bluehost, and they use apache.  Visiting that link doesn't help me. I don't know what this means, or how to do it:

Code:
The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure. 

There's a user note on that page that says you need to uncomment the line that reads
;extension=php_sockets.dll (by removing the semi colon), or if it's not there, to add it.  I don't know where to add it, so I added it to the end.  Still having same error.

So, AS PER THE README FAQ, I am not running php on windows to access the API, so I didn't think it applied.

This is not a priority because I only want to monitor one rig, and I can use CMD.exe to run API calls. (it's just that it doesn't like when I use the pipe, for some reason)

Thanks for your help. Anyone got it working on bluehost? LMK.

I will continue to interface with the google for now.
Well if sockets are actually working (the link there is about how to enable them when they aren't working) then it's a problem with the socket connecting to the target.

So it's a firewall/port forwarding problem if sockets are installed properly and enabled in PHP
(they are on by default usually in linux, but not always in windows)
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I notice that i am getting many more rejected shares now that im using 2.8.4 compared to 2.7.5. I usualy get about 10 rejected shares per 20 000 accepted shares. Now with 2.8.4 ive gotten 200
Nothing's changed in management therein, so I can only assume it's coincidence and pool related.

I immediately stopped the 2.8.4 and restarted 2.7.5 and i have no stale shares at all yet. Soemthing is definetly up
Did you move to stratum with 2.8.4?

EDIT: To explain why I ask that, cgminer + stratum gets notification of block changes much faster than ever so it should reduce the number of stales. On the other hand, I have noticed that slush uses that as an excuse to ignore any shares that are returned from the previous block immediately once it has stratum notified you of the new block saying job not recognised, so to me it looks like stales on slush went up, not down, despite the potential advantages. I'm not sure how btcguild fares there.
member
Activity: 70
Merit: 10
I notice that i am getting many more rejected shares now that im using 2.8.4 compared to 2.7.5. I usualy get about 10 rejected shares per 20 000 accepted shares. Now with 2.8.4 ive gotten 200
Nothing's changed in management therein, so I can only assume it's coincidence and pool related.

I immediately stopped the 2.8.4 and restarted 2.7.5 and i have no stale shares at all yet. Soemthing is definetly up
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I notice that i am getting many more rejected shares now that im using 2.8.4 compared to 2.7.5. I usualy get about 10 rejected shares per 20 000 accepted shares. Now with 2.8.4 ive gotten 200
Nothing's changed in management therein, so I can only assume it's coincidence and pool related.
sr. member
Activity: 322
Merit: 250
... as per API-README - you say in cgminer what IP addresses are allowed to access cgminer.
Then in miner.php you say the IP:port:randomshortname of the cgminer
Yeah, I forgot to mention that I did that. I set the allowed addresses in the config file, and as you saw below that statement, I added it to miner.php.

... as per the README FAQ ... it means sockets are either disabled on not installed in your PHP
There is a link in the FAQ.

That's the part I can't figure out.

Code:
Q: I run PHP on windows to access the API with the example miner.php. Why does
it fail when php is installed properly but I only get errors about Sockets not
working in the logs?
A: http://us.php.net/manual/en/sockets.installation.php
 

I am not running PHP on windows. I have bluehost, and they use apache.  Visiting that link doesn't help me. I don't know what this means, or how to do it:

Code:
The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure. 

There's a user note on that page that says you need to uncomment the line that reads
;extension=php_sockets.dll (by removing the semi colon), or if it's not there, to add it.  I don't know where to add it, so I added it to the end.  Still having same error.

So, AS PER THE README FAQ, I am not running php on windows to access the API, so I didn't think it applied.

This is not a priority because I only want to monitor one rig, and I can use CMD.exe to run API calls. (it's just that it doesn't like when I use the pipe, for some reason)

Thanks for your help. Anyone got it working on bluehost? LMK.

I will continue to interface with the google for now.
member
Activity: 70
Merit: 10
I notice that i am getting many more rejected shares now that im using 2.8.4 compared to 2.7.5. I usualy get about 10 rejected shares per 20 000 accepted shares. Now with 2.8.4 ive gotten 200
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
What are the limitations of miner.php when used on a webhost (such as bluehost, hostgator, etc.) ? [I am familiar with php btw]

I was thinking that first of all, I have to set api-allow to the host's shared IP to my config file, or allow all.
... as per API-README - you say in cgminer what IP addresses are allowed to access cgminer.
Then in miner.php you say the IP:port:randomshortname of the cgminer
Quote
2nd: I have to forward public port 4028 on my router to my rig's internal ip address and private port. (in this case it's the same port as the public one)

3rd: I have to instruct miner.php to look at my public IP address:port.
 line 45:
$rigs = array(':4028:QUADMINER');

4th: Huh

5th: PROFIT!

I am having an error...
Error getting device list: ERR: socket connect(,4028) failed 'Operation now in progress'

error_log shows
Code:
[22-Oct-2012 14:32:59] PHP Warning:  socket_connect() [function.socket-connect]: unable to connect [115]: Operation now in progress in /home2//public_html/test/miner.php on line 315

line 315 has
$res socket_connect($socket$addr$port);
... as per the README FAQ ... it means sockets are either disabled on not installed in your PHP
There is a link in the FAQ.
sr. member
Activity: 322
Merit: 250
What are the limitations of miner.php when used on a webhost (such as bluehost, hostgator, etc.) ? [I am familiar with php btw]

I was thinking that first of all, I have to set api-allow to the host's shared IP to my config file, or allow all.

2nd: I have to forward public port 4028 on my router to my rig's internal ip address and private port. (in this case it's the same port as the public one)

3rd: I have to instruct miner.php to look at my public IP address:port.
 line 45:
$rigs = array(':4028:QUADMINER');

4th: Huh

5th: PROFIT!

I am having an error...
Error getting device list: ERR: socket connect(,4028) failed 'Operation now in progress'

error_log shows
Code:
[22-Oct-2012 14:32:59] PHP Warning:  socket_connect() [function.socket-connect]: unable to connect [115]: Operation now in progress in /home2//public_html/test/miner.php on line 315

line 315 has
$res socket_connect($socket$addr$port);
legendary
Activity: 2730
Merit: 1263
Put the stratum URL in without any prefix in the config file.

Without the prefix:

Code:
...
"url" : "api-stratum.bitcoin.cz:3333",
...
"url" : "stratum.btcguild.com:9332",

I get:

Code:
0: Enabled Alive Priority 0: http://api-stratum.bitcoin.cz:3333 ...
1: Enabled Alive Priority 1: http://stratum.btcguild.com:9332 ...

So this seems to work now. Only the http:// prefix in the user interface is misleading.
Jump to: