fancoder / cryptonote-universal-pool

Mining pool for all CryptoNote based coins such as Bytecoin, duckNote, Monero, and Fantomcoin.
http://cryptonotemining.org
GNU General Public License v2.0
335 stars 308 forks source link

Website = Nothing loads. Something Missing? #83

Open gaylordbendylover opened 6 years ago

gaylordbendylover commented 6 years ago

So i've built the back end of the pool and it works fine (you can point miners at it and see the jobs coming in and shares being accepted). The front end however does not work properly. The issue is that something is misconfigured in the template files, or i'm not configuring them properly somewhere. The symptoms are that no stats are pulled and the home page won't load anything. Sounds like an API issue, but my port is open, i've changed the var api line using IP's, https, x.x.x./api, amongst other stuff. Can anybody help out? here's the site as it currently sits:

https://moneromilk.com

here's my config.js file: var api = "http://moneromilk.com:8117"; var poolHost = "moneromilk.com"; var irc = "irc.freenode.net/#monero-pools"; var email = "support@moneromilk.com"; var cryptonatorWidget = ["XMR-BTC", "XMR-USD", "XMR-EUR"]; var easyminerDownload = "https://github.com/zone117x/cryptonote-easy-miner/rel$ var blockchainExplorer = "http://chainradar.com/XMR/block/{id}"; var transactionExplorer = "http://chainradar.com/mro/transaction/{id}";

Any suggestions or help would be awesome!

fra-pel commented 6 years ago

Hi, i have the same error.

my website/confi is:

var api = "http://127.0.0.1:8117";
var poolHost = "10.10.2.15";
var irc = "irc.freenode.net/#poolhost";
var email = "support__pool@gmail.com";
var cryptonatorWidget = ["{symbol}-BTC", "{symbol}-USD", "{symbol}-EUR"];
var easyminerDownload = "https://github.com/zone117x/cryptonote-easy-miner/releases/";
var blockchainExplorer = "http://chainradar.com/{symbol}/block/{id}";
var transactionExplorer = "http://chainradar.com/{symbol}/transaction/{id}";
var themeCss = "themes/default-theme.css";

but when i launch "node init.js" the pool start correctly but the website i don't know how viewer it. Can you help me?

gaylordbendylover commented 6 years ago

What i do know is that the client sends the api request, not the web server, so it's an external call. That is to say that your "var api=..." line should be the external IP or FQDN of the site, and therefore your ext. fw needs to have that port opened and forwarded to the host It should also be opened in Ubuntu's fw or whatever OS you're using:

$sudo ufw 8117 allow

(this applies to the mining ports as well)

I had mine working at one point, but broke it somewhere while i was "fixing" other things lol. Not sure what is broken at this point.

fra-pel commented 6 years ago

Thanks, but when i call via browser: http://10.10.2.15:8117 i get this message: Invalid API call in the browser.

gaylordbendylover commented 6 years ago

10.10.2.15 is not a public IP. You need to put in the public IP

gaylordbendylover commented 6 years ago

apparently the API doesn't work "as is" with SSL. working on that one next. Anyone know how to get the API to work with SSL?

gaylordbendylover commented 6 years ago

got it all working (without ssl). The only issue is that the HashRate chart is all skewed. Anyone have a fix for that? see the pool at:

http://moneromilk.com