Pages:
Author

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

full member
Activity: 186
Merit: 100
March 06, 2012, 07:55:23 PM
Thanks a lot P_Shep for implementing new functions into Anubis! These are a boon when tuning rigs!  Grin Also, thanks a lot to kano for working on the API in the first place!  Grin
legendary
Activity: 1795
Merit: 1198
This is not OK.
March 06, 2012, 07:48:01 PM
I see... interesting.
member
Activity: 61
Merit: 10
March 06, 2012, 06:55:39 PM
I think it should work with all of 5, and probably 4.
Probably some configuration issue fixed with the re-install.
PHP 5.2.x lacks native support for json_encode() and json_decode() functions. Just needed to upgrade PHP or install PECL extension and PECL JSON package.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 06, 2012, 04:19:33 PM
Ah well - yeah there is a log for that Smiley

/var/log/apache2/error.log (for debian/ubuntu etc)
 or
/var/log/httpd/error.log (for redhat/fedora etc)
 or
... not sure where else for any others.
legendary
Activity: 1795
Merit: 1198
This is not OK.
March 06, 2012, 03:06:17 PM
I think it should work with all of 5, and probably 4.
Probably some configuration issue fixed with the re-install.
member
Activity: 61
Merit: 10
March 06, 2012, 02:54:29 PM
Solved now. I was using PHP 5.1.6, upgraded to 5.3.3, now it works
legendary
Activity: 1795
Merit: 1198
This is not OK.
March 06, 2012, 01:22:59 PM
Are sockets enabled in PHP?
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 06, 2012, 10:34:08 AM
webserver is running on 192.168.0.1
cgminer is running on 192.168.0.2

Code:
cgminer.exe 
--api-listen ^
--api-allow W:192.168.0.1 ^
--api-network

Firewalls are disabled. Workers are not showing up on anubis. What am I missing?

Just an aside ...

You don't need "--api-network" since it is ignored if you use "--api-allow"

and you can also use W:192.168.0/24 just to check the IP addresses are correct

also note (as the README says) if you also want to talk to cgminer from the cgminer machine you need to add ",W:127.0.0.1"
member
Activity: 61
Merit: 10
March 06, 2012, 09:13:48 AM
webserver is running on 192.168.0.1
cgminer is running on 192.168.0.2

Code:
cgminer.exe 
--api-listen ^
--api-allow W:192.168.0.1 ^
--api-network

Firewalls are disabled. Workers are not showing up on anubis. What am I missing?

 
sr. member
Activity: 406
Merit: 250
March 05, 2012, 02:30:48 PM
...

Sweet, guess that's something new.  I'll get it going.

EDIT:  Bingo Smiley
Actually I added it 2 weeks ago Smiley
So it's been in the releases since 2.3.0 (11 days ago)

In case it wasn't obvious, the idea is that you have to give extra access if you want to allow access to change your cgminer ...
including shut down cgminer, turn off the fans, mine on some other pool with a different username and password, over volt the GPU and destroy it ... things like that

I realised it was a security issue/hole that needed to be closed for anyone using cgminer and a new command defined to allow people to decide to give the extra write/privileged access

So I added the extra --api-allow argument and the W: option

The old options still work ... almost as before ... except you can only successfully access commands that only report cgminer info.
All other cgminer API commands (that change cgminer) return "Access denied to '%s' command" unless the IP address has the extra W: access

Edit: posted in this thread 13 days ago Smiley
https://bitcointalksearch.org/topic/m.760859

Yar, moved from CGMiner 2.2.7 to 2.3.1-2 without reading too much into the changelog.  I was reading on the CGMiner home thread about --api-allow, but it didn't give any hint towards W: giving write privileges.  I'm completely tracking you with the need for security; great job.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 05, 2012, 08:27:09 AM
...

Sweet, guess that's something new.  I'll get it going.

EDIT:  Bingo Smiley
Actually I added it 2 weeks ago Smiley
So it's been in the releases since 2.3.0 (11 days ago)

In case it wasn't obvious, the idea is that you have to give extra access if you want to allow access to change your cgminer ...
including shut down cgminer, turn off the fans, mine on some other pool with a different username and password, over volt the GPU and destroy it ... things like that

I realised it was a security issue/hole that needed to be closed for anyone using cgminer and a new command defined to allow people to decide to give the extra write/privileged access

So I added the extra --api-allow argument and the W: option

The old options still work ... almost as before ... except you can only successfully access commands that only report cgminer info.
All other cgminer API commands (that change cgminer) return "Access denied to '%s' command" unless the IP address has the extra W: access

Edit: posted in this thread 13 days ago Smiley
https://bitcointalksearch.org/topic/m.760859
sr. member
Activity: 406
Merit: 250
March 05, 2012, 12:36:58 AM
need to enable the 'write' privileges to the webhost. See the cgminer documentation.

Code:
--api-allow         Allow API access (if enabled) only to the given list of [W:]IP[/Prefix] address[/subnets]
                    This overrides --api-network and you must specify 127.0.0.1 if it is required
                    W: in front of the IP address gives that address privileged access to all api commands
--api-description   Description placed in the API status header (default: cgminer version)
--api-listen        Listen for API requests (default: disabled)
                    By default any command that does not just display data returns access denied
                    See --api-allow to overcome this
--api-network       Allow API (if enabled) to listen on/for any address (default: only 127.0.0.1)
--api-port          Port number of miner API (default: 4028)

Sweet, guess that's something new.  I'll get it going.

EDIT:  Bingo Smiley
legendary
Activity: 1795
Merit: 1198
This is not OK.
March 05, 2012, 12:34:44 AM
need to enable the 'write' privileges to the webhost. See the cgminer documentation.

Code:
--api-allow         Allow API access (if enabled) only to the given list of [W:]IP[/Prefix] address[/subnets]
                    This overrides --api-network and you must specify 127.0.0.1 if it is required
                    W: in front of the IP address gives that address privileged access to all api commands
--api-description   Description placed in the API status header (default: cgminer version)
--api-listen        Listen for API requests (default: disabled)
                    By default any command that does not just display data returns access denied
                    See --api-allow to overcome this
--api-network       Allow API (if enabled) to listen on/for any address (default: only 127.0.0.1)
--api-port          Port number of miner API (default: 4028)
sr. member
Activity: 406
Merit: 250
March 04, 2012, 06:01:41 PM
Just clone'd the latest into a folder...somehow I'm missing all the edit buttons and have no way of controlling CGMiner from the page.  Using CGMiner version 2.3.1-2 Windows

Missing in FF, Chrome and IE...any thoughts ?
full member
Activity: 186
Merit: 100
March 03, 2012, 06:29:15 PM
Just for everyone's information, if you use syslog-logging in cgminer, it won't provide 5-second data via the API. Should be disabled in cgminer's config. Haven't really looked into it, but seems like cgminer's bug...
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 02, 2012, 05:41:28 PM
Found extra coins in my account. Thank you whoever Smiley
... and if you need this:
https://bitcointalksearch.org/topic/m.775068
Feel free to pass some around Smiley

Tell you what, when my BFL's arrive I'll throw something your way. With my current 0.1 BTC/day, I'll take whatever I can get Wink

(What with the extension not being too useful until they DO arrive!) Smiley
Well I did say "IF you need this" Smiley

Plural BFL - that will be a big jump!
(2 would be 10x your current)
legendary
Activity: 1795
Merit: 1198
This is not OK.
March 02, 2012, 01:23:38 PM
Found extra coins in my account. Thank you whoever Smiley
... and if you need this:
https://bitcointalksearch.org/topic/m.775068
Feel free to pass some around Smiley

Tell you what, when my BFL's arrive I'll throw something your way. With my current 0.1 BTC/day, I'll take whatever I can get Wink

(What with the extension not being too useful until they DO arrive!) Smiley
legendary
Activity: 1134
Merit: 1005
March 02, 2012, 10:23:30 AM
Quote

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows

Dude, seriously, what makes you think the person wants to run APACHE as their Webserver? What makes you think that the only thing he needs to run "better" is Anubis on PHP? Did it ever occur to you that he also needs to run something else which is, as you say, BETTER SUITED, for running on Windows rather than Linux.

And dude, I can't see that... Cross-platform, ever heard of that? We've been running Apache on all platforms since 1997 and NT 4.0 and it has been working fine.

End of story.
Well said. If Windows is "uesless", then why does Microsoft keep making billions off it every year?
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
March 02, 2012, 08:31:24 AM
Found extra coins in my account. Thank you whoever Smiley
... and if you need this:
https://bitcointalksearch.org/topic/m.775068
Feel free to pass some around Smiley
full member
Activity: 186
Merit: 100
March 02, 2012, 02:06:25 AM
Quote

usesless is not a word.

p.s. Linux is much better suited to run apache web server and php then Windows server 2003, and if you cant see that then your just as usesless as windows

Dude, seriously, what makes you think the person wants to run APACHE as their Webserver? What makes you think that the only thing he needs to run "better" is Anubis on PHP? Did it ever occur to you that he also needs to run something else which is, as you say, BETTER SUITED, for running on Windows rather than Linux.

And dude, I can't see that... Cross-platform, ever heard of that? We've been running Apache on all platforms since 1997 and NT 4.0 and it has been working fine.

End of story.
Pages:
Jump to: