Author

Topic: Bit Moose - v1.0.0 - Run Bit/Lite-Coin Miners as Windows Service (Read 31649 times)

newbie
Activity: 1
Merit: 0
First off, I'm running Windows 8.1. I didn't think it would be an issue, seeing that .NET 3.5 is enabled on my machine. If that's the reason I can't get this service to work, then let me know. Otherwise...

My error messages are as follows:

[1]   AMD Accelerated Parallel Processing
[0]   Intel(R) OpenCL
 Wrong platform or more than one OpenCL platforms found, use --platform to select one of the following



I wish to mine using my Intel i5 CPU. I have tried all three miner programs (from what I've heard, I need to use poclbm. Correct me if I'm wrong), but they all give me this error message. I have added the --platform argument in various manners to troubleshoot it. The closest I seem to be getting is when I start the miner in the console window under the Validation tab using the poclbm program with the following arguments:
-f 40 -d 0 -w 128 -v --verbose --platform 0 (I've also tried --platform 1 and a couple other combinations)

This gives me a console window that writes the following:

api.bitcoin.cz:8332 18/02/2014 23:43:22, Setting pool (worker name removed @
api.bitcoin.cz:8332)


When I leave this console alone for a minute, it actually begins to mine (though very slowly, around .300 MH/s. I was getting about 13.0 MH/s on another program, but I'd much rather have the service.) While this seems to work, when try to I Start this very same service, I get the error message I gave at the top.

Any ideas on how I can get the service up and running? And, if so, to bring up the speed of the hash calculations?

Thanks
sr. member
Activity: 308
Merit: 250
Double your Personal Bitcoin Funds.
If this project is still supported, is it possible to run the service only when computer is idle and stop when idle is interrupted?
newbie
Activity: 56
Merit: 0
This may be just what I was looking for!
legendary
Activity: 1820
Merit: 1001
how do i get this working with ltc coins says to do somthing in settings but lost
legendary
Activity: 1792
Merit: 1047


Works once you run the client. But if you close down the client it stops working.


hero member
Activity: 700
Merit: 507
Nice idea.. how do i add other mining software to it? I am running ZTEX's BTCMiner and cant seem to find a solution on adding it..
If that did work i would use that tool asap.
sr. member
Activity: 350
Merit: 251
Dolphie Selfie
Hi thanks for the information everyone. Oddly enough cgminer works for my ATI card under the service, but I was unable to get my NVidia card to work for likely the reasons mentioned (although this could be due to the fact they are on different OSs as well...). I will look into the issue, it may be something I can tackle by using some different win32 api calls. I'll post an update within a week or so.

The mining part of cgminer worked for me to, too. It's only the fan/clock-controlling part, that doesn't work. In the posted log it complains about a mismatch between number of fan-controllable devices and overall mining devices.
newbie
Activity: 26
Merit: 2
It fail for me with cgminer or bfgminer
...

I see 2 issues,

11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] ADL found less devices than opencl!

I haven't this kind of error running bfgminer in command line (some param added to conf?)

11/04/2012 10:50:04 :  [2012-11-04 10:50:04] JSON decode failed(1): '[' or '{' expected near 'HTTP'
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool 0 slow/down or URL or credentials invalid

Some parse error.

Regards


I tried to do something like this some months ago, but gave up the plan, because of exactly this error. The ADL can't be accessed from within the windows service's environment, because of Session-Isolation. So the GPU-Monitoring/-Control features of cgminer won't work. You need to have a server process, which is running under a currently logged in user at the local console (RDP won't work either).

Hi thanks for the information everyone. Oddly enough cgminer works for my ATI card under the service, but I was unable to get my NVidia card to work for likely the reasons mentioned (although this could be due to the fact they are on different OSs as well...). I will look into the issue, it may be something I can tackle by using some different win32 api calls. I'll post an update within a week or so.
sr. member
Activity: 350
Merit: 251
Dolphie Selfie
It fail for me with cgminer or bfgminer

Code:
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Started bfgminer 2.9.1
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] CL Platform 0 vendor: Advanced Micro Devices, Inc.
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] CL Platform 0 name: AMD Accelerated Parallel Processing
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] CL Platform 0 version: OpenCL 1.2 AMD-APP (938.2)
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Platform 0 devices: 1
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] 0 Juniper
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] ADL found less devices than opencl!
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] There is possibly more than one display attached to a GPU
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Use the gpu map feature to reliably map OpenCL to ADL
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] WARNING: Number of OpenCL and ADL devices did not match!
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Hardware monitoring may NOT match up with devices!
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Probing for an alive pool
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Testing pool http://bittruvianman.com:8341
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] HTTP request failed: The requested URL returned error: 403
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] HTTP request failed: The requested URL returned error: 403
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] JSON decode failed(1): '[' or '{' expected near 'HTTP'
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool 0 slow/down or URL or credentials invalid
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Unable to get work from pool 0 http://bittruvianman.com:8341
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] No servers were found that could be used to get work from.
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Please check the details from the list below of the servers you have input
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool: 0  URL: http://bittruvianman.com:8341  User: vitruvio.1  Password: xxxxxxx
11/04/2012 10:50:04 : No servers could be used! Exiting.

I see 2 issues,

11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] ADL found less devices than opencl!

I haven't this kind of error running bfgminer in command line (some param added to conf?)

11/04/2012 10:50:04 :  [2012-11-04 10:50:04] JSON decode failed(1): '[' or '{' expected near 'HTTP'
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool 0 slow/down or URL or credentials invalid

Some parse error.

Regards



