Mining on Synology Help!



  • hey guys, I am trying to run mining on my synology which is armv7 32 bit.
    I downloaded burstcoin-jminer-0.4.4-SNAPSHOT.zip file and tried to run it.
    But this is the error.

    [email protected]:~$ ls
    README.txt  burstcoin-jminer-0.4.4-SNAPSHOT.jar  burstcoin-jminer-0.4.4-SNAPSHOT.zip  jminer.properties  run.bat  run.sh
    [email protected]:~$ sh run.sh
    Error: This Java instance does not support a 64-bit JVM.
    Please install the desired version.
    

    This is my java version btw

    java version "1.7.0_101"
    OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-2~deb8u1)
    OpenJDK Zero VM (build 24.95-b01, interpreted mode)
    

    [/quote]
    Is 32 bit not supported??

    Any help really appreciated



  • @bitcoinuserx I'm never uses *nix, but see run.sh
    java -jar -d64 -XX:+UseG1GC burstcoin-jminer-0.4.4-SNAPSHOT.jar

    Usage of the d64 switch gets the JVM into the 64-bit mode

    try to delete this parameter



  • Ok. I did that and I encountered another error.

    [email protected]:~$ sh run.sh  
    OpenJDK Zero VM warning: G1 GC is disabled in this release.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: burstcoin/jminer/JMinerApplication : Unsupported major.minor version 52.0
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    	at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:170)
    	at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
    	at java.lang.Thread.run(Thread.java:745)
    

    Is this a java version problem? I searched on google and it says version problem? How can I upgrade java? I installed java through apt-get install

    If I should manually download, should I delete previous java version and exactly what version should I download? I am Debian Jessie btw


  • admin

    You need Java8.



  • Ok. I updated to Java 8.
    This is my current progress

    [email protected]:/opt/java/jdk1.8.0_91# java -version
    java version "1.8.0_91"
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) Client VM (build 25.91-b14, mixed mode)
    

    Now the java is 1.8. However, Burst mining is still not working.

    [email protected]:~$ sh run.sh
    Java HotSpot(TM) Client VM warning: G1 GC is disabled in this release.
    23:00:01.599 [main] INFO  burstcoin.jminer.JMinerApplication - Starting the engines ... please wait!
    2016-07-10 23:00:05.661  WARN 14546 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OCLChecker': Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: Error while loading native library "JOCL_0_1_9-linux-arm" with base name "JOCL_0_1_9"
    Operating system name: Linux
    Architecture         : arm
    Architecture bit size: 32
    ---(start of nested stack traces)---
    Stack trace from the attempt to load the library as a file:
    java.lang.UnsatisfiedLinkError: no JOCL_0_1_9-linux-arm in java.library.path
    	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
    	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    	at java.lang.System.loadLibrary(System.java:1122)
    	at org.jocl.LibUtils.loadLibrary(LibUtils.java:80)
    	at org.jocl.CL.<clinit>(CL.java:47)
    	at org.jocl.utils.Platforms.getPlatforms(Platforms.java:51)
    	at burstcoin.jminer.core.checker.util.OCLChecker.check(OCLChecker.java:159)
    	at burstcoin.jminer.core.checker.util.OCLChecker.initChecker(OCLChecker.java:87)
    	at burstcoin.jminer.core.checker.util.OCLChecker.postConstruct(OCLChecker.java:82)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
    	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
    	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
    	at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
    	at burstcoin.jminer.JMinerApplication.main(JMinerApplication.java:60)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
    	at java.lang.Thread.run(Thread.java:745)
    Stack trace from the attempt to load the library as a resource:
    java.lang.NullPointerException: No resource found with name '/lib/libJOCL_0_1_9-linux-arm.so'
    	at org.jocl.LibUtils.loadLibraryResource(LibUtils.java:200)
    	at org.jocl.LibUtils.loadLibrary(LibUtils.java:91)
    	at org.jocl.CL.<clinit>(CL.java:47)
    	at org.jocl.utils.Platforms.getPlatforms(Platforms.java:51)
    	at burstcoin.jminer.core.checker.util.OCLChecker.check(OCLChecker.java:159)
    	at burstcoin.jminer.core.checker.util.OCLChecker.initChecker(OCLChecker.java:87)
    	at burstcoin.jminer.core.checker.util.OCLChecker.postConstruct(OCLChecker.java:82)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
    	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
    	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
    	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
    	at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
    	at burstcoin.jminer.JMinerApplication.main(JMinerApplication.java:60)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
    	at java.lang.Thread.run(Thread.java:745)
    ---(end of nested stack traces)---
    
    2016-07-10 23:00:05.684 ERROR 14546 --- [           main] o.s.boot.SpringApplication               : Application startup failed
    
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OCLChecker': Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: Error while loading native library "JOCL_0_1_9-linux-arm" with base name "JOCL_0_1_9"
    Operating system name: Linux
    Architecture         : arm
    Architecture bit size: 32
    ---(start of nested stack traces)---
    
    
    

    It goes on and on. How should I solve this?

    I don't really know much about java, so what could the problems be?



  • @luxe in jocl-0.1.9.jar i see only:
    lib/JOCL_0_1_9-windows-x86.dll
    lib/JOCL_0_1_9-windows-x86_64.dll
    lib/libJOCL_0_1_9-apple-x86_64.dylib
    lib/libJOCL_0_1_9-linux-x86.so
    lib/libJOCL_0_1_9-linux-x86_64.so

    but it's have not JOCL_0_1_9-linux-arm



  • what does that mean? Does it mean jocl-0.1.9 jar does not contain linux_32 arm?



  • @bitcoinuserx yes, it's not contain linux_32 arm, need to remake jocl-0.1.9.jar, but i have not *nix



  • Ok. So I can probly expect it on next patch then? Meanwhile, I will find other useful things on my synology lol