MrBobC
Member
Offline
Activity: 110
Merit: 10
|
|
February 13, 2014, 10:04:08 AM |
|
So I have BAMT 1.3, and I seem to still be having problems with weird hashrates when cgmon starts sgminer. Where can I change the command from the cgmon script starting the program to just running "mine restart" as root? I think the script already runs as the root user.
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 13, 2014, 03:32:53 PM Last edit: February 13, 2014, 04:11:02 PM by miner777 |
|
Can someone please help me get cgmon working on BAMT? I have the cgmon.tcl in the home folder. I have made all the changes to the cgmon.tcl file that I need to. I can manually run the cgmon.tcl file and it will work. However, for some reason the cron is not working. I am wondering if it has to do with the cron, or maybe it has to do with changing the file permission to 755. Maybe changing the permission is a different command in BAMT? When I changed the permission of the file I used this command "chmod 755 cgmon.tcl".
I have not been sleeping good at night because I keep waking to check the rig. Would really like to get this script going.
|
|
|
|
MrBobC
Member
Offline
Activity: 110
Merit: 10
|
|
February 13, 2014, 10:26:59 PM |
|
That is the correct command. In crontab you have the */2 * * * * root /home/user/cgmon.tcl >/dev/null 2>&1
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 13, 2014, 10:49:16 PM |
|
That is the correct command. In crontab you have the */2 * * * * root /home/user/cgmon.tcl >/dev/null 2>&1
MrBob, I sincerely appreciate the help. Yes, I have the crontab setup and it looks like this: */2 * * * * root /home/cgmon.tcl >/dev/null 2>&1 My cgmon.tcl file is in the /home folder. Still not working.
|
|
|
|
MrBobC
Member
Offline
Activity: 110
Merit: 10
|
|
February 13, 2014, 11:00:54 PM |
|
chmod 755 /home/cgmon.tcl
check the settings to see where the log file is pointed to.
Also, did you do the following?
apt-get update apt-get install tcl apt-get install php5-cli apt-get install php5
When I did this for the first time, just php5 wasn't enough, I needed php5-cli. This is not in the instructions.
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 13, 2014, 11:09:27 PM |
|
chmod 755 /home/cgmon.tcl
check the settings to see where the log file is pointed to.
Also, did you do the following?
apt-get update apt-get install tcl apt-get install php5-cli apt-get install php5
When I did this for the first time, just php5 wasn't enough, I needed php5-cli. This is not in the instructions.
I did the chmod again. For the log I have two outputs it seems: /root/cgmon.log /live/cow/root/cgmon.log I just tried to install php5-cli and it showed to already be installed. Also, for the "user" in the cgmon.tcl file I have it designated "root". I can still run the file manually, but cron will not run it.
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 13, 2014, 11:39:12 PM |
|
Just so this is clear. I check the log after a manual run of the script and its been recorded in the log. I do not see any other runs in the log other then the ones that I have done manually.
|
|
|
|
MrBobC
Member
Offline
Activity: 110
Merit: 10
|
|
February 14, 2014, 12:16:22 AM |
|
Do you have "api-listen" : true in your /etc/bamt/cgminer.conf?
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 14, 2014, 12:21:01 AM |
|
Yes.
"api-listen" : true,
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 14, 2014, 12:55:56 AM |
|
I did do this command recommended by Angela earlier in the thread:
set cgminer_gpu_options "-c /etc/bamt/cgminer.conf"
Thats because i would like to be able to set my gpu options via the cgminer.conf file. Not sure if maybe that messed things up.
|
|
|
|
MrBobC
Member
Offline
Activity: 110
Merit: 10
|
|
February 14, 2014, 01:02:22 AM |
|
No, I have that too. That wouldn't impact the ability to just run the monitoring and output the cgmon.log file. That could be it with the root user. Mine is "user." Try that. I'm thinking there must be something different between yours and mine. Your user being "root" could be it. What version of BAMT are you using? I use 1.3.
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 14, 2014, 01:12:56 AM |
|
I tried "user" and it did not work. I just now even downloaded a new cgmon.tcl file to the "user" profile. Ran the chmod, and did everything like I am suppose to, pointed the cron to the correct place. Once again it will run manually but will not run with cron. I am using 1.3 SMOS which runs on BAMT.
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 14, 2014, 01:36:03 AM |
|
Something is up with my cron. I tried to start the service with this: /etc/init.d/cron start
And I get this: Starting periodic command scheduler: cron failed!
|
|
|
|
MrBobC
Member
Offline
Activity: 110
Merit: 10
|
|
February 14, 2014, 01:47:45 AM |
|
Possibly an SMOS issue, though not likely. Unfortunately friend, I've gone through the list of things I thought it could be, unless there is a problem with syntax somewhere in your /etc/crontab on a different line?
|
|
|
|
miner777
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 14, 2014, 01:56:58 AM |
|
MrBob I appreciate the help. I have put in a call to someone who will hopefully know. If all else fails I will switch out of SMOS and move over to pure BAMT.
|
|
|
|
jdape (OP)
|
|
February 14, 2014, 03:40:47 AM Last edit: February 14, 2014, 03:56:03 AM by jdape |
|
Hi,
if I add the following to the end of the cgminer command in cgmon-mine.sh shouldn't it capture the output?
2>> ~/log/_cgminer_log.txt
I want to be able to track whenever a pool failover happens.
This creates the log file but nothing is written to it.
cgmon-mine.sh is created whenever cgmon starts cgminer. So you actually make that change within cgmon.tcl. Try adding it to the end of your $cgminer_gpu_options line in cgmon.tclActually the issue is with screen... When I try logging to a file it only works when NOT using screen... You can log cgminer ouput by adding -L to the screen options in cgmon.tcl. set screen_cmd "screen -mdL" Will leave a screenlog.0 file in the current working directory. Let me know if you find another way to do it.
|
Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
|
|
|
bomberb17
|
|
February 14, 2014, 03:49:46 PM |
|
Has anyone found a free SMTP server to use for email receiving? My ISP's needs authentication..
|
|
|
|
jdape (OP)
|
|
February 15, 2014, 08:13:52 AM |
|
cgmon 1.0 through 1.0.3 have just been released. New features: - SMTP Authentication support! Works with gmail.
- Automatic version check and script updating. If you run
cgmon will determine if there's a new version available. If so, it will download the new version and migrate your existing configuration settings into cgmon.tcl.tmp. Then you can move the temp file to cgmon.tcl. # 1.0 # Added auto update procedure: ./cgmon.tcl update # Added SMTP AUTH support. # Added screen command syntax to output when starting. # 1.0.1 & 1.0.2 # Bug fixes # 1.0.3 # Added new version notifications to emails, when applicable. Update procedure in action: apex@miner3:~$ ./cgmon.tcl update --2014-02-15 00:06:37-- http://www.forked.net/~apex/cgmon/cgmon.tcl Resolving www.forked.net (www.forked.net)... 38.103.167.118 Connecting to www.forked.net (www.forked.net)|38.103.167.118|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 25702 (25K) [application/x-tcl] Saving to: `cgmon.tcl.autoupdate'
0K .......... .......... ..... 100% 657K=0.04s
2014-02-15 00:06:37 (657 KB/s) - `cgmon.tcl.autoupdate' saved [25702/25702]
Version Check: You have 1.0.2, latest is 1.0.3. Updating now... Update successful! cgmon 1.0.3 is now located at /home/apex/cgmon.tcl.tmp. To finish the update process run this command: mv /home/apex/cgmon.tcl.tmp /home/apex/cgmon.tcl apex@miner3:~$ mv /home/apex/cgmon.tcl.tmp /home/apex/cgmon.tcl apex@miner3:~$ ./cgmon.tcl Feb 15 00:13:34 miner3 - cgmon 1.0.3 - cgminer running and all GPUs healthy.
|
Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
|
|
|
jdape (OP)
|
|
February 15, 2014, 08:24:41 AM |
|
FYI, to debug SMTP AUTH, change line 480 from: to
|
Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net
|
|
|
bomberb17
|
|
February 15, 2014, 10:10:24 AM |
|
In the file change "Ubuntu: apt-get install libtcl tcl-tls" to "Ubuntu: apt-get install tcllib tcl-tls"
|
|
|
|
|