Bitcoin Forum
December 10, 2016, 08:49:06 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 [386] 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 ... 830 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.9.2  (Read 4827139 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
mezzomix
Legendary
*
Offline Offline

Activity: 1610


View Profile
October 21, 2012, 06:47:32 PM
 #7701

I'm using 2.8.4 now but the stratum implementation seems to be broken. I have the same behaviour in all 2.8.x versions (see my post). It seems that stratum+tcp:// URLs in the config file are not working.
1481402946
Hero Member
*
Offline Offline

Posts: 1481402946

View Profile Personal Message (Offline)

Ignore
1481402946
Reply with quote  #2

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

Posts: 1481402946

View Profile Personal Message (Offline)

Ignore
1481402946
Reply with quote  #2

1481402946
Report to moderator
1481402946
Hero Member
*
Offline Offline

Posts: 1481402946

View Profile Personal Message (Offline)

Ignore
1481402946
Reply with quote  #2

1481402946
Report to moderator
Mobius
Hero Member
*****
Offline Offline

Activity: 957



View Profile
October 21, 2012, 06:53:10 PM
 #7702

I'm using 2.8.4 now but the stratum implementation seems to be broken. I have the same behaviour in all 2.8.x versions (see my post). It seems that stratum+tcp:// URLs in the config file are not working.


Use the normal address btcguild.com:8332 - it will automatically detect stratum and switch
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 21, 2012, 08:33:49 PM
 #7703

Put the stratum URL in without any prefix in the config file.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 21, 2012, 08:37:59 PM
 #7704

I don't seem to be able to see a v2.8.4 tag in git - can I just assume that the tip of the master branch is at 2.8.4?

roy
My bad. On this occasion it was at the commit with the version number. Uploaded tag now.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
Roy Badami
Hero Member
*****
Offline Offline

Activity: 562


View Profile
October 21, 2012, 08:45:37 PM
 #7705

Thanks!
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
October 21, 2012, 11:54:05 PM
 #7706

I keep having problems with 2.8.4 freezing.  It doesn't give any errors, it just stops, like someone hit the pause button.  Sometimes it'll go for days before it happens, sometimes it'll go a few hours.  This one points to p2pool, running on windows 7.  I have two other machines with 2.8.4 on it, and they don't seem to have the problem.  However, one of the machines is unstable (windows 8 preview) and tends to reboot of its own accord.  The other is my main workstation and cgminer gets shut down fairly often there.

Also, I'm confused by the new output on 2.8.4 that shows the difficulty found vs difficult desired.  I'm guessing the pools don't care about it, and they credit you for what's desired, not what's given?  Otherwise if you hit the magic number and found a block, they'd be crediting you a whole lot, which they don't do.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 22, 2012, 01:15:20 AM
 #7707

I keep having problems with 2.8.4 freezing.  It doesn't give any errors, it just stops, like someone hit the pause button.  Sometimes it'll go for days before it happens, sometimes it'll go a few hours.  This one points to p2pool, running on windows 7.  I have two other machines with 2.8.4 on it, and they don't seem to have the problem.  However, one of the machines is unstable (windows 8 preview) and tends to reboot of its own accord.  The other is my main workstation and cgminer gets shut down fairly often there.

Also, I'm confused by the new output on 2.8.4 that shows the difficulty found vs difficult desired.  I'm guessing the pools don't care about it, and they credit you for what's desired, not what's given?  Otherwise if you hit the magic number and found a block, they'd be crediting you a whole lot, which they don't do.

M
Are you  using any stratum pool somewhere in backups or otherwise in the cgminer that fails?

The output diff is purely cosmetic.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
October 22, 2012, 01:45:57 AM
 #7708

I keep having problems with 2.8.4 freezing.  It doesn't give any errors, it just stops, like someone hit the pause button.  Sometimes it'll go for days before it happens, sometimes it'll go a few hours.  This one points to p2pool, running on windows 7.  I have two other machines with 2.8.4 on it, and they don't seem to have the problem.  However, one of the machines is unstable (windows 8 preview) and tends to reboot of its own accord.  The other is my main workstation and cgminer gets shut down fairly often there.

Also, I'm confused by the new output on 2.8.4 that shows the difficulty found vs difficult desired.  I'm guessing the pools don't care about it, and they credit you for what's desired, not what's given?  Otherwise if you hit the magic number and found a block, they'd be crediting you a whole lot, which they don't do.

M
Are you  using any stratum pool somewhere in backups or otherwise in the cgminer that fails?

The output diff is purely cosmetic.

I don't think so.  I have p2pool, ozcoin, emc, and 50btc there.  But I see what you're thinking.  Let me remove emc and 50btc.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 22, 2012, 01:48:43 AM
 #7709

I keep having problems with 2.8.4 freezing.  It doesn't give any errors, it just stops, like someone hit the pause button.  Sometimes it'll go for days before it happens, sometimes it'll go a few hours.  This one points to p2pool, running on windows 7.  I have two other machines with 2.8.4 on it, and they don't seem to have the problem.  However, one of the machines is unstable (windows 8 preview) and tends to reboot of its own accord.  The other is my main workstation and cgminer gets shut down fairly often there.

Also, I'm confused by the new output on 2.8.4 that shows the difficulty found vs difficult desired.  I'm guessing the pools don't care about it, and they credit you for what's desired, not what's given?  Otherwise if you hit the magic number and found a block, they'd be crediting you a whole lot, which they don't do.

M
Are you  using any stratum pool somewhere in backups or otherwise in the cgminer that fails?

The output diff is purely cosmetic.

I don't think so.  I have p2pool, ozcoin, emc, and 50btc there.  But I see what you're thinking.  Let me remove emc and 50btc.

M
No, neither of those are stratum pools so should not be affected directly by stratum code.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
Cranky4u
Hero Member
*****
Offline Offline

Activity: 779



View Profile WWW
October 22, 2012, 01:52:03 AM
 #7710

Just upgrade3d from 2.7.x to 2.8.x   

Can someone please provide a plain english explination of the "Diff" data in the HW mining lines? eg Diff: 100/25

Thanks in advance

-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 22, 2012, 02:05:53 AM
 #7711


Even better would be a custom debug build running in gdb but I doubt any of you are up for that  Undecided I'm trying that on my laptop which is the only thing that has windows. Hopefully I don't fry it in the process, but at 10MH/s I also doubt it will recreate the problem.

Sigh. I wish it were only linux...

How do you do that? I tried something a while back but didn't get it working.

What I want to do is run under gdb, save the environment when it crashes, then continue running so that it's not sitting all day locked up.
When you build it, build it without optimisations in the CFLAGS and with the -g option, i.e. CFLAGS="-g -Wall -W" only. Then
gdb cgminer
run [usual cgminer parameters] -T
Running it with -T is a good idea cause gdb spews out other information and corrupts the display when you're using the curses display.

Here's a debug build in case someone is willing to try it:
http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe

Meanwhile my laptop continues to fry itself but has not crashed with the windows binary. It's probably too slow to even reproduce the problem.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
Krak
Hero Member
*****
Offline Offline

Activity: 591



View Profile WWW
October 22, 2012, 02:14:34 AM
 #7712

Just upgrade3d from 2.7.x to 2.8.x   

Can someone please provide a plain english explination of the "Diff" data in the HW mining lines? eg Diff: 100/25

Thanks in advance
The first number is the difficulty of the share, the second number is the minimum difficulty accepted by the pool. If the difficulty of the share is higher than the current Bitcoin network difficulty, you found a block.

BTC: 1KrakenLFEFg33A4f6xpwgv3UUoxrLPuGn
Frizz23
Hero Member
*****
Offline Offline

Activity: 658



View Profile
October 22, 2012, 02:44:51 AM
 #7713

OK - so here the last lines before my cgminer crashed (v2.8.4 on Win7x64).

Note: I lost Internet connection for a few hours - maybe that caused the crash?

[2012-10-22 02:37:39] 64.0 C  F: 55%(1984RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 02:37:41] [thread 0: 1174405120 hashes, 210719.1 khash/sec]
 [2012-10-22 02:37:42] 64.0 C  F: 55%(1984RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 02:37:44] [thread 1: 1174405120 hashes, 210681.4 khash/sec]
 [2012-10-22 02:37:45] 64.0 C  F: 55%(1983RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 02:37:46] Reusing stratum work
 [2012-10-22 02:37:46] Generated stratum merkle 21fccc1ae2762046362be1c31c71a92c40ce2a82dd4ccf81e6c96f4c218980c1

 [2012-10-22 02:37:46] Generated stratum header 000000021cc6ab9ee271679f7e235158cdc5dfa57fad35ffa0554412000000c50000000021fccc1 a
e2762046362be1c31c71a92c40ce2a82dd4ccf81e6c96f4c218980c15084950a1a0575ef0000000 0000000800000000000000000000000000000000000000000
000000000000000000000000000000000000000080020000
 [2012-10-22 02:37:46] Work job_id 23349 nonce2 46000000 ntime 5084950a
 [2012-10-22 02:37:46] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000
 [2012-10-22 02:37:46] Reusing stratum work
 [2012-10-22 02:37:46] Generated stratum merkle 12962fdf3b3660e6e478991e90540812fd076649ad1040cde70d48d00e193d6b

 [2012-10-22 02:37:46] Generated stratum header 000000021cc6ab9ee271679f7e235158cdc5dfa57fad35ffa0554412000000c50000000012962fd f
3b3660e6e478991e90540812fd076649ad1040cde70d48d00e193d6b5084950a1a0575ef0000000 0000000800000000000000000000000000000000000000000
000000000000000000000000000000000000000080020000
 [2012-10-22 02:37:46] Work job_id 23349 nonce2 47000000 ntime 5084950a
 [2012-10-22 02:37:46] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000
 [2012-10-22 02:37:46] [thread 0: 1207959552 hashes, 209158.4 khash/sec]
 [2012-10-22 02:37:48] 64.0 C  F: 55%(1983RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 04:38:48] Work stale due to expiry
C:\bitcoin\cgminer-2.8.4-win32>

-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 22, 2012, 02:54:41 AM
 #7714

OK - so here the last lines before my cgminer crashed (v2.8.4 on Win7x64).

Note: I lost Internet connection for a few hours - maybe that caused the crash?
Code:
[2012-10-22 02:37:39] 64.0 C  F: 55%(1984RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 02:37:41] [thread 0: 1174405120 hashes, 210719.1 khash/sec]
 [2012-10-22 02:37:42] 64.0 C  F: 55%(1984RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 02:37:44] [thread 1: 1174405120 hashes, 210681.4 khash/sec]
 [2012-10-22 02:37:45] 64.0 C  F: 55%(1983RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 02:37:46] Reusing stratum work
 [2012-10-22 02:37:46] Generated stratum merkle 21fccc1ae2762046362be1c31c71a92c40ce2a82dd4ccf81e6c96f4c218980c1

 [2012-10-22 02:37:46] Generated stratum header 000000021cc6ab9ee271679f7e235158cdc5dfa57fad35ffa0554412000000c50000000021fccc1a
e2762046362be1c31c71a92c40ce2a82dd4ccf81e6c96f4c218980c15084950a1a0575ef00000000000000800000000000000000000000000000000000000000
000000000000000000000000000000000000000080020000
 [2012-10-22 02:37:46] Work job_id 23349 nonce2 46000000 ntime 5084950a
 [2012-10-22 02:37:46] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000
 [2012-10-22 02:37:46] Reusing stratum work
 [2012-10-22 02:37:46] Generated stratum merkle 12962fdf3b3660e6e478991e90540812fd076649ad1040cde70d48d00e193d6b

 [2012-10-22 02:37:46] Generated stratum header 000000021cc6ab9ee271679f7e235158cdc5dfa57fad35ffa0554412000000c50000000012962fdf
3b3660e6e478991e90540812fd076649ad1040cde70d48d00e193d6b5084950a1a0575ef00000000000000800000000000000000000000000000000000000000
000000000000000000000000000000000000000080020000
 [2012-10-22 02:37:46] Work job_id 23349 nonce2 47000000 ntime 5084950a
 [2012-10-22 02:37:46] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000
 [2012-10-22 02:37:46] [thread 0: 1207959552 hashes, 209158.4 khash/sec]
 [2012-10-22 02:37:48] 64.0 C  F: 55%(1983RPM)  E: 940MHz  M: 200Mhz  V: 1.175V  A: 99%  P: 0%
 [2012-10-22 04:38:48] Work stale due to expiry
C:\bitcoin\cgminer-2.8.4-win32>
Not exactly revealing of anything :\ Was there a relationship time-wise with the internet connection going down/up and the crash time?

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
sharky112065
Sr. Member
****
Offline Offline

Activity: 383



View Profile
October 22, 2012, 03:45:00 AM
 #7715

Just upgrade3d from 2.7.x to 2.8.x   

Can someone please provide a plain english explination of the "Diff" data in the HW mining lines? eg Diff: 100/25

Thanks in advance

It is right in the README file included with Cgminer...

"The 2 diff values are the actual difficulty target that share reached followed by the difficulty target the pool is currently asking for."

Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
October 22, 2012, 05:14:22 AM
 #7716

Ok so what I've done to try and help debug this is I've built a special windows build of cgminer that uses a special dll to help print out the backtrace if it crashes that should help me find where it's crashing.

To use it, grab the following 2 files:
http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe
http://ck.kolivas.org/apps/cgminer/temp/backtrace.dll

and put them into a regular 2.8.4 windows directory. Start it as you normally would, but with the -T option otherwise the display gets corrupted when the program exits, and if it crashes while mining stratum, send me what is output when it crashes please!
Meh doesn't seem to do what it's advertised as doing... sigh need to think of another strategy.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
Toresh
Newbie
*
Offline Offline

Activity: 26


View Profile
October 22, 2012, 08:29:38 AM
 #7717

I am running the debug cgminer 2.8.4 on my Win7 machine for about a day now without any problems. It is connected to Slush's Pool via stratum and it has an Nvidia card so it's about 110Mh/s and it it also used for games.

mezzomix
Legendary
*
Offline Offline

Activity: 1610


View Profile
October 22, 2012, 06:26:32 PM
 #7718

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.
PandaMiner
Sr. Member
****
Offline Offline

Activity: 252


I got scammed Jan2014


View Profile WWW
October 22, 2012, 08:42:06 PM
 #7719

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('<my ip>:4028:QUADMINER');

4th: Huh

5th: PROFIT!

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

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

line 315 has
$res socket_connect($socket$addr$port);

My Litecoin address: Lf9WKM61AhmXchG2Ph2cftHKSQhxHutcdk
My Bitcoin address: 1Hwem4GSQWPCtBTKcSpXg2jYwxF6PtTjZx
--> Have you tried Triplemining.com? <--
kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
October 22, 2012, 09:41:30 PM
 #7720

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('<my ip>:4028:QUADMINER');

4th: Huh

5th: PROFIT!

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

error_log shows
Code:
[22-Oct-2012 14:32:59] PHP Warning:  socket_connect() [<a href='function.socket-connect'>function.socket-connect</a>]: unable to connect [115]: Operation now in progress in /home2/<username>/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.

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
Pages: « 1 ... 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 [386] 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 ... 830 »
  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!