Bitcoin Forum
May 11, 2024, 01:18:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 »  All
  Print  
Author Topic: cgmon - mining monitor for Linux - auto restart, reboot, sick gpu, ASIC, &more  (Read 48221 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.
freskhu
Newbie
*
Offline Offline

Activity: 62
Merit: 0


View Profile
March 20, 2014, 03:09:18 PM
 #261

what changes we need to do to put this to work with script N like sgminer 4.1.0-troky?
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715433506
Hero Member
*
Offline Offline

Posts: 1715433506

View Profile Personal Message (Offline)

Ignore
1715433506
Reply with quote  #2

1715433506
Report to moderator
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 20, 2014, 03:24:51 PM
 #262

what changes we need to do to put this to work with script N like sgminer 4.1.0-troky?

Haven't used that before, but there's an option for using sgminer already.  Should work out of the box.

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
OutdoorServices
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 26, 2014, 06:25:01 PM
 #263

one of my gpu always goes sick/dead...temperature decreases until it goes dead moved it on different PCI slots and same thing. Mining lasts for maybe 2-5minutes and then has to restart.

I definitely have more then enough of a PSU as I have the corsair 1300Watt and only using 3 GPU HIS ICEQ 7950 and my kill-a-watt says 850watts.
lossofworth
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 26, 2014, 09:06:40 PM
 #264

Hello,

First off, thank you very much for your script! It has made my life much easier. A little background on my setup. I'm running about 30 Raspberry Pi's on Rasbian with CGMiner each handling 7 Klondike 16's. The reboot and everything works well. The only issue that occurs is that sometimes it will hang after a reboot and get stuck trying to connect to the pool. Here is what I see.

Code:
 [2014-03-26 20:44:10] Please check the details from the list below of the servers you have input
 [2014-03-26 20:44:10] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
 [2014-03-26 20:44:10] Pool: 0  URL: http://stratum.btcguild.com:3333  User: username  Password: xxx
 [2014-03-26 20:44:10] Press any key to exit, or cgminer will try again in 15s.

This can be resolved by either restarting the raspberry or exiting the script and restarting it. I'm not the most skilled with linux but I can google my way through most issues. I'm not sure what version of cgmon I'm on, but the last item in the changelog is 0.1b16. Also I'm currently on cgminer 3.12.3.

I read through the whole thread and didn't see this issue or a related on (I think). I look forward to any help you can give and thank you in advance!
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 27, 2014, 01:21:53 AM
 #265

Please upgrade to the latest version.  The newer versions will detect lack of network connectivity and/or lack of accepted shares.


Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 27, 2014, 01:24:06 AM
 #266

one of my gpu always goes sick/dead...temperature decreases until it goes dead moved it on different PCI slots and same thing. Mining lasts for maybe 2-5minutes and then has to restart.

I definitely have more then enough of a PSU as I have the corsair 1300Watt and only using 3 GPU HIS ICEQ 7950 and my kill-a-watt says 850watts.

I'd try lowering your intensity or gpu-engine settings until that card is stable.  Each card is unique.  Your PSU is fine.  Cheers.

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
nrps1
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
March 28, 2014, 12:09:14 PM
 #267

I've been looking for something like this as I'm getting really frustrated with random hangs... For example I went on a training course for 10 hours and discovered a minute after I left my house cgminer hung for the whole time grrrrr.

The problem I have is I'm a linux n00b (shock horror!) and I'll need a little help if possible please!

As background I followed the cryptobadger guide completely for my rig, to the letter, and my concern is that I'm not too sure what I'd need to disable and how to integrate this. Has anyone got the knowhow to help me? I'd need a step by step what to type to stop the cryptobadger and move to this if possible.

If it is straight forward and I don't need to do much, feel free to point me in the right direction!

Of course, it goes without saying, whoever can get me up and running (without these infuriating crashes) will indeed get a donation as I would very much appreciate your time Smiley

I am an IT professional FYI, just not in Linux...

jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 28, 2014, 03:29:52 PM
 #268

The instructions are at the top of the cgmon.tcl file and are pretty much step by step.  You just need to know how to edit a text file in unix (/etc/crontab) and known what paths you're already using for your cgminer setup.  cgmon wont interfere with any of your cryptobadger stuff.

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 28, 2014, 03:33:57 PM
 #269

I've added the install instructions to the first post in this thread (its 4 steps).

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
nrps1
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
March 28, 2014, 04:13:13 PM
 #270

I've added the install instructions to the first post in this thread (its 4 steps).

So you think that this shouldn't interfere with Step 6: Create cgminer startup script or Step 7: Create auto-start scripts?

http://www.cryptobadger.com/2013/04/build-a-litecoin-mining-rig-linux/
qys2008abcd
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 29, 2014, 04:32:43 AM
 #271

Thanks for the script, it's really useful as my rig randomly hangs in a few hours. Angry You saved me from endless nights of panic and wake up to a dead miner. I do have a question about the conf of the script:

Is there an option that CGmon can reboot the miner if CGminer failed to start?

I notice sometimes after reboot, CGminer just won't start and giving "invalid MIT-MAGIK-COOKIES-1 key segmentation fault", a cold reboot would fix the problem nicely. But right now CGmon would go into an endless circle saying "can't find cgminer running and check your conf file" but no reboot would take place. Am I missed the option or it does not come with this option yet? Right now I just use a small cron script to run constantly to check CGminer existence every 15 minutes. If CGmon has this already built in would be really great!

rorbit
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
March 29, 2014, 12:17:47 PM
 #272

Hi,

a few of times now I've woken up to a dead system with disk errors.  I click F to fix the errors and everything is fine.  I guess the last time the errors were too much as this didn't work.  Manually running fsck used up all memory and crashed.  The same thing happened when I ran a live cd and attempted to fix the disk.  So I re-installed the OS Sad

I'm wondering if there is a more graceful way to shut down the system and avoid this or are we using best practices already?
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 31, 2014, 05:10:37 PM
 #273

Hi,

a few of times now I've woken up to a dead system with disk errors.  I click F to fix the errors and everything is fine.  I guess the last time the errors were too much as this didn't work.  Manually running fsck used up all memory and crashed.  The same thing happened when I ran a live cd and attempted to fix the disk.  So I re-installed the OS Sad

I'm wondering if there is a more graceful way to shut down the system and avoid this or are we using best practices already?

Cgmon uses standard shutdown procedures - nothing that would cause file system corruption.

Sounds like you might want a new hard drive on that rig... It might last for awhile but it's probably failing.




Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 31, 2014, 05:16:14 PM
 #274

Thanks for the script, it's really useful as my rig randomly hangs in a few hours. Angry You saved me from endless nights of panic and wake up to a dead miner. I do have a question about the conf of the script:

Is there an option that CGmon can reboot the miner if CGminer failed to start?

I notice sometimes after reboot, CGminer just won't start and giving "invalid MIT-MAGIK-COOKIES-1 key segmentation fault", a cold reboot would fix the problem nicely. But right now CGmon would go into an endless circle saying "can't find cgminer running and check your conf file" but no reboot would take place. Am I missed the option or it does not come with this option yet? Right now I just use a small cron script to run constantly to check CGminer existence every 15 minutes. If CGmon has this already built in would be really great!


You can make your system reboot at that point with a small customization.  Find this line in cgmon.tcl:
Code:
				sendmail "[stamp] $hostname - $conf(cgminer_exec) failed to start" "$hostname $conf(cgminer_exec) failed to start.\n mining command was: $mining_command\n"

Add a new line below it with this one command:

Code:
reboot

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
March 31, 2014, 05:17:24 PM
 #275

I've added the install instructions to the first post in this thread (its 4 steps).

So you think that this shouldn't interfere with Step 6: Create cgminer startup script or Step 7: Create auto-start scripts?

http://www.cryptobadger.com/2013/04/build-a-litecoin-mining-rig-linux/


Correct.  It shouldn't interfere Smiley

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
pitBullXXX
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 04, 2014, 06:13:24 AM
 #276

Hello, need some help.

I have a RaspPi and some gridseeds. Sometimes miners randomly fail and have to restart cgminer.

Code:
[2014-04-03 03:18:57] GSD 2 GetResults usb read err:(-1) LIBUSB_ERROR_IO
[2014-04-03 03:18:57] No response from 2
[2014-04-03 03:18:57] GSD 2 failure, disabling!
[2014-04-03 03:19:01] Stratum from pool 1 detected new block
[2014-04-03 03:19:03] Accepted aaeacd03 Diff 383/256 GSD 3 pool 1
[2014-04-03 03:19:10] Accepted 8fc9cf7f Diff 456/256 GSD 1 pool 1

I followed everything in the CGmon installation instructions.
 
 Did ./cgmon.tcl and cgminer starts up but when a miner fails, cgminer does not restart.
 
 So, is there a way to get CGmon to work with gridseeds?
jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
April 04, 2014, 03:01:57 PM
 #277

When that happens, run this command and send me the result.

Code:
php -f /tmp/cgmon-api.php notify

I may be able to add support for gridseed with that information.

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
noodle_dam
Hero Member
*****
Offline Offline

Activity: 530
Merit: 500



View Profile
April 05, 2014, 09:24:07 AM
 #278

Sorry, I'm a pre-school level Linux user. Could you break step 2 in the installation instructions down a little more. I'm using BAMT.

jdape (OP)
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile WWW
April 05, 2014, 03:19:38 PM
 #279

If your path to cgmon.tcl was /home/username/cgmon.tcl you could use this to add the line to crontab:

Code:
echo "*/2 * * * *  root	/home/username/cgmon.tcl >/dev/null 2>&1" >> /etc/crontab

Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
itraxe
Sr. Member
****
Offline Offline

Activity: 264
Merit: 252

alt coins trader/miner.


View Profile
April 05, 2014, 04:08:56 PM
 #280

bro

we need for multiple config and edition cgmon setting

like if somebody have 50-100 pc its very hard to change all conf info in ur file on each pc.

could u help with that ?

like u have client file and server file too for mass controll cgmon on pcs
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!