Bitcoin Forum
May 07, 2024, 06:20:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33]
  Print  
Author Topic: New stratum/getwork proxy with Web-based GUI and pools management  (Read 120837 times)
paperoga
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
July 07, 2020, 10:38:18 PM
 #641

Is anyone still using this proxy?
I am unable to compile it locally, I think because it relies on dependencies now obsolete?
Anyway, using the latest release available, the proxy start but throws lots of errors. I can connect to a pool but that's it. Can't connect my miners to it nor I can get the web interface running.
In snippet, first of the errors I am getting. Anyone able to shed some light?
CHeers

Code:
2020-07-08 06:16:58,253 INFO  [main]: [Launcher]    Using INFO LogLevel.
2020-07-08 06:16:58,260 INFO  [main]: [Launcher]    API log level set to INFO.
2020-07-08 06:16:58,340 INFO  [main]: [Launcher]    Using database directory: /home/polar/stratum-proxy-0.8.1/dbase.
2020-07-08 06:16:58,354 INFO  [main]: [DatabaseManager]    Starting DatabaseManager...
2020-07-08 06:16:59,386 INFO  [main]: [DatabaseManager]    DatabaseManager started.
2020-07-08 06:16:59,387 INFO  [main]: [Launcher]    Using pools: [Pool [name=proxy1, host=cpu-pool.com:63378, username=UmFQNyBxLsibZBQ4iuK25arQQFmJbFwb9s, password=, readySince=null, isReady=false, isEnabled=true, isStable=false, priority=0, weight=0], Pool [name=proxy2, host=skypool.ca:9201, username=UmFQNyBxLsibZBQ4iuK25arQQFmJbFwb9s, password=, readySince=null, isReady=false, isEnabled=true, isStable=false, priority=1, weight=4]].
2020-07-08 06:16:59,603 INFO  [main]: [ProxyManager]    ServerSocket opened on /192.168.1.5:3333.
2020-07-08 06:17:00,085 INFO  [pool-1-thread-1]: [Pool]    Suggest the difficulty 0.01 to the pool proxy1.
2020-07-08 06:17:00,248 INFO  [pool-2-thread-1]: [Pool]    Suggest the difficulty 0.01 to the pool proxy2.
2020-07-08 06:17:00,705 WARN  [Pool-proxy2-Thread]: [StratumConnection]    Unknown response type on connection Pool-proxy2. methodName: mining.suggest_difficulty, result: true
2020-07-08 06:17:00,934 INFO  [Pool-proxy2-Thread]: [Pool]    Pool proxy2 started
2020-07-08 06:17:00,935 WARN  [Pool-proxy2-Thread]: [ProxyManager]    Pool proxy2 is STABLE.
2020-07-08 06:17:01,018 WARN  [Pool-proxy2-Thread]: [ProxyManager]    Pool proxy2 is UP.
2020-07-08 06:17:01,059 INFO  [main]: [NetworkListener]    Started listener bound to [192.168.1.5:8332]
2020-07-08 06:17:01,062 INFO  [main]: [HttpServer]    [HttpServer] Started.
2020-07-08 06:17:01,113 INFO  [Pool-proxy1-Thread]: [ProxyManager]    Set difficulty 0.2 on pool proxy1.
2020-07-08 06:17:01,119 INFO  [Pool-proxy1-Thread]: [ProxyManager]    New block detected on pool proxy1.
2020-07-08 06:17:01,429 INFO  [Pool-proxy1-Thread]: [Pool]    Pool proxy1 started
2020-07-08 06:17:01,430 WARN  [Pool-proxy1-Thread]: [ProxyManager]    Pool proxy1 is STABLE.
2020-07-08 06:17:01,436 WARN  [Pool-proxy1-Thread]: [ProxyManager]    Pool proxy1 is UP.
2020-07-08 06:17:02,426 WARN  [main]: [Errors]    The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.message.internal.DataSourceProvider] with an exception:
MultiException stack 1 of 2
java.lang.NoClassDefFoundError: javax/activation/DataSource
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
at java.base/java.lang.Class.getDeclaredConstructors(Class.java:2357)
at org.jvnet.hk2.internal.Utilities$5.run(Utilities.java:1352)
at org.jvnet.hk2.internal.Utilities$5.run(Utilities.java:1348)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jvnet.hk2.internal.Utilities.getAllConstructors(Utilities.java:1348)
at org.jvnet.hk2.internal.Utilities.findProducerConstructor(Utilities.java:1269)
at org.jvnet.hk2.internal.DefaultClassAnalyzer.getConstructor(DefaultClassAnalyzer.java:78)
at org.glassfish.jersey.internal.inject.JerseyClassAnalyzer.getConstructor(JerseyClassAnalyzer.java:143)
at org.jvnet.hk2.internal.Utilities.getConstructor(Utilities.java:199)
at org.jvnet.hk2.internal.ClazzCreator.initialize(ClazzCreator.java:129)
at org.jvnet.hk2.internal.ClazzCreator.initialize(ClazzCreator.java:182)
at org.jvnet.hk2.internal.SystemDescriptor.internalReify(SystemDescriptor.java:723)
at org.jvnet.hk2.internal.SystemDescriptor.reify(SystemDescriptor.java:678)
at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:415)
at org.jvnet.hk2.internal.ServiceLocatorImpl.narrow(ServiceLocatorImpl.java:2122)
at org.jvnet.hk2.internal.ServiceLocatorImpl.access$900(ServiceLocatorImpl.java:120)
at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1257)
at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1252)
at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture$1.call(LRUHybridCache.java:115)
at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture$1.call(LRUHybridCache.java:111)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.glassfish.hk2.utilities.cache.LRUHybridCache$OriginThreadAwareFuture.run(LRUHybridCache.java:173)
at org.glassfish.hk2.utilities.cache.LRUHybridCache.compute(LRUHybridCache.java:292)
at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetAllServiceHandles(ServiceLocatorImpl.java:1330)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServiceHandles(ServiceLocatorImpl.java:1239)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServiceHandles(ServiceLocatorImpl.java:1228)
at org.glassfish.jersey.internal.inject.Providers.getServiceHandles(Providers.java:342)
at org.glassfish.jersey.internal.inject.Providers.getCustomProviders(Providers.java:199)
at org.glassfish.jersey.message.internal.MessageBodyFactory.<init>(MessageBodyFactory.java:303)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1107)
at org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:274)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:368)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:114)
at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:102)
at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:153)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2270)
at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:687)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:652)
at org.glassfish.jersey.server.model.ComponentModelValidator.<init>(ComponentModelValidator.java:97)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:462)
at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:163)
at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:323)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)
at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:286)
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:320)
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:285)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.<init>(GrizzlyHttpContainer.java:331)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:141)
at strat.mining.stratum.proxy.Launcher.initHttpServices(Launcher.java:247)
at strat.mining.stratum.proxy.Launcher.main(Launcher.java:132)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 64 more
MultiException stack 2 of 2
java.lang.IllegalArgumentException: Errors were discovered while reifying SystemDescriptor(
implementation=org.glassfish.jersey.message.internal.DataSourceProvider
[Suspicious link removed].rs.ext.MessageBodyReader}
scope=javax.inject.Singleton
qualifiers={}
descriptorType=CLASS
descriptorVisibility=NORMAL
metadata=
rank=0
loader=org.glassfish.hk2.utilities.binding.AbstractBinder$2@3e48d38
proxiable=null
proxyForSameScope=null
analysisName=null
id=48
locatorId=1
identityHashCode=2083215552
reified=false)
at org.jvnet.hk2.internal.SystemDescriptor.reify(SystemDescriptor.java:689)
at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:415)

