Pages:
Author

Topic: Pushpool - Tech Support - page 5. (Read 135232 times)

full member
Activity: 188
Merit: 100
July 15, 2012, 12:25:20 PM
Hi there, I need some help if you are so kind.

I have the sw running but my miner is running at half speed compared to when it connects to other pool and i am not finding any share.

I have the Artforz version for litecoin

Here is the server side


~/pool/sbin$ ./pushpoold -E -F -D 2
[2012-07-15 17:16:3.004533] Debug output enabled
[2012-07-15 17:16:3.015238] Forcing local hostname to localhost.localdomain
[2012-07-15 17:16:3.040686] Listening on host :: port 8342
[2012-07-15 17:16:3.047742] Listening on host :: port 8341
[2012-07-15 17:16:3.051543] Listening on host :: port 8344
[2012-07-15 17:16:3.056850] Listening on host 127.0.0.1 port 8338
[2012-07-15 17:16:3.090090] initialized
JSON protocol request:
{"method": "getwork", "params": [], "id":1}

* About to connect() to 127.0.0.1 port 8332 (#0)
*   Trying 127.0.0.1... * TCP_NODELAY set
* connected
* Server auth using Basic with user 'notecuesta'
> POST / HTTP/1.1
Authorization: Basic bm90ZWN1ZXN0YTpuYWRhbmFkYSYm
Host: 127.0.0.1:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
Content-Length: 45

< HTTP/1.1 200 OK
< Date: Sun, 15 Jul 2012 17:16:10 +0000
< Connection: keep-alive
< Content-Length: 592
< Content-Type: application/json
< Server: litecoin-json-rpc/v0.6.3-6-g8148a30-beta
<
* Connection #0 to host 127.0.0.1 left intact
JSON protocol response:
{
   "error": null,
   "result": {
      "target": "0000000000000000000000000000000000000000000000000000852b00000000",
      "midstate": "5728c8adecd466a51aa699136798538aa42620ec633f9f6749aeee6ef3279c61",
      "hash1": "0000000000000000000000000000000000000000000000000000000000000000000000800000000 0000000000000000000000000000000000000000000010000",
      "data": "000000011cc1d46de8b568618a3fce07166e8b610dd0fdcb6ab759f4a6fbb8fb5917e4093823f5c 33ecb6e3643b6542a4dd76360d94ccf8d64f79f796908d6886714ea2f5002fad91c2b8500000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000"
   },
   "id": 1
}
[2012-07-15 17:16:10.446854] new block, target 0000000000000000000000000000000000000000000000000000852b00000000
JSON protocol request:
{"method": "getwork", "params": [], "id":2}

* Re-using existing connection! (#0) with host 127.0.0.1
* Connected to 127.0.0.1 (127.0.0.1) port 8332 (#0)
* Server auth using Basic with user 'notecuesta'
> POST / HTTP/1.1
Authorization: Basic bm90ZWN1ZXN0YTpuYWRhbmFkYSYm
Host: 127.0.0.1:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
Content-Length: 45

< HTTP/1.1 200 OK
< Date: Sun, 15 Jul 2012 17:17:08 +0000
< Connection: keep-alive
< Content-Length: 592
< Content-Type: application/json
< Server: litecoin-json-rpc/v0.6.3-6-g8148a30-beta
<
* Connection #0 to host 127.0.0.1 left intact
JSON protocol response:
{
   "error": null,
   "result": {
      "target": "0000000000000000000000000000000000000000000000000000852b00000000",
      "midstate": "de4f05f1c4b5842dbbf91924288cae7044eafcf9e6d67112b3c0a8ccd8813d24",
      "hash1": "0000000000000000000000000000000000000000000000000000000000000000000000800000000 0000000000000000000000000000000000000000000010000",
      "data": "000000011cc1d46de8b568618a3fce07166e8b610dd0fdcb6ab759f4a6fbb8fb5917e4096874ddd 244d3457092c0e2c68f59153074d5e15f6260649eac7c441bf9e0b5da5002fb131c2b8500000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000"
   },


This is the miner side

[2012-07-15 14:16:10] 2 miner threads started, using 'scrypt' algorithm.
[2012-07-15 14:16:10] Binding thread 1 to cpu 1
[2012-07-15 14:16:10] Binding thread 0 to cpu 0
[2012-07-15 14:16:10] Long-polling activated for http://192.168.1.101:8341/LP
[2012-07-15 14:16:12] thread 1: 4096 hashes, 2.19 khash/s
[2012-07-15 14:16:12] thread 0: 4096 hashes, 2.08 khash/s
[2012-07-15 14:17:08] thread 0: 120494 hashes, 2.16 khash/s
[2012-07-15 14:17:09] thread 1: 127023 hashes, 2.21 khash/s


This is my server.json file

{
        # network ports
        "listen" : [
                # binary protocol (default), port 8342
                { "port" : 8342 },

                # HTTP JSON-RPC protocol, port 8341
                { "port" : 8341, "protocol" : "http-json" },

                # HTTP JSON-RPC protocol, port 8344,
                # with trusted proxy appserver.example.com forwarding
                # requests to us
                { "port" : 8344, "protocol" : "http-json",
                  "proxy" : "127.0.0.1" },

                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

        # database settings
        "database" : {
                "engine" : "mysql",
                "host" : "localhost",
                "port" : 3306,
                "name" : "pushpool",
                "username" : "pushpool",
                "password" : "j5kIK&_/H4rf",
                "sharelog" : true,
                "stmt.pwdb":"SELECT `password` FROM `pool_worker` WHERE `username` = ?",
                "stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"

        },

        # cache settings
        "memcached" : {
                "servers" : [
                        { "host" : "127.0.0.1", "port" : 11211 }
                ]
        },

        "pid" : "/tmp/pushpoold.pid",

        # overrides local hostname detection
        "forcehost" : "localhost.localdomain",
        "log.requests" : "/tmp/request.log",
        "log.shares" : "/tmp/shares.log",

        # the server assumes longpolling (w/ SIGUSR1 called for each blk)
        "longpoll.disable" : false,

        # length of time to cache username/password credentials, in seconds
        "auth.cred_cache.expire" : 75,

        # RPC settings | Notice how this ISN'T port number 8332 this is becuase the same port number should not becuase inconjunction with the JSON RPC port other wise you'll get 500 errors
        "rpc.url" : "http://127.0.0.1:8332/",
        "rpc.user" : "pushpool",
        "rpc.pass" : "ujK_.[}w6sj/kd3&",

        # rewrite returned 'target' to difficulty-1?
        "rpc.target.rewrite" : true




Any ideas?


Thank you!!!

Max
sr. member
Activity: 266
Merit: 250
LitecoinTalk
July 05, 2012, 06:40:04 PM
ok, got that part to working also now, i geting shares and al that, but it not sending it to the sql db?
sr. member
Activity: 266
Merit: 250
LitecoinTalk
July 05, 2012, 04:16:18 PM
ok, i got it fixed, and now it should be fine, but when i connect my miner i get

in pushpool
Code:
[2012-07-05 21:15:13.440003] client host ::ffff:199.26.85.34 port 58177 connected
[2012-07-05 21:15:41.648995] client host ::ffff:199.26.85.34 port 58178 connected
in minerd
Code:
[2012-07-05 23:16:05] HTTP request failed: Recv failure: Connection was reset
[2012-07-05 23:16:05] json_rpc_call failed, retry after 30 seconds
sr. member
Activity: 266
Merit: 250
LitecoinTalk
July 05, 2012, 02:12:46 PM
Code:
checking for pg_config... no
no
./configure: line 5740: syntax error near unexpected token `,'
./configure: line 5740: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
someone help?

Your curl-devel (or libcurl-dev or whatever) package is missing the requisite autoconf macros needed to properly regenerate the configure script.



t@69-248:/pushpool# apt-get install libcurl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl-dev is a virtual package provided by:
  libcurl4-openssl-dev 7.21.0-2.1+squeeze2
  libcurl4-gnutls-dev 7.21.0-2.1+squeeze2
You should explicitly select one to install.

E: Package 'libcurl-dev' has no installation candidate

i installed both
sr. member
Activity: 266
Merit: 250
LitecoinTalk
July 05, 2012, 01:32:48 PM
just installed it, still get the same errors
legendary
Activity: 1596
Merit: 1100
July 05, 2012, 01:12:53 PM
Code:
checking for pg_config... no
no
./configure: line 5740: syntax error near unexpected token `,'
./configure: line 5740: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
someone help?

Your curl-devel (or libcurl-dev or whatever) package is missing the requisite autoconf macros needed to properly regenerate the configure script.

sr. member
Activity: 266
Merit: 250
LitecoinTalk
July 05, 2012, 12:36:01 PM
hello, can someone tell me wgat i'm doing wrong, i have installed all that yesterday on my test serv, all was good, but now when trying on my public serv i get this

Code:
root@69-248:/pushpool# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking for event_base_new in -levent... yes
checking for pthread_create in -lpthread... yes
checking for uncompress in -lz... yes
checking for json_loads in -ljansson... yes
checking for MD5_Init in -lcrypto... yes
checking for memcached_get in -lmemcached... yes
checking for argp_parse in -largp... no
checking for  version... ./configure: line 4829: -c: command not found

checking for  platform... ./configure: line 4848: -c: command not found

checking for  script directory... ${prefix}/lib/python/site-packages
checking for  extension module directory... ${exec_prefix}/lib/python/site-packages
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for SQLite3 library >= 3.0.0... not found
checking for mysql_config... /usr/bin/mysql_config
checking for pg_config... no
no
./configure: line 5740: syntax error near unexpected token `,'
./configure: line 5740: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
Code:
checking for pg_config... no
no
./configure: line 5740: syntax error near unexpected token `,'
./configure: line 5740: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
someone help?
hero member
Activity: 914
Merit: 500
February 02, 2012, 03:53:35 PM
Old thread, but I thought I'd post this here.

I'm trying to setup a private pool for some folks here at work and I've got everything build and Pushpool seems to be working, EXCEPT that the shares tables and shares.log are empty. It can connect to MySQL fine because it's authenticating the users that connect.

My table creation script is the same one that it seems everyone is using:

Code:
CREATE TABLE IF NOT EXISTS `shares` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rem_host` text NOT NULL,
  `username` text NOT NULL,
  `our_result` text,
  `upstream_result` text,
  `reason` text,
  `solution` text,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

I've verified using wget that the credentials specified in server.json are proper for rpc.url/user/pass. When I do a wget against the rpc, it returns 500 after authorizing (not sure if this is an issue or not).

Any help is appreciated! Thanks! Smiley
hero member
Activity: 774
Merit: 500
Lazy Lurker Reads Alot
December 01, 2011, 11:15:17 AM
Hi!

 After days trying this... I'm sure that I'm close to start my first pool!

 I'm running: pushpool-0.5.1, mysql, memcached and Litecoin (with LongPool patch applied).

 I run pushpool with: "pushpoold -c /home/administrativo/server.json -D 2 -E -F"

 Every time litecoin found a new block, I see at pushpool: "USR1 signal received, flushing LP waiters"

 All appear to be working okay but, when I connect my minerd at my pool, I don't get any "PROOF OF WORK RESULT: true (yay!!!)", even after minutes!

 But why?!

EDIT: AND... I don't see the message "Long-polling activated for http://mypool:9334/LP"... Any tips!? I disable it for tests... lol

 I'm planning to use the mmcFE web interface, it is pretty awesome and clean!

Best!
Thiago

Well its simple to me your pool software is not working at all if you do not get shares.
When you see no result it means your simply solo mining, that means only if you actually found and solved the complete block (50 coins )
So only when this block is found you see result in your miners it does not matter if it is litecoin or other currency
When you run a pool you should see many shares find in shorter time, when solo mining you can wait for days or even up to years without seeing a valid block depending on hashpower
But even if you found one it can result in a REJECT meaning you get silch, zero, nada, nothing, no way jose.

For example when i started mining litecoin i made 1 to 2 blocks a day with around 20 kh/s
Now with so much increased difficulty its at about 7 days before i find a block or even 14 days happened
To make it simple the value of litecoin does not cover the costs anymore for mine them in my view, simply because huge company owned miners jumped onto litecoin making it for
legendary
Activity: 1596
Merit: 1100
November 08, 2011, 08:15:23 PM
Code:
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -pthread     -g -O2 -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o server.c
server.c:106:2: erro: #error ("No valid database engines defined")
make[1]: ** [server.o] Error 1
make[1]: Saindo do diretório `/home/****/Pool'
make: ** [all] Erro 2


I follow all the steps. But keep returning this error. What can i do?

You need to install postgresql, mysql and/or sqlite development libraries on your system.

member
Activity: 75
Merit: 10
November 08, 2011, 05:46:21 PM
Code:
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -pthread     -g -O2 -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o server.c
server.c:106:2: erro: #error ("No valid database engines defined")
make[1]: ** [server.o] Error 1
make[1]: Saindo do diretório `/home/****/Pool'
make: ** [all] Erro 2


I follow all the steps. But keep returning this error. What can i do?
full member
Activity: 225
Merit: 100
November 08, 2011, 03:30:44 AM
Guys,

 I can't find a valid share (YAY!!!) even using minerd with Litecoind (solo mining)...
 This is because I'm too small?!

Thanks!
Thiago

For litecoin you need a pushpool with scrypt-support (take a look at https://github.com/ArtForz/pushpool), second you need to adjust the "rpc.target.bits" in your pushpool config and then the YAYs will be with you.  Wink

Have fun.
hero member
Activity: 742
Merit: 500
November 07, 2011, 07:22:02 PM
Thanks for this.  I'm wanting to setup a pool just to play around with Bitcoin and learn.
member
Activity: 96
Merit: 10
November 07, 2011, 07:05:46 PM
Guys,

 I can't find a valid share (YAY!!!) even using minerd with Litecoind (solo mining)...
 This is because I'm too small?!

Thanks!
Thiago

Try testnet first?

God one!! lol
I'll   :-P

Testnet should make it easier to get a share, of course. What do you have the artificial difficulty set at? Set it to 8 bits and you'll find several every second. If you are running it at BTC difficulty 1, you'll never find a share that way.
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
November 07, 2011, 01:47:15 PM
Guys,

 I can't find a valid share (YAY!!!) even using minerd with Litecoind (solo mining)...
 This is because I'm too small?!

Thanks!
Thiago

Try testnet first?

God one!! lol
I'll   :-P
c_k
donator
Activity: 242
Merit: 100
November 07, 2011, 01:42:07 PM
Guys,

 I can't find a valid share (YAY!!!) even using minerd with Litecoind (solo mining)...
 This is because I'm too small?!

Thanks!
Thiago

Try testnet first?
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
November 07, 2011, 10:00:18 AM
Guys,

 I can't find a valid share (YAY!!!) even using minerd with Litecoind (solo mining)...
 This is because I'm too small?!

Thanks!
Thiago
Probably, the difficulty is quite high indeed.
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
November 07, 2011, 04:41:25 AM
Guys,

 I can't find a valid share (YAY!!!) even using minerd with Litecoind (solo mining)...
 This is because I'm too small?!

Thanks!
Thiago
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
November 07, 2011, 01:51:36 AM

 All appear to be working okay but, when I connect my minerd at my pool, I don't get any "PROOF OF WORK RESULT: true (yay!!!)", even after minutes!

 But why?!

Best!
Thiago

Mmmm... Maybe because original pushpool does not support Scrypt!? lol

I'm trying this on now: https://github.com/ArtForz/pushpool

Tks
Thiago

Anyway, I'm still unable to find a valid share at my pool...    Cry
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
November 07, 2011, 01:36:28 AM

 All appear to be working okay but, when I connect my minerd at my pool, I don't get any "PROOF OF WORK RESULT: true (yay!!!)", even after minutes!

 But why?!

Best!
Thiago

Mmmm... Maybe because original pushpool does not support Scrypt!? lol

I'm trying this on now: https://github.com/ArtForz/pushpool

Tks
Thiago
Pages:
Jump to: