Bitcoin Forum
November 02, 2024, 08:12:42 AM *
News: Latest Bitcoin Core release: 28.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 18 19 20 21 22 23 24 25 26 »
  Print  
Author Topic: CGWatcher 1.4.0, the GUI/monitor for CGMiner and BFGMiner to prevent downtime  (Read 180474 times)
milone (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 15, 2013, 05:56:23 PM
 #141

I have a problem with the frequency it is checking the CoinChoose site. I have it set to check every 5 mins, but it only updates every 10-12 mins. Is there somewhere else I need to set to get it to pull the data?

The interval for updating profitability data is stored in the CoinRefreshInterval setting in CGWatcher.exe.ini. The value is in minutes, and the minimum is 5 (anything lower will be changed to 5).

What happens now when a scheduled action to switch profiles based on profitability (or related fields) occurs, it checks to see if the data was updated within the last 15 minutes, and if not it updates it before switching profiles to make sure it is using current data to base its profile selection on.

I've changed this so that now when this type of scheduled action occurs, it will always update coin data before selecting a profile unless it had already been updated within the past 5 minutes. This is to reduce unnecessary requests from coinchoose. So this change will be in version 1.2.7. If you think it should be handled differently I'm open to suggestions.


MonsterZero, samfisher: Good to know. It is satisfying as a developer to list everything I've fixed or improved, even though I suspect most users never read changelogs. But I occasionally forget to write down changes if I didn't already have them on the to-do list, so I figured if I got a response from that it would help me remember.  Wink

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
August 15, 2013, 06:20:42 PM
 #142

I have a problem with the frequency it is checking the CoinChoose site. I have it set to check every 5 mins, but it only updates every 10-12 mins. Is there somewhere else I need to set to get it to pull the data?

The interval for updating profitability data is stored in the CoinRefreshInterval setting in CGWatcher.exe.ini. The value is in minutes, and the minimum is 5 (anything lower will be changed to 5).

What happens now when a scheduled action to switch profiles based on profitability (or related fields) occurs, it checks to see if the data was updated within the last 15 minutes, and if not it updates it before switching profiles to make sure it is using current data to base its profile selection on.

I've changed this so that now when this type of scheduled action occurs, it will always update coin data before selecting a profile unless it had already been updated within the past 5 minutes. This is to reduce unnecessary requests from coinchoose. So this change will be in version 1.2.7. If you think it should be handled differently I'm open to suggestions.
That is what I needed, great support, thanks.
MonsterZero
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
August 15, 2013, 07:56:20 PM
 #143

And yes Milone, people do read those things  Wink  Thank you for your work.

Hey man,

is your name on here a Godzilla, or Glassjaw reference?



Godzilla
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
August 17, 2013, 11:56:16 PM
 #144

I get a number of errors when trying to run this:

http://pastebin.com/raw.php?i=Up1xV5mR

I didn't see anything in the readme about installing dependencies, but it seems like several assemblies are not on my system (Windows 8 64bit w/ Visual Studio 2012 installed) that are assumed to be there...




Nevermind, there was a piece of software on my computer that was auto-deleting "old" files from my download folder and it deleted all the dependencies as soon as they were extracted.  I extracted the archive to a different location and it works.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
ajw107
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
August 21, 2013, 05:28:01 PM
 #145

  • Start miner/Restart miner re-written to create temporary copies of config files and batch files so originals aren't modified in case they're being shared. Improved handling for batch files with longer wait times.

Hi, there seems to be a bug with this new feature if you start the miner using a bat file.  I use one as I am mining LTC, so I need to set the two variables beforehand.  But the temp bat file seems to mess up if there are spaces in the temp config (i.e. CGWatcher) path.  e.g:
Original Bat File:
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
"D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.exe"  --config "D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.conf"

Temp Bat File:
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
"D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.exe" Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf --api-listen --api-allow W:127.0.0.1 --api-port 4029 --config "D:\Windows Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf"

Note how the path to the temp file is not quoted, and starts at "Folders", chopping off the initial "D:\Windows "

Just though you should should know.  Also I have to congratulate you for a brilliant program, the ability to restart a GPU/ASIC when sick and you aren't there is a lifesaver.  Plus the program is so configurable, easy to use, and love that it describes the config file settings, and automates a few things.
Alex
milone (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 21, 2013, 07:53:29 PM
Last edit: August 21, 2013, 08:41:30 PM by milone
 #146

I use one as I am mining LTC, so I need to set the two variables beforehand.  But the temp bat file seems to mess up if there are spaces in the temp config (i.e. CGWatcher) path.  e.g:
Original Bat File:
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
"D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.exe"  --config "D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.conf"

Temp Bat File:
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
"D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.exe" Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf --api-listen --api-allow W:127.0.0.1 --api-port 4029 --config "D:\Windows Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf"

What are the variables you're using? I couldn't find anything that jumped out as the reason this would happen, but admittedly this code needed some cleaning up so I did make some changes and tested using the filenames you've listed. I just uploaded this as version 1.2.8.1. Please download and try this version and see if the problem still exists. If it does, let me know what variables you're using and where so I can keep digging.

Thanks


EDIT: I had hard-coded a path while trying to reproduce this bug and forgot to remove it before uploading. It was only online for about 30 minutes at most, so if you updated to 1.2.8.1 within the first ~45 minutes of release please download again. This includes any auto-update that occurred during this time. I apologize for the inconvenience.

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
ajw107
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
August 22, 2013, 01:15:38 AM
 #147

I use one as I am mining LTC, so I need to set the two variables beforehand.  But the temp bat file seems to mess up if there are spaces in the temp config (i.e. CGWatcher) path.  e.g:
Original Bat File:
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
"D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.exe"  --config "D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.conf"

Temp Bat File:
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
"D:\Windows Folders\Downloads\Compressed\cgminer-3.3.4-windows\cgminer.exe" Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf --api-listen --api-allow W:127.0.0.1 --api-port 4029 --config "D:\Windows Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf"
What are the variables you're using?
The variables are the two environmental ones needed to be set for LTC mining (they are the first two lines in the bat file)
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1

I've tested version 1.2.8.1 (oh by the way, it didn't get picked up when I clicked 'Check for updates', not sure why).  Unfortunately the problem is still there for some reason.  It's weird, as the unquoted and cropped temp.conf file path Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf shouldn't even be there, as it's properly quoted and has the full file path and --config argument at the end!?!?!  It looks like maybe something left over from a split or last element in an array being left there.  It is also possible that if you are reading in the cgminer line from the original conf file that it treats the path as two tokens (even though it is quoted), and the Folders\Downloads\Compressed\CGWatcher-1.2.7\temp.conf is actually just garbage not removed as there is one more token than expected.  Just guesses of course, hope you manage to find the cause.
Alex
milone (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 22, 2013, 01:37:14 AM
Last edit: August 22, 2013, 01:53:16 AM by milone
 #148

I realize what you're saying, I just don't understand where the problem is occurring. Anything inside quotes is treated as a single argument, at least it's supposed to be. Can you try to start the miner (to reproduce this problem), then go to the Tests tab and click 'Create Debug Report', then email the report to my email address in the Readme? I'd like to reproduce your profile and folder structure and see if I can find where this is occurring.

When creating the batch file, it removes any config file in the miner arguments and then adds the config file to the end. This seems like the obvious place this problem is occurring, but when I tried it earlier using your arguments, miner path, and config file path, it worked as expected.

I thought by "variables" you meant CGWatcher variables... so you can disregard that. The setx commands shouldn't be an issue here.

Also, I didn't change the version number for the update to 1.2.8.1, which is why it didn't say an update was available. I figured I'd make sure this was fixed first, and have been adding a lot of CGRemote-related features today so I figured I'd hold off until that was done.

Thanks


EDIT: Nevermind, I found the problem. An update will be available shortly.

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
Tigggger
Legendary
*
Offline Offline

Activity: 1098
Merit: 1000



View Profile
August 22, 2013, 09:29:12 AM
 #149

The variables are the two environmental ones needed to be set for LTC mining (they are the first two lines in the bat file)
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
Just FYI, those 2 settings are permanent don't need to run them every time.

ajw107
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
August 23, 2013, 02:29:59 AM
 #150

Sorry, I wasn't feeling very well yesterday.  I know you edited the post to say you fixed the problem, but just in case here is the debug info (plus it forced me to install Click.To, which I'm very happy about)!
http://pastebin.com/zPrmuPN0
Alex
ajw107
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
August 23, 2013, 02:32:36 AM
 #151

The variables are the two environmental ones needed to be set for LTC mining (they are the first two lines in the bat file)
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
Just FYI, those 2 settings are permanent don't need to run them every time.
Really? I would have thought the scope would have been within the Dos Box lifetimne, or at the very most until a reboot.  That is worrying.
milone (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 23, 2013, 03:31:25 AM
 #152

No problem. It is fixed, I just haven't finished the update yet. There were some issues with the scheduler I've had to work out. I think (hope) I'm about done so it will be available soon.

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
Tigggger
Legendary
*
Offline Offline

Activity: 1098
Merit: 1000



View Profile
August 23, 2013, 05:46:24 AM
 #153

The variables are the two environmental ones needed to be set for LTC mining (they are the first two lines in the bat file)
Quote
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
Just FYI, those 2 settings are permanent don't need to run them every time.
Really? I would have thought the scope would have been within the Dos Box lifetimne, or at the very most until a reboot.  That is worrying.

Yes, those commands add them to the windows environment variables.

Type 'set' from a command prompt it will show the list and you will see them in there

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

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 23, 2013, 10:03:13 PM
 #154

ajw107: 1.2.9 is available now and should fix the problem you were having with config file paths including spaces. Thanks for reporting this.

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
ajw107
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile
August 23, 2013, 11:20:53 PM
 #155

ajw107: 1.2.9 is available now and should fix the problem you were having with config file paths including spaces. Thanks for reporting this.
Brilliant, it works perfectly.  Thank you for all your hard work.
Alex
xIIImaL
Legendary
*
Offline Offline

Activity: 1372
Merit: 1005


View Profile
August 24, 2013, 02:04:38 PM
Last edit: August 24, 2013, 04:16:35 PM by xIIImaL
 #156

I use sheduled action Swith profile to 1st most profitable every 3 min
When i updated to version 1.2.9 i see this:

[24.08.2013 16:41:27]        Scheduler: switching to mine CryptogenicBullion using "CGB" because it is currently 1st most profitable.
[24.08.2013 16:41:27]    [d] Miner.Restart begin.
[24.08.2013 16:41:27]        Because the miner is set to a .BAT file, I will attempt to stop and then start the miner so the .BAT is reloaded...     Huh  Huh

And now cgminer restarted every 3 min.. Huh even when the profile is already most profitable..
so...why?

In previous versions when profile is switching and it a most profitable in this time, it was so:

[24.08.2013 16:49:23]   Ignored scheduled "Switch profile to 1st most profitable every 3 min" because CryptogenicBullion is already being mined using the active profile.

I have to roll back to a previous version..  please fix this issue

 Roll Eyes sorry for the google translate
Nordstern
Member
**
Offline Offline

Activity: 108
Merit: 10



View Profile
August 24, 2013, 06:41:39 PM
 #157

Dear Milone

1. Since auto update to version 1.2.9 CGWatcher could not get API access. When i switch back to 1.2.8.1 everything works normal. Is this a known behavior?

2. How cann i add manually REDCoin, Philosopherstone and Memecoin?

3. Thank you so much for your hard work!

regards
milone (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 24, 2013, 07:30:00 PM
 #158

I use sheduled action Swith profile to 1st most profitable every 3 min
When i updated to version 1.2.9 i see this:

[24.08.2013 16:41:27]        Scheduler: switching to mine CryptogenicBullion using "CGB" because it is currently 1st most profitable.
[24.08.2013 16:41:27]    [d] Miner.Restart begin.
[24.08.2013 16:41:27]        Because the miner is set to a .BAT file, I will attempt to stop and then start the miner so the .BAT is reloaded...     Huh  Huh

And now cgminer restarted every 3 min.. Huh even when the profile is already most profitable..
so...why?

In previous versions when profile is switching and it a most profitable in this time, it was so:

[24.08.2013 16:49:23]   Ignored scheduled "Switch profile to 1st most profitable every 3 min" because CryptogenicBullion is already being mined using the active profile.

I have to roll back to a previous version..  please fix this issue

 Roll Eyes sorry for the google translate


This was removed accidentally in 1.2.9, and while it isn't necessarily a problem... when you're switching profiles every 3 minutes it is restarting the miner every 3 minutes so I'll be fixing this to go back to ignoring actions if the profile is already active.



Dear Milone

1. Since auto update to version 1.2.9 CGWatcher could not get API access. When i switch back to 1.2.8.1 everything works normal. Is this a known behavior?

2. How cann i add manually REDCoin, Philosopherstone and Memecoin?

3. Thank you so much for your hard work!

regards

1. No, this has not been reported. If you can use 1.2.9 to start the miner (and reproduce this problem), then go to the Tests tab and click 'Create Debug Report' and send me the results, I'll try to find where the problem is. I particularly need to see what settings it is using when starting the miner, which is all listed in that report.

2. I originally stored coins in CGWatcher.exe.ini for this reason and to have the coins saved in case coinchoose was ever down. But because of recent changes that remove non-mined coins that aren't on coinchoose, I'll have to handle this differently. Otherwise coins added to the ini file will be removed the next time profitability data is updated, unless the coin is used in a profile. But you wouldn't be able to link it to a profile because it would be removed on startup when profitability data is updated.

In other words, I have to fix this. I'll also make a form to add coins manually so editing the ini file won't be necessary.

3. Thanks.

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
milone (OP)
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
August 26, 2013, 03:43:46 AM
 #159

In regard to the last couple comments, 1.3.0 is now available...

Coins can now be created, edited, and modified in Coin Manager, accessible in Settings tab -> 'Other Tools...' button menu. You can also set to not remove individual coins, even if they drop from CoinChoose. (coins used in any of your profiles are already not removed)

Also notifications are displayed when new coins are found on CoinChoose, in case you want to get a head start on mining. If you don't happen to see the notification, a log entry is also created. (you can turn this off in the Settings tab)

Also profile switching should once again be skipped if the profile is already in use so the miner won't be restarted.

I did make some minor changes that should hopefully improve API enabling, but if you still have this issue please send me the debug report created in the Tests tab.

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
TMakc
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
August 26, 2013, 04:19:49 AM
 #160

I cannot run CGMiner (with CGWatcher version 1.2.9, 1.3.0) with the next record in the log file:

Quote
[26.08.2013 8:07:05]     [d] Waiting for CGMiner to initialize API. Process 2112 alive=False, minerid=2112.
[26.08.2013 8:07:06]     [d] Watch for miner, expected process is 2112 (not alive).
[26.08.2013 8:07:06]     [d] CGMiner process is running using ProcessID 2112, expecting port 4028.
[26.08.2013 8:07:08]     [d] Finish wait for miner to start, process is 0 (not alive).
[26.08.2013 8:07:08]     [d] CGMiner process 0 not alive at Miner.StartMining exit.
[26.08.2013 8:07:08]         Start miner failed on 1st attempt. Killing any remaining processes.
[26.08.2013 8:07:08]     [d] Miner.IsProcessAlive(2112) returns False. [First try, test process is nothing.] (CPID0/CMPID=0/CBPID=0)
[26.08.2013 8:07:08]     [d] Miner.StartMining called. [Profile=ltcmine;MinerFile=C:\My Programs\Miners\cgminer-3.4.0-windows\cgminer.exe;MinerFileUsed=C:\My Programs\Miners\cgminer-3.4.0-windows\cgminer.exe;MinerExecutable=D:\Miners\cgminer-3.4.0-windows\cgminer.exe;Config=D:\Miners\CGWatcher-1.3.0\temp.conf (D:\Miners\cgminer-3.4.0-windows\ltcmine);Arguments=--config ""D:\Miners\CGWatcher-1.3.0\temp.conf"" --api-listen --api-allow W:127.0.0.1;Anticipated Port=4028;Used Port=4028;IsBatCmd=False;BatCmdPath=D:\Miners\cgminer-3.4.0-windows\cgminer.exe (D:\Miners\cgminer-3.4.0-windows\cgminer.exe);LastKnownInstanceCount=0/0]
[26.08.2013 8:07:08]     [d] Miner.IsProcessAlive(4424) returns False. [First try, test process is nothing.] (CPID4424/CMPID=4424/CBPID=0)
[26.08.2013 8:07:08]     [d] Waiting for CGMiner to initialize API. Process 4424 alive=False, minerid=4424.

with version 1.2.8.1 everything is working fine with the same settings
Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 »
  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!