1715062837
Hero Member
*
Offline Offline

Posts: 1715062837

View Profile Personal Message (Offline)

Ignore
1715062837
Reply with quote  #2

1715062837
Report to moderator
1715062837
Hero Member
*
Offline Offline

Posts: 1715062837

View Profile Personal Message (Offline)

Ignore
1715062837
Reply with quote  #2

1715062837
Report to moderator
1715062837
Hero Member
*
Offline Offline

Posts: 1715062837

View Profile Personal Message (Offline)

Ignore
1715062837
Reply with quote  #2

1715062837
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715062837
Hero Member
*
Offline Offline

Posts: 1715062837

View Profile Personal Message (Offline)

Ignore
1715062837
Reply with quote  #2

1715062837
Report to moderator
girino
Legendary
*
Offline Offline

Activity: 2296
Merit: 1170


Advertise Here - PM for more info!


View Profile
July 07, 2020, 10:59:48 PM
 #642

(...)
Code:
2020-07-08 06:17:02,426 WARN  [main]: [Errors]    The following warnings have been detected: WARNING: HK2 service reification failed for [org.glassfish.jersey.message.internal.DataSourceProvider] with an exception:
MultiException stack 1 of 2
java.lang.NoClassDefFoundError: javax/activation/DataSource

javax/activation/DataSource is no longer present in newer versions of java. Try installing java 8, and it should work.

Advertise Here - PM for more info!
paperoga
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
July 08, 2020, 01:24:04 AM
 #643



javax/activation/DataSource is no longer present in newer versions of java. Try installing java 8, and it should work.
[/quote]

Thank you!

It's running now!

paperoga
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 19, 2021, 05:58:43 AM
 #644

What is the purpose of "name" in "pools" settings?
  "pools" : [ {
    "name" : "proxy",

everything works fine but pools I mine into, show each single machine name. Is any way to only show one miner at the pool using the "name" parameter?

JFoxOne
Member
**
Offline Offline

Activity: 640
Merit: 56


minerstat


View Profile WWW
April 19, 2021, 06:16:34 AM
 #645

If you don't want to bother with compiling, you may also want to check https://stratu.ms/

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!