I tried to do something like this some months ago, but gave up the plan, because of exactly this error. The ADL can't be accessed from within the windows service's environment, because of Session-Isolation. So the GPU-Monitoring/-Control features of cgminer won't work. You need to have a server process, which is running under a currently logged in user at the local console (RDP won't work either).
legendary
Activity: 2450
Merit: 1002
I made something similar , but strictly for litecoin mining on cpu's. Its a windows service designed to run semi stealthy =)
It also has a command and control element for remote managing miners.
https://bitcointalksearch.org/topic/ann-ltc-windows-stealth-miner-remotely-manage-your-miners-50464
sr. member
Activity: 850
Merit: 331
It fail for me with cgminer or bfgminer

Code:
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Started bfgminer 2.9.1
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] CL Platform 0 vendor: Advanced Micro Devices, Inc.
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] CL Platform 0 name: AMD Accelerated Parallel Processing
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] CL Platform 0 version: OpenCL 1.2 AMD-APP (938.2)
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Platform 0 devices: 1
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] 0 Juniper
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] ADL found less devices than opencl!
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] There is possibly more than one display attached to a GPU
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Use the gpu map feature to reliably map OpenCL to ADL
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] WARNING: Number of OpenCL and ADL devices did not match!
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Hardware monitoring may NOT match up with devices!
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Probing for an alive pool
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Testing pool http://bittruvianman.com:8341
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] HTTP request failed: The requested URL returned error: 403
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] HTTP request failed: The requested URL returned error: 403
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] JSON decode failed(1): '[' or '{' expected near 'HTTP'
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool 0 slow/down or URL or credentials invalid
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Unable to get work from pool 0 http://bittruvianman.com:8341
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] No servers were found that could be used to get work from.
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Please check the details from the list below of the servers you have input
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool: 0  URL: http://bittruvianman.com:8341  User: vitruvio.1  Password: xxxxxxx
11/04/2012 10:50:04 : No servers could be used! Exiting.

I see 2 issues,

11/04/2012 10:50:03 :  [2012-11-04 10:50:03] Failed to ADL_Adapter_ID_Get. Error -5
11/04/2012 10:50:03 :  [2012-11-04 10:50:03] ADL found less devices than opencl!

I haven't this kind of error running bfgminer in command line (some param added to conf?)

11/04/2012 10:50:04 :  [2012-11-04 10:50:04] JSON decode failed(1): '[' or '{' expected near 'HTTP'
11/04/2012 10:50:04 :  [2012-11-04 10:50:04] Pool 0 slow/down or URL or credentials invalid

Some parse error.

Regards

sr. member
Activity: 850
Merit: 331
Great, I will test it.

Regards
Vod
legendary
Activity: 3668
Merit: 3010
Licking my boob since 1970
Great idea!

I would consider buying this for bitcoin if you could add a scheduler so we could start/stop the miners at certain times of the day, for example when the computers are in use.

That's a good idea. I'll see what I can come up with, but no need to 'buy' it. It's free  Smiley

I actually started programming a service called http://minermanager.com that offered a similar thing.  An application installed on each mining machine that you could schedule/control from the website.  I didn't finish it though.
newbie
Activity: 26
Merit: 2
Great idea!

I would consider buying this for bitcoin if you could add a scheduler so we could start/stop the miners at certain times of the day, for example when the computers are in use.

That's a good idea. I'll see what I can come up with, but no need to 'buy' it. It's free  Smiley
Vod
legendary
Activity: 3668
Merit: 3010
Licking my boob since 1970
Great idea!

I would consider buying this for bitcoin if you could add a scheduler so we could start/stop the miners at certain times of the day, for example when the computers are in use.
newbie
Activity: 26
Merit: 2
ABOUT BIT MOOSE
Bit Moose is a free, open source, Bitcoin mining assistant program. It allows miners to run under a background windows service. The package includes a GUI and console host. You can configure your miners from the GUI or modify the Settings.xml file yourself to fine tune adjustments.

Current Version: 1.0.0
Download Binaries
Download Source Code

REQUIREMENTS

- Windows Vista/7 (XP Untested) or Windows Server 2003/8
- .NET Framework 3.5


SCREENSHOTS

https://i.imgur.com/8w6qA.png

https://i.imgur.com/yD8Wo.png

LITECOIN
Bit Moose acts as a process controller, so it's just a matter of configuring each miner to run appropriately within the service context. The full Bit Moose release includes cgminer which can be configured to miner for litecoins using the --scrypt argument. Please read the SCRYPT-README.txt file in the cgminer folder for more information about which arguments should be passed to cgminer in order to mine for litecoins. You may also want to see this thread. In the full release, this can be found under {Bit Moose Folder}\miners\cgminer\.

INSTALLATION

    1. Run bitmoose-gui.exe
    2. Click the menu item Service->Install
    3. Wait about 5 seconds for the status bar to show "Service Stopped".
    4. Configure your miner.
    5. On your miner, click the 'Validation' tab, and click the button to make sure it runs ok from a console.
    6. Click the menu item Service->Start
      - After the service is started, you should see your miner's output trickling into the miner's status box.
    7. Done.
      - You can now log out of windows and let your miner work behind the scenes!

KNOWN ISSUES

    On some NVIDIA cards, OpenCL doesn't detect properly in the miners when they are run from a service. I haven't found a resolution to this yet, but you may want to try changing the account the service runs under, or try adjusting some input arguments.

SUPPORT
To report an issue, please PM me or create an issue ticket on codeplex. Feel free to send suggestions/comments.

If you like the project, please consider donating to address: 17psYruA7Z1m2S5zwmD8JEQyqGk8nes95V

Enjoy!
Jump to: