Post
Topic
Board Mining (Altcoins)
Re: [GUIDE] Setup your own Ethereum mining pool.
by
Ahrcoin
on 07/01/2018, 22:17:35 UTC
Hi

I'm trying to set up the open-ethereum-pool. I followed the guide but I always end in the following error up when I try to access the frontend url:

Error:

Stats API Temporarily Down
Usually it's just a temporal issue and mining is not affected.

Can someone help me on this?

Thx for answering
how fix this?

There are a couple things to check:

First, go to your environment.js located in /open-ethereum-pool/www/config and ensure you put your local ip address or domain name into the API section here:

 APP: {
      // API host and port
      ApiUrl: '//example.net/',

make sure you put it in the format of let say for my site it is "//musicmine.us:8080"



Then check your config.json file and ensure the API section is either filled out with the same domain and port or just leave it as 0.0.0.0:8080 (that is what mine is and it works)






Once you have ensured that is correct go to your nginx configuration.

I did not need to change anything in the nginx.conf

You need to update the default file under the sites-enabled folder to follow the guide provided.

The first thing in the file should be:

upstream api {
server 127.0.0.1:8080;
}



Then, you need to specify the path for your /open-ethereum-pool/www/dist directory

you will need to change the default path in the file to read:

root




The last thing is to add


        location /api {
                proxy_pass http://api;
        }

just after the default location code below:

 location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
        }





After this is completed your NGINX should be set up and you should see your site rather than API stats message.



Let me know if this works or if you still get the API stats message.  Message me and I can drop you my full source code for the nginx config stuff.





And as always while your building please feel free to support me by mining at Musicmine.us