Set up your own private stratum pool

nginx: [error] ngx_http_cxxrest_pass_handler: got destination: api_backend

It’s not a error !!! It’s debug message

Issue github

1 Like

Now I have not displayed Worker to Pool

What am I doing wrong?

the frontend sometimes does not refresh … try reloading it and it will show the data, usually this happens in the coins page … and i’m guessing thats why the msg shows up

and thanks for pointing that debug msg thing :slight_smile:

if you check zogpool you will notice that their coins page and client pages update much better than the original code … i’m guessing they have done some enhancements on these processes ( @voxelot )

megacrypto

Many thanks

1 Like

Who used the pool deployment Zogpool?

I get an error:

SUDO password:
[WARNING]: provided hosts list is empty, only localhost is available

[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is ‘sudo’ (default). This feature will be removed in a
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [Install Zcash pool software] *********************************************
skipping: no hosts matched

PLAY RECAP *********************************************************************

Yea… I’m haveng issues with correct users / stats in webpage.
Sometimes it says no clients, then suddenly there appear 5 clients…
Then zero again, etc…
Seems something is bad with that.

Btw pool is working fine, just not showing correct stats all time…
Will be nice to have more info of that part, and some stats graphics and so…
Clients like to see their stats at all time ^^

i came across this today:

and was going to test it when i get home and see if this takes care of some those error msgs!!

Hey guys, I get this when I run make -j5 on the poolcore step:
Any help would be appreciated.

sam@zcashpool:~/ZEC/poolcore/x86_64-Linux$ make -j5
[ 22%] Built target poolcommon
[ 27%] Building CXX object zcash/CMakeFiles/poolrpczcash.dir/zcash.cpp.o
[ 38%] Built target poolrpccmd
[ 88%] Built target poolcore
In file included from /home/sam/ZEC/poolcore/src/zcash/zcash.cpp:3:0:
/home/sam/ZEC/zcash/src/main.h:10:35: fatal error: config/bitcoin-config.h: No such file or directory
compilation terminated.
zcash/CMakeFiles/poolrpczcash.dir/build.make:86: recipe for target ‘zcash/CMakeFiles/poolrpczcash.dir/zcash.cpp.o’ failed
make[2]: *** [zcash/CMakeFiles/poolrpczcash.dir/zcash.cpp.o] Error 1
CMakeFiles/Makefile2:250: recipe for target ‘zcash/CMakeFiles/poolrpczcash.dir/all’ failed
make[1]: *** [zcash/CMakeFiles/poolrpczcash.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
sam@zcashpool:~/ZEC/poolcore/x86_64-Linux$

Build zcash before you try to use its headers as the compiler is clearly yelling at you to do.

I did build zcash before. I’ll try again, thanks

There is no solution in that issue yet.

I think I see what I did. I configured zcash, and shouldn’t have. Correct?

i thought it should’ve been:

auto result = request(client, fbb, 3000000, “getBlockByHash”, buffer.get(), size);

thats what i was going to test

That will just result in an error call to “getBlockByHash”

The real clue to solving this is hunting down why finding a block makes it go away.

ahaa …trade one error for another :))))))

but i guess that would be the right error :smiley:

Ok, I started over. Fresh install. Following the steps above, did the 3 compile steps for zcash before the config4cpp. Am I missing something in those steps? I still get the error in make on poolcore:

sam@zcashpool:~/ZEC/poolcore/x86_64-Linux$ make -j5
[ 5%] Generating pool_generated.cpp, pool_generated.h
Scanning dependencies of target poolrpczcash
Scanning dependencies of target poolcommon
[ 11%] Building CXX object zcash/CMakeFiles/poolrpczcash.dir/__/poolrpc/poolrpc.cpp.o
[ 16%] Building CXX object zcash/CMakeFiles/poolrpczcash.dir/zcash.cpp.o
[ 22%] Building CXX object poolcommon/CMakeFiles/poolcommon.dir/pool_generated.cpp.o
[ 27%] Building CXX object poolcommon/CMakeFiles/poolcommon.dir/poolapi.cpp.o
In file included from /home/sam/ZEC/poolcore/src/zcash/zcash.cpp:3:0:
/home/sam/ZEC/zcash/src/main.h:10:35: fatal error: config/bitcoin-config.h: No such file or directory
compilation terminated.
zcash/CMakeFiles/poolrpczcash.dir/build.make:86: recipe for target ‘zcash/CMakeFiles/poolrpczcash.dir/zcash.cpp.o’ failed
make[2]: *** [zcash/CMakeFiles/poolrpczcash.dir/zcash.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs…
CMakeFiles/Makefile2:250: recipe for target ‘zcash/CMakeFiles/poolrpczcash.dir/all’ failed
make[1]: *** [zcash/CMakeFiles/poolrpczcash.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 33%] Linking CXX static library libpoolcommon.a
[ 33%] Built target poolcommon
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
sam@zcashpool:~/ZEC/poolcore/x86_64-Linux$

steps should be:

  1. compile zcash without the patch
  2. compile config4cpp
  3. compile flatbuffers
  4. compile libp2p
  5. compile poolcore
  6. compile pool_frontend_zcash
  7. compile poolrestapi
  8. compile nginx
  9. patch zcash & edit Makefiles
  10. compile zcash again (just make -j$(nproc))
  11. copy files
  12. run zcashd alone until its synced with network
  13. stop zcashd and for simplicity run the bash script

Yes, I’m following your steps as you have them listed. Compile zcash without patch- have not got to the patch yet( only did these this time: cd zcash ./zcutil/fetch-params.sh ./zcutil/build.sh -j$(nproc) ). compile config4cpp step runs fine, flatbuffers has a warning, libp2p has lots of warnings but I think it does compile, poolcore is as above fatal error, I don’t think it compiled. Did it? Is what I listed is what it was suppose to do?

i dont think it did … if you want, i could ssh into your machine and take a look … PM if so

I think I’m too new to PM. But anyhow, I ran it all a 3rd time(deleted the ZEC, remake it) complied zcash again, ran all the makes with no problems, just a few warnings but they did complete. I got down to this step

made the nginx dir in /home/sam but I had to cd ZEC to get to nginx-1.11.5 Did you forget the cd ZEC or do I have it in the wrong place?
Now I’m at the end of recompiling zcash after LIBZCASH_LIBS= replacement and I get a few errors when it’s done:

/home/sam/ZEC/zcash/src/init.cpp:1524: undefined reference to poolRpcThread(void*)' collect2: error: ld returned 1 exit status Makefile:3102: recipe for target 'zcash-gtest' failed make[2]: *** [zcash-gtest] Error 1 libbitcoin_server.a(libbitcoin_server_a-main.o): In function ActivateBestChain(CValidationState&, CBlock*)‘:
/home/sam/ZEC/zcash/src/main.cpp:2707: undefined reference to `newBlockNotify(void*)’
collect2: error: ld returned 1 exit status
Makefile:3035: recipe for target ‘test/test_bitcoin’ failed
make[2]: *** [test/test_bitcoin] Error 1
make[2]: Leaving directory ‘/home/sam/ZEC/zcash/src’
Makefile:7457: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/sam/ZEC/zcash/src’
Makefile:676: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1
sam@zcashpool:~/ZEC/zcash$

Is this ok? or did I make a mistake and was to run make -j4?