Pages:
Author

Topic: cryptoGlance [v2.1] :: Open-source, self-hosted, multi-rig monitoring tool! - page 10. (Read 130259 times)

sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
I'm using the windows version.

When I go to http://MyIP/ajax.php?type=rigs&action=update&cache=0 I get 404 - Not found

Not sure if I'm doing right. The MyIP above is what I get from www.whatismyip.com.
sr. member
Activity: 298
Merit: 250
I changed and saved an IP address in the CryptoGlance manage rig settings and now all rigs in the constant "loading data" state. Pools and wallets came up fine. Did I somehow corrupt user files and need to rebuild from scratch? Or, is there an easier fix? Using v2.2.1-beta.

miners.json looks fine

What version are you using, Windows or Linux? If you know how to access CryptoGlance via a web browser, use this url: YOUR.IP.GOES.HERE/ajax.php?type=rigs&action=update&cache=0

Please PM me the results.
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
I changed and saved an IP address in the CryptoGlance manage rig settings and now all rigs in the constant "loading data" state. Pools and wallets came up fine. Did I somehow corrupt user files and need to rebuild from scratch? Or, is there an easier fix? Using v2.2.1-beta.

miners.json looks fine
legendary
Activity: 1736
Merit: 1006
@cryptoglance.

i just SSH in and copied the files from the update folder to the main html folder.. seems to work.
sr. member
Activity: 298
Merit: 250
...
My internal network is also 192.168.0.###, with this particular miner being 192.168.0.91, so i tried: W:192.168.0/24 as suggested by cryptoGlance.
...

There was a bug introduced (by someone else - the one time I didn't completely vet an API change by someone else external to cgminer - the addition of IPv6) that wasn't fixed until master cgminer 4.9.2

I've no idea who's cgminer fork you are using or if it is master.
If it isn't master then they may or may not have included the fix I put in before master 4.9.2 was released

In the bug case: if you did w:192.168.0/24 it wouldn't work but w:192.168.0.0/24 would work
(the ipv6 coder removed that 0 padding I had and commented for ipv4 in the code Tongue)

This was the fix:
https://github.com/ckolivas/cgminer/commit/b3b1fc3fb881d0760fe02c598d0907b1f1256d6f

Thanks for the heads up Kano!
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
...
My internal network is also 192.168.0.###, with this particular miner being 192.168.0.91, so i tried: W:192.168.0/24 as suggested by cryptoGlance.
...

There was a bug introduced (by someone else - the one time I didn't completely vet an API change by someone else external to cgminer - the addition of IPv6) that wasn't fixed until master cgminer 4.9.2

I've no idea who's cgminer fork you are using or if it is master.
If it isn't master then they may or may not have included the fix I put in before master 4.9.2 was released

In the bug case: if you did w:192.168.0/24 it wouldn't work but w:192.168.0.0/24 would work
(the ipv6 coder removed that 0 padding I had and commented for ipv4 in the code Tongue)

This was the fix:
https://github.com/ckolivas/cgminer/commit/b3b1fc3fb881d0760fe02c598d0907b1f1256d6f
sr. member
Activity: 298
Merit: 250
R:0/0 isn't all that bad - it's only read access.
But it does give anyone read access.

The problem is when people use W:0/0
(like bitmain defaults in their antminers ...)
That gives anyone access to change anything.

Thanks for the info and your great program Kano. I'm using your [CGMiner] => 4.9.2,  [API] => 3.6 and my goal is to allow cryptoGlance to be able to send commands to restart the miner etc.

My internal network is also 192.168.0.###, with this particular miner being 192.168.0.91, so i tried: W:192.168.0/24 as suggested by cryptoGlance.

But when I did, the browser interface miner status stayed blank no matter how many times I tried to refresh. I set it back to R:0/0 to get it to work again.

Should we be using something different than, or in a different format, than W:192.168.0/24?

Or could it have something to do with the API port left at 4028?


The Bitmain browser interface or CryptoGlance browser?
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
R:0/0 isn't all that bad - it's only read access.
But it does give anyone read access.

The problem is when people use W:0/0
(like bitmain defaults in their antminers ...)
That gives anyone access to change anything.

Thanks for the info and your great program Kano. I'm using your [CGMiner] => 4.9.2,  [API] => 3.6 and my goal is to allow cryptoGlance to be able to send commands to restart the miner etc.

My internal network is also 192.168.0.###, with this particular miner being 192.168.0.91, so i tried: W:192.168.0/24 as suggested by cryptoGlance.

But when I did, the browser interface miner status stayed blank no matter how many times I tried to refresh. I set it back to R:0/0 to get it to work again.

Should we be using something different than, or in a different format, than W:192.168.0/24?

Or could it have something to do with the API port left at 4028?

sr. member
Activity: 298
Merit: 250
will we see graphs for self-hosted version?
Graphs are on the roadmap, just no timeframe. Has to happen after we finish a way to do background tasks.



Running V2.1. All working great except wallet showing 1 BTC = 0 USD. So shows BTC value correctly but always shows $0 fiat value.
Update to v2.2.1-beta. Before we used to depend on a 3rd party platform,  but they have since shutdown. We have created our own api specificly for cryptoglance,  paying out of our own pocket to keep it online for users as we feel its very important information Smiley


Upgrading to beta version is working but BTC price off by 20USD. Why don't you use the free public use API from https://bitcoinaverage.com/api? It's showing the correct conversion rate and may save you money.
Our prices are calculated the same way they calculate theirs, however a few of our exchanges are reporting higher prices. Most likely just a difference of exchanges last sell price.

We would like to keep costs low, however we convert all coins in cryptoglance to any other coin. EG: BURST to CAD, or BURST to RDD.
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now

Running V2.1. All working great except wallet showing 1 BTC = 0 USD. So shows BTC value correctly but always shows $0 fiat value.
Update to v2.2.1-beta. Before we used to depend on a 3rd party platform,  but they have since shutdown. We have created our own api specificly for cryptoglance,  paying out of our own pocket to keep it online for users as we feel its very important information Smiley


Upgrading to beta version is working but BTC price off by 20USD. Why don't you use the free public use API from https://bitcoinaverage.com/api? It's showing the correct conversion rate and may save you money.
hero member
Activity: 672
Merit: 500
will we see graphs for self-hosted version?
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
R:0/0 isn't all that bad - it's only read access.
But it does give anyone read access.

The problem is when people use W:0/0
(like bitmain defaults in their antminers ...)
That gives anyone access to change anything.
sr. member
Activity: 298
Merit: 250
Aarons6, ill dig deeper into your issue in the next few days.


So i'm messing some more with the API stuff.

Coinmine (https://www2.coinmine.pl/) is powered by MPOS so i would of thought using the MPOS pool option would work for it, but it does not. Do i have the wrong url somehow or is the API perhaps still different?

I could give you an active API for it if you want to compare/interested in checking it out in the first place.
If you could PM me this information, i would gladly add support Smiley


Running V2.1. All working great except wallet showing 1 BTC = 0 USD. So shows BTC value correctly but always shows $0 fiat value.
Update to v2.2.1-beta. Before we used to depend on a 3rd party platform,  but they have since shutdown. We have created our own api specificly for cryptoglance,  paying out of our own pocket to keep it online for users as we feel its very important information Smiley



I got to work by changing to --api-allow R0/0

Thanks for the guidance that showed me what switch to look at
I highly do NOT recommend using R:0/0. Anyone with your ip address can control your miner. I suggest you change this rule to be specific to your internal network.  For example,  my internal network is 192.168.0.###, so i use: W:192.168.0/24
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
I can see all of my S3s except for one that I upgraded with a kano cgminer. I get the notice that it must be offline but I know it's not from the pool stats and browser interface.

Has anyone else seen this problem and know how to fix?

Or, is only fix to go back to the old cgminer?

Sounds like the API isn't giving access to cryptoGlance. How is cgminer being ran on the s3? Is the config different or the command line?

When I look in the process section of the Antminer S3 GUI for 2 of my miners I see the following command based on my inputs:

cgminer --bitmain-options 115200:32:8 --bitmain-freq 18:225:0882 -o stratum.bitcoin.cz:3333 -O XXX.S35:S35 -o us1.ghash.io:3333 -O XXX.rigS35:S35 -o stratum.mining.eligius.st:3334 -O XXX_S35:S35 --api-listen --api-allow W:127.0.0.1 --bitmain-checkn2diff --bitmain-hwerror --bitmaintempoverctrl --quiet

cgminer --bitmain-options 115200:32:8:33:125:0983 -o stratum.bitcoin.cz:3333 -O XXX.S31:31 -o us1.ghash.io:3333 -O XXX.rigS31:31 -o stratum.mining.eligius.st:3334 -O XXX_S31:31 --api-listen --api-network --bitmain-checkn2diff --bitmain-hwerror --version-file /usr/bin/compile_time --queue 4096

The top one doesn't work; the bottom one does. Do I need to change something in the top one? Thanks.


Remote this part from the top one, see if it works: W:127.0.0.1

I got to work by changing to --api-allow R0/0

Thanks for the guidance that showed me what switch to look at
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
Running V2.1. All working great except wallet showing 1 BTC = 0 USD. So shows BTC value correctly but always shows $0 fiat value.
legendary
Activity: 1302
Merit: 1068
So i'm messing some more with the API stuff.

Coinmine (https://www2.coinmine.pl/) is powered by MPOS so i would of thought using the MPOS pool option would work for it, but it does not. Do i have the wrong url somehow or is the API perhaps still different?

I could give you an active API for it if you want to compare/interested in checking it out in the first place.
legendary
Activity: 1736
Merit: 1006
i saw an update and i took it.. but it seems to be stuck

Code:
==> Starting Update...Please be patient
==> Creating temporary directory to download update and unzip: update/v2.2.1-beta
==> Successfully created temporary directory!
==> Downloading: https://github.com/cryptoGlance/cryptoGlance-web-app/archive/nightly.zip
==> Download Successful!
==> Starting unzip process...
==> Unzipping archive to: update/v2.2.1-beta
==> Update Unzipped!
==> Deleting update archive file!
==> Deleted update archive file: /var/www/html/update/v2.2.1-beta.zip
----------
==> Updating cryptoGlance...
==> Deleting old files:

edit, ive rebooted and tried it several times.. i left it there for more then an hour and it wont go any farther.


You run ssh into that box and run:
ls -l /var/www/html/

Paste the output here

Code:
total 180
-rw-r--r-- 1 www-data www-data   955 Nov 30 17:03 ajax.php
-rw-r--r-- 1 www-data www-data  8077 Nov 30 17:03 CHANGELOG.md
d-wxr----t 2 www-data www-data  4096 Nov 30 17:03 css
-rw-r--r-- 1 www-data www-data  4062 Nov 30 17:03 debug.php
-rw-r--r-- 1 www-data www-data  1271 Nov 30 17:03 favicon.png
d-wxr----t 2 www-data www-data  4096 Nov 30 17:03 fonts
-rw-r--r-- 1 www-data www-data  1651 Nov 30 17:03 help.php
d-wxr----t 7 www-data www-data  4096 Nov 30 17:03 images
d-wxr----t 3 www-data www-data  4096 Nov 30 17:03 includes
-rw-r--r-- 1 www-data www-data  3428 Nov 30 17:03 index.php
-rw-r--r-- 1 www-data www-data   229 Nov 30 17:03 install-linux-dependencies.sh
d-wxr----t 6 www-data www-data  4096 Nov 30 17:03 js
-rw-r--r-- 1 www-data www-data 17542 Nov 30 17:03 LICENSE
-rw-r--r-- 1 www-data www-data  5288 Nov 30 17:03 login.php
d-wxr----t 2 www-data www-data  4096 Nov 30 17:03 Michelf
-rw-r--r-- 1 www-data www-data   160 Nov 30 17:03 permissionfix.sh
-rw-r--r-- 1 www-data www-data 14208 Nov 30 17:03 README.md
-rw-r--r-- 1 www-data www-data 26550 Nov 30 17:03 rig.php
-rw-r--r-- 1 www-data www-data 13028 Nov 30 17:03 settings.php
d-wxr----t 4 www-data www-data  4096 Nov 30 17:03 templates
drwxr-xr-x 3 www-data www-data  4096 Dec 18 02:24 update
-rw-r--r-- 1 www-data www-data 19814 Nov 30 17:03 update.php
drwxrwxrwx 6 www-data www-data  4096 Dec  6 12:24 user_data
sr. member
Activity: 298
Merit: 250
i saw an update and i took it.. but it seems to be stuck

Code:
==> Starting Update...Please be patient
==> Creating temporary directory to download update and unzip: update/v2.2.1-beta
==> Successfully created temporary directory!
==> Downloading: https://github.com/cryptoGlance/cryptoGlance-web-app/archive/nightly.zip
==> Download Successful!
==> Starting unzip process...
==> Unzipping archive to: update/v2.2.1-beta
==> Update Unzipped!
==> Deleting update archive file!
==> Deleted update archive file: /var/www/html/update/v2.2.1-beta.zip
----------
==> Updating cryptoGlance...
==> Deleting old files:

edit, ive rebooted and tried it several times.. i left it there for more then an hour and it wont go any farther.


You run ssh into that box and run:
ls -l /var/www/html/

Paste the output here
legendary
Activity: 1736
Merit: 1006
i saw an update and i took it.. but it seems to be stuck

Code:
==> Starting Update...Please be patient
==> Creating temporary directory to download update and unzip: update/v2.2.1-beta
==> Successfully created temporary directory!
==> Downloading: https://github.com/cryptoGlance/cryptoGlance-web-app/archive/nightly.zip
==> Download Successful!
==> Starting unzip process...
==> Unzipping archive to: update/v2.2.1-beta
==> Update Unzipped!
==> Deleting update archive file!
==> Deleted update archive file: /var/www/html/update/v2.2.1-beta.zip
----------
==> Updating cryptoGlance...
==> Deleting old files:

edit, ive rebooted and tried it several times.. i left it there for more then an hour and it wont go any farther.
sr. member
Activity: 298
Merit: 250
this is mining without GPU . Right Huh

No. This app monitors your mining gear.
Pages:
Jump to: