# 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:** 5

<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:** [November 29, 2016, 5:28pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/81 "2016-11-29T17:28:58Z")

</div>

you can always stop it , deleted the contents of the ./zcash folder (except the files we put there) and re-run it again … it will start from the beginning !!

# but dont delete zcash.conf , poolrestapi.cfg , zcash.cfg

the rest you can delete

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 5:31pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/82 "2016-11-29T17:31:22Z")

</div>

Ok ty i’ll try (20 charr)

---

<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:** [November 29, 2016, 5:35pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/83 "2016-11-29T17:35:53Z")

</div>

ok, see it. block height is what has to sync, correct?

---

<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:** [November 29, 2016, 5:36pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/84 "2016-11-29T17:36:30Z")

</div>

yup … 🙂

---

<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:** [November 29, 2016, 6:18pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/85 "2016-11-29T18:18:25Z")

</div>

is the #!/bin/bash correct?

> [@megacrypto](#):
>
> add the following:(there was an error here because of the editor uses ‘#’ as char for bold … sorry )
> 
> #!/bin/bash  
> echo “starting up ZEC Pool”  
> echo “Starting ZEC node”  
> /usr/bin/screen -dmS “zecnode” ./ZEC/zcash/src/zcashd -p2pport=12201  
> echo “Starting Frontend”  
> /usr/bin/screen -dmS “zecpool” ./ZEC/pool\_frontend\_zcash/x86\_64-Linux/pool\_frontend\_zcash ~/.zcash/zcash.cfg  
> echo “Starting Rest API”  
> /usr/bin/screen -dmS “zecapi” ./ZEC/poolrestapi/x86\_64-Linux/poolrestapi ~/.zcash/poolrestapi.cfg  
> echo “Starting Nginx”  
> sudo nginx/sbin/nginx

---

<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:** [November 29, 2016, 6:20pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/86 "2016-11-29T18:20:17Z")

</div>

yes thats seems right

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 6:55pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/87 "2016-11-29T18:55:08Z")

</div>

i’ve wanted to make everything from scratch but at this step cmake …/src -DROOT\_SOURCE\_DIR=/home/ivcelmik/ZEC i get this error

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.  
Please set them or make sure they are set and tested correctly in the CMake files:  
POOLCOMMON\_LIBRARY  
linked by target “pool\_frontend\_zcash” in directory /home/ivcelmik/ZEC/pool\_frontend\_zcash/src  
POOLCORE\_LIBRARY  
linked by target “pool\_frontend\_zcash” in directory /home/ivcelmik/ZEC/pool\_frontend\_zcash/src

– Configuring incomplete, errors occurred!  
See also “/home/ivcelmik/ZEC/pool\_frontend\_zcash/x86\_64-Linux/CMakeFiles/CMakeOutput.log”.  
See also “/home/ivcelmik/ZEC/pool\_frontend\_zcash/x86\_64-Linux/CMakeFiles/CMakeError.log”.

any sugestions

---

<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:** [November 29, 2016, 6:59pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/88 "2016-11-29T18:59:32Z")

</div>

delete all everything … leave

/home/ivcelmik/.zcash (empty it except the config files)  
/home/ivcelmik/.zcash-params

delete all the ZEC folder & download all again … they don’t take much time (only the fetch params & maybe the compile of zcash do)

---

<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:** [November 29, 2016, 8:24pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/89 "2016-11-29T20:24:02Z")

</div>

For those of you with your stratum pools up: If you type “Screen -r zecnode”, what does your solutions per second on the node say? To exit the screen safely do the following sequence:

1. hold ctrl and tap a
2. then release those keys, hold ctrl and tap d to detatch from screen.

Mine reports this:"  
Since starting this node 9 hours, 16 minutes, 2 seconds ago:

- You have validated 8110 transactions!
- You have contributed 0.0405 Sol/s on average to the network solution rate."

Yet on my stratum webpage it shows i’m hashing ~3500 h/s

Please let me know if your zecnode screen reports much higher numbers and if you are running gpu only.

---

<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:** [November 29, 2016, 8:31pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/90 "2016-11-29T20:31:23Z")

</div>

the pool handles all your hashing and not the node, so unless you are running the node with gen=1 which will mine on its own away from the pool, unless you have that, the Sols/s rate in the node won’t show much.

think of it like this, the pool is a layer on top of the node that is like one big miner working on its own, the node is only the medium to sync with the network.

and btw, i wouldn’t recommend doing the gen=1 on the pool server, it will just occupy the cpu with more processing with very little outcome

i hope this makes any sense 🙂

---

<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:** [November 29, 2016, 8:38pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/91 "2016-11-29T20:38:15Z")

</div>

good to know, thank you.

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 8:49pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/92 "2016-11-29T20:49:15Z")

</div>

I get this error

starting up ZEC Pool  
Starting ZEC node  
Starting Frontend  
Starting Rest API  
Starting Nginx  
nginx: [error] ngx\_http\_cxxrest\_pass\_handler: got destination: api\_backend

---

<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:** [November 29, 2016, 8:53pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/93 "2016-11-29T20:53:27Z")

</div>

this is not an error as it was pointed out … its just a debug msg 🙂

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 8:54pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/94 "2016-11-29T20:54:18Z")

</div>

So it’s working? 🙂 or?

---

<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:** [November 29, 2016, 8:56pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/95 "2016-11-29T20:56:03Z")

</div>

if you have zcashd node synced … then if you type screen -r zecpool you should see your pool in action 🙂

also browse to it from your web browser 😉

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 8:58pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/96 "2016-11-29T20:58:00Z")

</div>

it’s working i can acces it with myu local ip finally

---

<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:** [November 29, 2016, 9:04pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/97 "2016-11-29T21:04:22Z")

</div>

Wow! it is working. 😀 can’t believe I was able to get going. I learned a lot, but still need to learn more! This is so cool. Thank you for your help and I will be taking care of all!

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 9:06pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/98 "2016-11-29T21:06:43Z")

</div>

I the backend i still have the error : Error opening block database.

Do you want to rebuild the block database now?

---

<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:** [November 29, 2016, 9:09pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/99 "2016-11-29T21:09:53Z")

</div>

i really havent seen that error before … but we are on the zcash forum so no worries 🙂 this is more related to the zcashd node … so i would start a new thread with this and i’m sure you’ll get the solution right away.

but … have you waited until zcash was synced with the network ? if it did , it should look something like this:

 ![](https://global.discourse-cdn.com/zcash/original/2X/a/a6e862754bde63dfde7b541631aaf53e3d1b285e.png)

---

<div class="post-metadata">

**Author:** ![Ivcelmik83](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Ivcelmik83](https://forum.zcashcommunity.com/u/Ivcelmik83)\
**Post date:** [November 29, 2016, 9:13pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/100 "2016-11-29T21:13:26Z")

</div>

I’ll wait to sync and the we’ll see if this error still exist

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

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