shads (OP)
|
|
November 09, 2011, 05:04:55 AM |
|
What is? source.local.1.p2p.hostport
Is that for example the bitcoin p2p port people open on the firewall to get more connections like 8333 is that the port I use for that setting?
Also how come there is no setting for the Aux chain should I add one...
source.local.1.merged.namecoin.p2p.hostport
it's the bitcoin protocol port of yr bitcoind. For sending blocks via bitcoin protocol as a backup in case rpc craps itself. There's no setting for aux chains as I haven't implemented it for them. I'm still thinking about whether this is really useful or not...
|
|
|
|
|
|
|
|
|
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
DavinciJ15
|
|
November 09, 2011, 05:37:00 AM |
|
When I connect one single user to it I get this error message... java.lang.NullPointerException at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doRequest(AbstractJsonRpcServlet.java:138) at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doPost(AbstractJsonRpcServlet.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) at org.eclipse.jetty.server.Server.handle(Server.java:341) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:515) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) at java.lang.Thread.run(Unknown Source)
I notice this on start up and just so you know I did a cURL and it worked and then I copied and pasted the username password and URL into settings file so I don't look silly once again.. [05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc 722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc [05:25:51.758] RETRY [05:25:51.760] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/ [05:25:51.761] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/ [05:25:51.761] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/ [05:25:51.778] Updating donation target address for chain: namecoin Address: NFja75nNRHZYKtN9YQ6wHPQdmhzBEAmTAt [05:25:51.787] Updating donation target address for chain: bitcoin Address: 1Lk8f18EyPB3uAJvgTeHgzCVkKY9njQ5bA 752 [main] INFO com.google.bitcoin.core.NetworkConnection - Connected to peer: version=32464, subVer='', services=0x1, time=Wed Nov 09 05:25:51 UTC 2011, blocks=152492 [05:25:51.788] Established outbound p2p connection to ms2.nmcbit.com:8333 [05:25:51.820] RETRY [05:25:51.824] New Block detected [26967] from source: DaemonSource[cs40].nameco
not sure what I missed.
|
|
|
|
|
DavinciJ15
|
|
November 09, 2011, 05:53:16 AM |
|
While running psj 0.4 under load i get spammed with those messages: 43559 [main-con-qtp-103] WARN org.eclipse.jetty.util.log - / java.lang.NullPointerException at com.shadworld.poolserver.WorkProxy.validateWork(WorkProxy.java:278) at com.shadworld.poolserver.WorkProxy.handleRequest(WorkProxy.java:431) at com.shadworld.poolserver.servlet.PoolServerJServlet.getResponse(PoolServerJServlet.java:26) at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doRequest(AbstractJsonRpcServlet.java:255) at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doPost(AbstractJsonRpcServlet.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352) at org.eclipse.jetty.servlets.QoSFilter.doFilter(QoSFilter.java:205) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) at org.eclipse.jetty.server.Server.handle(Server.java:341) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:515) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) at java.lang.Thread.run(Thread.java:662) Any idea? Or more logfiles needed? +1
|
|
|
|
shads (OP)
|
|
November 09, 2011, 05:54:09 AM |
|
see previous post
|
|
|
|
DavinciJ15
|
|
November 09, 2011, 05:59:07 AM |
|
see previous post
Thanks I fixed my previous problem it was the database settings.
|
|
|
|
shads (OP)
|
|
November 09, 2011, 06:03:32 AM |
|
[05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc 722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc [05:25:51.758] RETRY This error is fiddly and will take a couple of hours before I can fix it... As a work around I think it will work ok if you use 127.0.0.1 in the url instead of localhost
|
|
|
|
shads (OP)
|
|
November 09, 2011, 06:19:35 AM |
|
[05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc 722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc [05:25:51.758] RETRY This error is fiddly and will take a couple of hours before I can fix it... As a work around I think it will work ok if you use 127.0.0.1 in the url instead of localhost rc3 didn't live very long. http://poolserverj.org/dist/poolserverj-0.4.0rc4-mini-binary.tar.gzThis should at least ensure the above error doesn't happen if you use IP. I think it will work if you hostname as well but can't be sure until later today when I've got time to test properly
|
|
|
|
DavinciJ15
|
|
November 09, 2011, 06:51:59 AM |
|
Found a POW and it did not send the coins to the address I specified it remains on the namecoin wallet that PSJ0.4 is connected to.
Am I missing something? Is the coins sent after they mature? But you said it should send them on POW.
|
|
|
|
shads (OP)
|
|
November 09, 2011, 07:02:51 AM |
|
Found a POW and it did not send the coins to the address I specified it remains on the namecoin wallet that PSJ0.4 is connected to.
Am I missing something? Is the coins sent after they mature? But you said it should send them on POW.
If you've got: source.local.1.merged.namecoin.localCoinbasing=true but haven't applied the getmemorypool patch to namecoind it will fall back to non-coinbasing mode automatically. either it's set to false (or commented out) or no patch.
|
|
|
|
shads (OP)
|
|
November 09, 2011, 07:25:58 AM |
|
BTW something to keep in mind... even though found blocks are submitted by getmemorypool BEFORE they are sent on the bitcoin network. This is asynchronous and occasionally the daemon will see and process the block from bitcoin protocol first. If this happens getmemorypool will return 'false' because it's already seen the block. This means your upstream_result will be false even though it was actually true.
I'm still not sure whether to keep the p2p connection in place. I could move the code to ensure it always happens after the getmemorypool call but that kind of defeats the purpose. If the rpc call get's hung up for a few second only to fail that's precious seconds where you could have sent the block and someone else might beat you to it...
|
|
|
|
Pontius
|
|
November 09, 2011, 08:51:07 AM |
|
shads, as I wrote before I was unable to find the class where the "doDonationWarning()" method comes from. Maybe I pulled the wrong release from bitbucket, maybe I'm just blind. Can you give me a hint where to look for it?
|
|
|
|
|
Pontius
|
|
November 09, 2011, 08:59:53 AM |
|
Ahhh, it's located in another branch. Ok, that explains. Thanks a lot.
|
|
|
|
DavinciJ15
|
|
November 09, 2011, 01:22:50 PM |
|
Found a POW and it did not send the coins to the address I specified it remains on the namecoin wallet that PSJ0.4 is connected to.
Am I missing something? Is the coins sent after they mature? But you said it should send them on POW.
If you've got: source.local.1.merged.namecoin.localCoinbasing=true but haven't applied the getmemorypool patch to namecoind it will fall back to non-coinbasing mode automatically. either it's set to false (or commented out) or no patch. I have notices there is no option for parent block chain "localCoinbasing". is it source.local.1.localCoinbasing=true or source.local.1.localWorkGeneration.localCoinbasing=true or is the default?
|
|
|
|
shads (OP)
|
|
November 09, 2011, 01:26:16 PM |
|
localWorkGeneration includes coinbasing as part of the process (it has to)... The reason I called aux chains 'coinbasing' is because you don't actually generate work for the aux chains. You just generate the block.
|
|
|
|
DavinciJ15
|
|
November 09, 2011, 01:43:51 PM |
|
After updated to the newest update PSJ stopped working I even undid the last change to the settings (localCoinbasing) this is what I get and my miners do not mine anything. [13:29:39.117] RETRY [13:29:39.120] RETRY [13:29:39.122] Updating donation target address for chain: namecoin Address: NFja75nNRHZYKtN9YQ6wHPQdmhzBEAmTAt [13:29:39.125] New Block detected [152552] from source: DaemonSource[cs40].bitcoin - 0 lagging sources. [13:29:39.127] New Block detected [27023] from source: DaemonSource[cs40].namecoin - 0 lagging sources. [13:29:39.127] Restoring workmap from file: /home/ec2-user/poolserverj-0.4.0rc2/tmp/workmap-8332.bin [13:29:39.130] Updating donation target address for chain: bitcoin Address: 1Lk8f18EyPB3uAJvgTeHgzCVkKY9njQ5bA [13:29:39.533] Retrieving worker from database: davincij@gmail.com_dw_1 [13:29:43.878] Exception in Cleaner Thread java.lang.NullPointerException at com.shadworld.poolserver.workmaker.WorkMaker.update(WorkMaker.java:178) at com.shadworld.poolserver.source.merged.MergedMiningGroup.updateAuxes(MergedMiningGroup.java:249) at com.shadworld.poolserver.Cleaner.run(Cleaner.java:54) [13:29:48.889] Exception in Cleaner Thread java.lang.NullPointerException at com.shadworld.poolserver.workmaker.WorkMaker.update(WorkMaker.java:178) at com.shadworld.poolserver.source.merged.MergedMiningGroup.updateAuxes(MergedMiningGroup.java:249) at com.shadworld.poolserver.Cleaner.run(Cleaner.java:54) [13:29:49.201] 26 shares in 1,320,845,440 seconds. Current hashRate: 0 GH/s [13:29:49.201] Submit Throttling on: false [13:29:49.201] Doing database flush for Shares: 26 [13:29:49.257] Flushed 26 shares to DB in 56.0ms (464/sec) [13:29:53.896] Exception in Cleaner Thread java.lang.NullPointerException at com.shadworld.poolserver.workmaker.WorkMaker.update(WorkMaker.java:178) at com.shadworld.poolserver.source.merged.MergedMiningGroup.updateAuxes(MergedMiningGroup.java:249) at com.shadworld.poolserver.Cleaner.run(Cleaner.java:54)
NOTE: Soon as I role back to RC3 everything works fine.
|
|
|
|
shads (OP)
|
|
November 09, 2011, 01:49:19 PM |
|
client hasn't been initialised before workmaker tries to use... Does the message stop after a few seconds?
|
|
|
|
DavinciJ15
|
|
November 09, 2011, 02:28:47 PM |
|
client hasn't been initialised before workmaker tries to use... Does the message stop after a few seconds?
I waited a bit and tried to mine and it would not let me.
|
|
|
|
shads (OP)
|
|
November 09, 2011, 02:50:51 PM |
|
I thought you couldn't run rc3 because of? [05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc 722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc [05:25:51.758] RETRY [05:25:51.760] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/
|
|
|
|
|