bsharper / cgweb

GNU General Public License v3.0
14 stars 5 forks source link

access denied #1

Open brandonhon opened 10 years ago

brandonhon commented 10 years ago

cannot add pools or change any of the commands. keep getting access denied.

bsharper commented 10 years ago

Make sure you have API write access enabled when you start cgminer. You should have these arguments when you start it: --api-listen --api-network --api-allow W:192.168.1.*/24

Can you post how you're running cgminer? Just remove anything personally identifiable.

brandonhon commented 10 years ago

cgminer --api-listen --api-network --api-allow 192.168.1.### -o http://bitcoins.com -u testing.worker1 -p password -I 0

bsharper commented 10 years ago

What happens if you hit http://SERVERURL/rpc_core.php?update ? It should show a big block of JSON.

brandonhon commented 10 years ago

no json, all it shows is this:

{"worker1":"error"}

v\r

Brandon Honeycutt Webmaster - theHoneycuttz.com

On Sun, Aug 25, 2013 at 10:47 PM, bsharper notifications@github.com wrote:

What happens if you hit http://SERVERURL/rpc_core.php?update ? It should show a big block of JSON.

— Reply to this email directly or view it on GitHubhttps://github.com/bsharper/cgweb/issues/1#issuecomment-23242513 .

bsharper commented 10 years ago

What does your server-config.json file look like?

brandonhon commented 10 years ago

It's the default with the ip of my worker

GNU nano 2.2.6        File: server-config.json                       

{

        "worker_ips":

        {

                "worker1": "192.168.1.139"

        },

        "tableOptions": {

                "tableClass":"results",

                "workerHeaders": [["Status", "scanCol"], ["Worker", "w$

                "totalColumns": ["MHS av", "MHS 5s"],

                "linkColumns": ["Worker", "GPU Clock", "Memory Clock",$

        }

}

v/r Brandon H. - Mobile

On Tue, Aug 27, 2013 at 9:47 PM, bsharper notifications@github.com wrote:

What does your server-config.json file look like?

Reply to this email directly or view it on GitHub: https://github.com/bsharper/cgweb/issues/1#issuecomment-23386374

bsharper commented 10 years ago

What version of CGminer are you using?

brandonhon commented 10 years ago

the latest version on github

v\r

Brandon Honeycutt Webmaster - theHoneycuttz.com

On Tue, Aug 27, 2013 at 10:21 PM, bsharper notifications@github.com wrote:

What version of CGminer are you using?

— Reply to this email directly or view it on GitHubhttps://github.com/bsharper/cgweb/issues/1#issuecomment-23387330 .

bsharper commented 10 years ago

Try running cgminer unrestricted by removing the --api-allow option

cgminer --api-listen --api-network ...

Let me know if it still doesn't show up.

brandonhon commented 10 years ago

same thing. no matter what i try to change i get an access denied option.

v\r

Brandon Honeycutt Webmaster - theHoneycuttz.com

On Fri, Aug 30, 2013 at 9:34 PM, bsharper notifications@github.com wrote:

Try running cgminer unrestricted by removing the --api-allow option

cgminer --api-listen --api-network ...

Let me know if it still doesn't show up.

— Reply to this email directly or view it on GitHubhttps://github.com/bsharper/cgweb/issues/1#issuecomment-23599202 .

brandonhon commented 10 years ago

figured it out. you need to add the appropriate group access to the ip allowed. for instance:

--api-allow 192.168.0.1 --api-allow W:192.168.0.1 - here the 'W' allows all access.

v\r

Brandon Honeycutt Webmaster - theHoneycuttz.com

On Mon, Sep 2, 2013 at 9:28 AM, H., Brandon bh@thehoneycuttz.com wrote:

same thing. no matter what i try to change i get an access denied option.

v\r

Brandon Honeycutt Webmaster - theHoneycuttz.com

On Fri, Aug 30, 2013 at 9:34 PM, bsharper notifications@github.comwrote:

Try running cgminer unrestricted by removing the --api-allow option

cgminer --api-listen --api-network ...

Let me know if it still doesn't show up.

— Reply to this email directly or view it on GitHubhttps://github.com/bsharper/cgweb/issues/1#issuecomment-23599202 .

bsharper commented 10 years ago

Great! I'll update the readme to make sure to mention that. I'm experimenting with an updated version that should be much faster that uses Node.js.

brandonhon commented 10 years ago

Sweet. I'm about to setup a mining farm and I am looking for something to remote monitor. This works great

v/r Brandon H. - Mobile

On Mon, Sep 2, 2013 at 2:58 PM, bsharper notifications@github.com wrote:

Great! I'll update the readme to make sure to mention that. I'm experimenting with an updated version that should be much faster that uses Node.js.

Reply to this email directly or view it on GitHub: https://github.com/bsharper/cgweb/issues/1#issuecomment-23676377