# Set up your own private stratum pool

**URL:** <https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043>\
**Category:** Mining\
**Created:** [November 24, 2016, 2:59pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043 "2016-11-24T14:59:01Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 4, 2016, 4:14pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/161 "2016-12-04T16:14:02Z")

</div>

Are you running the script or manually starting zcashd?

Sorry I’m on my mobile phone so I couldn’t see the previous post… I could ssh later when I get home and take a look at you setup if you want!

If so just pm me

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 4, 2016, 4:28pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/162 "2016-12-04T16:28:59Z")

</div>

> [@megacrypto](#):
>
> Are you running the script or manually starting zcashd?

@megacrypto  
I run the script , now i removed ./root , and its ok , it connected.  
thanks for help.

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 4, 2016, 8:01pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/163 "2016-12-04T20:01:25Z")

</div>

> [@streamview](#):
>
> I run the script , now i removed ./root , and its ok , it connected.

yes of course :))) if you are on root then it should not be in the path … sorry i missed that … was reading off my mobile !!!

glad you got it working :)))

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 5, 2016, 12:03am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/164 "2016-12-05T00:03:48Z")

</div>

now I am able to connect , but no new job received. my server does not send jobs to miner. any idea why ?  
is there any test i have to do ?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 5, 2016, 9:30am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/165 "2016-12-05T09:30:54Z")

</div>

> [@streamview](#):
>
> now I am able to connect , but no new job received. my server does not send jobs to miner. any idea why ?is there any test i have to do ?

when you connect to the pool (“screen -r zecpool”) do you see it picking up the new incoming blocks? it should every minute or so say something like “new block xxxxx …” or something like that (i dont have it running right now so i cant really get you the exact msg it says")

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 5, 2016, 11:32am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/166 "2016-12-05T11:32:52Z")

</div>

> [@megacrypto](#):
>
> when you connect to the pool (“screen -r zecpool”) do you see it picking up the new incoming blocks?

@megacrypto

loaded 0 shares from shares.raw file  
loaded 0 payouts from payouts.raw.old file  
loaded 0 payouts from payouts.raw file  
loaded 0 rounds from db  
loaded 0 user balance data from db

- found partition ~/pool.zcash/workerStats/2016.12 for ~/pool.zcash/workerStats
- found partition ~/pool.zcash/poolstats/2016.12 for ~/pool.zcash/poolstats  
: Pool backend started, mode is MASTER  
: Pool fee of 1% to t1uuxxxxxxxxxxxxxxxxxxxxxxxxx  
totalQueued: 0  
totalRequested: 0  
 getBlockTemplate call failed  
i think i found something.:  
when I run :

> root@localhost:~/poolcore/x86\_64-Linux/poolrpccmd# ./poolrpccmd p2p://127.0.0.1:12201 getinfo  
> I get :  
> Error: connecting error

and when I ping my public Ip from the terminal , it doesn’t find it.  
so i think i have routing problem.

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 5, 2016, 12:50pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/167 "2016-12-05T12:50:32Z")

</div>

i think the frontend is able to connect to the zcashd …

in the bash script can you change the config files path to the absolute path … i believe yours should be something like:

> /usr/bin/screen -dmS “zecpool” ./ZEC/pool\_frontend\_zcash/x86\_64-Linux/pool\_frontend\_zcash /root/.zcash/zcash.cfg

and also for the poolrestapi line

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 6, 2016, 1:17am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/168 "2016-12-06T01:17:10Z")

</div>

@megacrypto  
thanks for all your help. finally it worked.  
i used this batch ffile

```
 #!/bin/bash
   ./zcash/src/zcashd -p2pport=12201
   ./pool_frontend_zcash/x86_64-Linux/pool_frontend_zcash /root/.zcash/zcash.cfg
  ./poolrestapi/x86_64-Linux/poolrestapi /root/.zcash/poolrestapi.cfg
   sudo /home/streamview/nginx/sbin/nginx 

```

now i will move the web interface 🙂

---

<div class="post-metadata">

**Author:** ![zcashslacker](https://avatars.discourse-cdn.com/v4/letter/z/8491ac/32.png) [@zcashslacker](https://forum.zcashcommunity.com/u/zcashslacker)\
**Post date:** [December 6, 2016, 3:07am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/169 "2016-12-06T03:07:41Z")

</div>

Screenshots anyone of a successul run here on this, thinking and reading. Got both slaves up and running now so might as well form a pool too 😉

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 6, 2016, 11:06am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/170 "2016-12-06T11:06:48Z")

</div>

you can always check it live running stable on [www.zogpool.org](http://www.zogpool.org) 😉

---

<div class="post-metadata">

**Author:** ![voxelot](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voxelot/32/571_2.png) [@voxelot](https://forum.zcashcommunity.com/u/voxelot)\
**Post date:** [December 6, 2016, 6:06pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/171 "2016-12-06T18:06:52Z")

</div>

> [@megacrypto](#):
>
> you can always check it live running stable

I was about to say that or just scroll up on all of the awesome SS you have posted in this thread. Great job btw with all of this. Running zogpool has not been easy.

Advise:

- Use a crontab to restart the rest api ~every 5-10 minutes (it crashes often)
- Crontab a script to check to make sure the pool\_frontend\_zcash proc is running every minute and start it if not.
- I havent done a check for zcashd to be alive and reboot but zcashd has only crashed i think once on me in two weeks.

Cheers

---

<div class="post-metadata">

**Author:** ![s3479](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@s3479](https://forum.zcashcommunity.com/u/s3479)\
**Post date:** [December 6, 2016, 10:47pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/172 "2016-12-06T22:47:08Z")

</div>

Can someone explain why a mining rig rental rig cannot connect to this pool. I rent rigs when I need a little more hash power at times. I tried to connect 2 of them to my pool and they will not connect. Rental site checks the address & connection string and are ok, but cannot connect the rigs “broken pool”, so I end up pointing somewhere else. My personal rigs in & out of network and other miner rigs connect fine. Rigs from [Mining Rig Rentals | Equihash/zcash Mining Rigs](https://www.miningrigrentals.com/rigs/equihash) can’t connect to the pool. Anyone know why?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 6, 2016, 11:02pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/173 "2016-12-06T23:02:02Z")

</div>

your personal rigs are within your network, right?

can you post your pool’s address … I can see if i would connect?!

---

<div class="post-metadata">

**Author:** ![funnyboy027](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@funnyboy027](https://forum.zcashcommunity.com/u/funnyboy027)\
**Post date:** [December 7, 2016, 3:56am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/174 "2016-12-07T03:56:13Z")

</div>

what is the minimum hardware requirement, a VPS with 1GB RAM is enough or not?

---

<div class="post-metadata">

**Author:** ![smith88](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/smith88/32/3091_2.png) [@smith88](https://forum.zcashcommunity.com/u/smith88)\
**Post date:** [December 7, 2016, 5:01am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/175 "2016-12-07T05:01:02Z")

</div>

Thanks dear OP this is pretty well laid out!

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 7, 2016, 10:17am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/176 "2016-12-07T10:17:00Z")

</div>

dont think that 1GB is enough … as far as i understand the zcashd needs some RAM to be able to process payment transactions in a timely manner … i run mine with 4GB

---

<div class="post-metadata">

**Author:** ![GreaterNinja](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@GreaterNinja](https://forum.zcashcommunity.com/u/GreaterNinja)\
**Post date:** [December 7, 2016, 12:36pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/177 "2016-12-07T12:36:00Z")

</div>

The requirements say that you need 4gb ram and I think 2 cpu cores.

However, mine is running on digital ocean and got 512 mb ram instance.  
I created a 5 gb swap file and enabled it (ssd). A 3.5 -4gb swap should be all you really need.

sudo sysctl vm.swappiness=10

It takes a little longer to install, but my pool seems to be working fine and is quite responsive. I’d have to look at memory and cpu usage more to determine if the physical ram is really necessary.  
Alas, even with 4-5k sols/s no blocks found. ☹ This stratum setup would be awesome for Ethereum solo mining, so I may add that feature.  
A little heads up is that it initially took me a good day to figure out this guide. Even as someone who has setup lamp, pxe and many other linux servers in the past. Megacrypto did an amazing job, regardless.

> **[How To Add Swap Space on Ubuntu 16.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04)**
>
> One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap spa…

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 7, 2016, 1:38pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/178 "2016-12-07T13:38:12Z")

</div>

> [@GreaterNinja](#):
>
> This stratum setup would be awesome for Ethereum solo mining, so I may add that feature.

If you do that, I hope you share it with us :)))))

---

<div class="post-metadata">

**Author:** ![voxelot](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voxelot/32/571_2.png) [@voxelot](https://forum.zcashcommunity.com/u/voxelot)\
**Post date:** [December 7, 2016, 4:39pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/179 "2016-12-07T16:39:55Z")

</div>

Doesn’t this pool default with ETH support? Comes with Etc, XPM, and ZEC already.

[http://coinsforall.io/#!/coin/ETC](http://coinsforall.io/#!/coin/ETC)

ETC should run the same as ETH. Just boot up a wallet and give it a try.

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 7, 2016, 8:10pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/180 "2016-12-07T20:10:19Z")

</div>

Will give it a try and see how it goes :))

[Previous page](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043.md?page=8)

[Next page](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043.md?page=10)
