Pages:
Author

Topic: ANUBIS - a CGMINER Web Frontend - page 3. (Read 83112 times)

newbie
Activity: 13
Merit: 0
January 13, 2014, 05:17:11 AM
Hi BTCtalk forum!

I posted most of the questions below in the Newbie forum yesterday as that was the only place I was allowed to post but none of my questions got answered so I'm re-posting the here, which is where I wanted to post them originally.

I've recently set up a mine running cgminer (3.8.2) under Debian (Jessie amd64) that has 30 Icarus USB block erupters attached. Every 2 or 3 days the erupters get ZOMBIEfied and I need to manually restart cgminer, then they run fine for another couple of days or so. Not ideal!

This situation has given rise to the following questions:

1 - Is ANUBIS capable of detecting and restarting cgminer for my Icarus mines when they get zombiefied?

2 - There seems to be at least 3 different forks of ANUBIS already. Is pshep's the best?

3 - What are ANUBIS's dependency version requirements (cgminer version, PHP, Mysql etc.)

I've already filed a ticket against ANUBIS on github before I've even tried it as the README doesn't explain what ANUBIS is or what features it has. I would also like to see the OP of this thread get updated to address these questions so people don't have to read 18+ pages of posts just to find out what ANUBIS can do!

Thanks for your help!
Hej
newbie
Activity: 6
Merit: 0
January 08, 2014, 07:03:07 AM
How do I solve the problem when I have two instances of cgminer running on one computer? Both instances have to run at different API ports, which is easy to accomplish, but in the Anubis settings you can only specify one API port per computer...
full member
Activity: 168
Merit: 100
January 08, 2014, 03:45:07 AM
Is there any...way to link cgminer API reporting to a single CGminer client?
IE:
Machine 1 has 3 instances of CGminer running (1 for each card) and they all report to Cgminer1 so that I can nest all the separate CGminers into a single Machine using Anubis, atm I have anubis setup where each GPU appears as a separate machine.
If I nest them into a single machine only the hash rate and information for the first card is reported , also since I am mining litecoins I managed to change mh/s to kh/s but the kh/s 5s is reporting %percentage in MH/s so it looks like im at 999999% instead of 99%.

Any pointers would be appreciated.
Thanks

Use a different API port for each instance.

I do have a different API port for each instance.
Setup:
One CgMiner Running for each card on one machine.
Different ports for each Cgminer for each card (ex:4028 4029 4030).
But the only way I can see them in Anubis is if I treat each of them as a different machine.
So my rigs show up as so in anubs
LTC1 Dev 1/3 temp /hash etc.
LTC2 Dev 1/3 temp /hash etc.
LTC3 Dev 1/3 temp /hash etc.
What I would like is, to have
Machine 1 Dev 3/3 temp / cumulative hash etc.
Then to be able to click on that and expand the host to see individual cards performance.

But I don't think it works when you run separate instances of CGMiner for each card.
Wink
If I run all three devices under one CGMiner, it will work, but I lose hash rate like that for some reason.

dwolfx, About 1000x times in calculations - change $Hash_Method to scrypt at func.inc.php:27.

$Hash_Method = "scrypt";
Yea i have that like that already.
Strange.
Problem is the kh/s 5s gives me readings like
460
102222.2 %
The kh/s is working right at 102% target.
kinda just need to move the decimal over for the h/s 5s.

Don't get why its fuxed not really a big deal just annoying.
http://postimg.org/image/gesilb931/
Trying to clean it up, don't have much time on hand to scan php lines for a fix.
hero member
Activity: 566
Merit: 500
January 07, 2014, 08:52:01 AM
Is there any...way to link cgminer API reporting to a single CGminer client?
IE:
Machine 1 has 3 instances of CGminer running (1 for each card) and they all report to Cgminer1 so that I can nest all the separate CGminers into a single Machine using Anubis, atm I have anubis setup where each GPU appears as a separate machine.
If I nest them into a single machine only the hash rate and information for the first card is reported , also since I am mining litecoins I managed to change mh/s to kh/s but the kh/s 5s is reporting %percentage in MH/s so it looks like im at 999999% instead of 99%.

Any pointers would be appreciated.
Thanks

Use a different API port for each instance.
sr. member
Activity: 357
Merit: 250
January 07, 2014, 08:49:21 AM
dwolfx, About 1000x times in calculations - change $Hash_Method to scrypt at func.inc.php:27.
full member
Activity: 168
Merit: 100
January 07, 2014, 04:12:22 AM
Is there any...way to link cgminer API reporting to a single CGminer client?
IE:
Machine 1 has 3 instances of CGminer running (1 for each card) and they all report to Cgminer1 so that I can nest all the separate CGminers into a single Machine using Anubis, atm I have anubis setup where each GPU appears as a separate machine.
If I nest them into a single machine only the hash rate and information for the first card is reported , also since I am mining litecoins I managed to change mh/s to kh/s but the kh/s 5s is reporting %percentage in MH/s so it looks like im at 999999% instead of 99%.

Any pointers would be appreciated.
Thanks
member
Activity: 81
Merit: 10
January 05, 2014, 05:48:51 AM
Code:
Warning: socket_read() [function.socket-read]: unable to read from socket [104]: Connection reset by peer in

Got this error. What does it mean? This for cgminer 3.8.5

Thanks.
sr. member
Activity: 357
Merit: 250
January 04, 2014, 08:04:18 PM
Thanks that did the trick but i just had to enable that extension,  the direction you gave are for Windows Install.
Oh, yes, forgot that you using linux. So .dll == .so. You fixed it - ok.

Line 695
Quote
global $$Hash_Method;
Look at my message #344 at this page (https://bitcointalksearch.org/topic/m.4192091)..
PS: delete database and recreate it.
newbie
Activity: 9
Merit: 0
January 04, 2014, 07:55:49 PM
After adding host with MH/s desired
Usual Summary is missing and following error
Host has been added !
Fatal error: Call to undefined function socket_create() in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 80

Add this line to your php.ini where your extensions declared:
Quote
extension                  = php_sockets.dll


Thanks that did the trick but i just had to enable that extension,  the direction you gave are for Windows Install. 

Does the email functionality work in Anubis?  If so how does it work? 

Now I am just getting errors on the host details page using P-Sheps build no error using MineNinja build.

Error underneath miner name
Notice: Undefined variable: Hash_Method in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 695
Notice: Undefined variable: Hash_Method in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 695
Notice: Undefined variable: Hash_Method in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 719
Line 695
Quote
global $$Hash_Method;
Line 719
Quote
if ($Hash_Method=='scrypt')

Error underneath devices
Notice: Undefined offset: 1 in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1053
Notice: Undefined offset: 2 in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1053
Notice: Undefined variable: difficulty in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1065
Line 1053
Quote
if ($pools_in_use[$pool_data_array['POOL']] == true)
Line 1065
Quote
".$rejected."
".$rejects."
sr. member
Activity: 357
Merit: 250
January 04, 2014, 10:41:06 AM
After adding host with MH/s desired
Usual Summary is missing and following error
Host has been added !
Fatal error: Call to undefined function socket_create() in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 80

Add this line to your php.ini where your extensions declared:
Quote
extension                  = php_sockets.dll
newbie
Activity: 9
Merit: 0
January 04, 2014, 05:14:26 AM
I used easyphp on Windows and was successful in setting up Anubis to monitor my rigs.  I was concerned with security as the easyphp was designed for developers.  I then choose to set up Apache, PHP, and MySQL on FreeBSD.  I think I am missing a setting for php, as I had to Allow PHP scripts starting with
Initial Anubis Page
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1111
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1112
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1113
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1114
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1115
Warning: Division by zero in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 1116

Quote
$sumrejects = round($data_totals['rejects'] / $data_totals['hosts'],1);
$sumdiscards = round($data_totals['discards'] / $data_totals['hosts'],1);
$sumstales = round($data_totals['stales'] / $data_totals['hosts'],1);
$sumgetfails = round($data_totals['getfails'] / $data_totals['hosts'],1);
$sumremfails = round($data_totals['remfails'] / $data_totals['hosts'],1);
$difficulty = round($data_totals['Diff1Accepts'] / $data_totals['VarDiffAccepts'],2);

After adding host without MH/s desired
Warning: PDO::exec(): SQLSTATE[HY000]: General error: 1366 Incorrect decimal value: '' for column 'mhash_desired' at row 1 in /usr/local/www/apache24/data/ANUBIS/addhost.php on line 18
FATAL: DB-Error: Incorrect decimal value: '' for column 'mhash_desired' at row 1
Quote
$updr = $dbh->exec($updq);


After adding host with MH/s desired
Usual Summary is missing and following error
Host has been added !
Fatal error: Call to undefined function socket_create() in /usr/local/www/apache24/data/ANUBIS/func.inc.php on line 80
Home page does not list information about host and add host button is missing

Quote
  $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
full member
Activity: 140
Merit: 100
January 03, 2014, 02:12:29 PM
excellent piece of software, i was so tired logging in with teamviewer to my 2 rigs to check the miners status...
sr. member
Activity: 357
Merit: 250
December 28, 2013, 05:17:45 PM
P_Shep, func.inc.php:695
Code:
global $$Hash_Method;
sr. member
Activity: 458
Merit: 250
beast at work
December 25, 2013, 06:37:49 PM
in my case it worked ONLY with:

Quote
"api-allow" : "W:127.0.0.1,W:192.168.88.0/24",
sid
newbie
Activity: 6
Merit: 0
December 24, 2013, 05:05:53 AM
Hi guys,

I installed anubis in order to check easier my mining rig. Unfortunately I can't to run it successfully.
I've added my hosts but get the following error:
BTC
   Connection to 127.0.0.1:4029 failed: 'Permission denied'
LTC
   Connection to 127.0.0.1:4028 failed: 'Permission denied'

I've tried with two different miners configs:
1st one:
"api-allow" : "W: 127.0.0.1,192.168.88.0/24",
"api-listen" : true,
"api-network" : true,
"api-mcast-port" : "4028",
"api-port" : "4028",

2nd one:
"api-listen" : true,
"api-port" : "4029",

I also tried running embedded miner.php from cgminer, I get this error in it:
Error getting device list: ERR: socket connect(0) failed

I'm not linux-guru guy so any help will be appreciated.

http://imgur.com/AQDFXf3
Best Regards and merry Christmas!
sr. member
Activity: 458
Merit: 250
beast at work
December 23, 2013, 07:53:05 PM
Thanks for your help P_Shep Smiley much appreciated.

I hope to see Anubis running on my network soon!



did you manage to make it work ? i`m getting the same error on minepeon.

newbie
Activity: 45
Merit: 0
December 19, 2013, 03:17:21 PM
set up standard wampserver for testing and mysql.

but getting these messages whenever i click a host

http://imgur.com/6h1cGfm,gLYbbpY

php settings have been set and other tips ive seen in this thread.
legendary
Activity: 1795
Merit: 1198
This is not OK.
December 18, 2013, 12:18:34 PM
an option in cgminer is to change the averaging time. by default that's 5 seconds. Anything else and anubis would show an error like that.

One thing I'm confused about is that it says error in index.php on line 364. Index.php only goes up to 132.
Hej
newbie
Activity: 6
Merit: 0
December 17, 2013, 07:48:19 PM
Did you change the default 5-second averaging foe another duration?

The index for that moving average is labels based on that time. Ordinarily it's 'MHS 5s', but if you change that parameter, the name of the index label will change, i.e. to 'MHS 10s' etc. Anubis just looks for 'MHS 5s'.
You can change to code pretty easily to suit your needs, just do a search/replace.

I don't copy. I have tried to add the host with or without any values in the MH/s desired field, but I still get the same errors. I have also tried to remove all variables that has connection to the desired mhs value, but it won't work...
legendary
Activity: 1795
Merit: 1198
This is not OK.
December 17, 2013, 01:09:32 PM
Did you change the default 5-second averaging foe another duration?

The index for that moving average is labels based on that time. Ordinarily it's 'MHS 5s', but if you change that parameter, the name of the index label will change, i.e. to 'MHS 10s' etc. Anubis just looks for 'MHS 5s'.
You can change to code pretty easily to suit your needs, just do a search/replace.
Pages:
Jump to: