Bug 198624 - sysutils/linux-crashplan Won't run. Java throws an error
Summary: sysutils/linux-crashplan Won't run. Java throws an error
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 14:09 UTC by chrisjohntapp
Modified: 2018-01-12 21:55 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (wg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chrisjohntapp 2015-03-16 14:09:40 UTC
Port is installed OK (built on x64 machine along with the java/linux-sun-jre17) but throws the following error when it's run:

(Running 10.1-RELEASE btw)

[code]
[root@misspiggy /usr/ports/sysutils/linux-crashplan]# /usr/local/etc/rc.d/crashplan start && tail -F /var/log/crashplan/engine_error.log
Starting CrashPlan Engine ... Using standard startup
OK
java.security.ProviderException: init failed
  at sun.security.provider.NativePRNG$RandomIO.getMixRandom(Unknown Source)
  at sun.security.provider.NativePRNG$RandomIO.implNextBytes(Unknown Source)
  at sun.security.provider.NativePRNG$RandomIO.access$200(Unknown Source)
  at sun.security.provider.NativePRNG.engineNextBytes(Unknown Source)
  at java.security.SecureRandom.nextBytes(Unknown Source)
  at java.math.BigInteger.randomBits(Unknown Source)
  at java.math.BigInteger.<init>(Unknown Source)
  at java.math.BigInteger.largePrime(Unknown Source)
  at java.math.BigInteger.probablePrime(Unknown Source)
  at sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
  at java.security.KeyPairGenerator$Delegate.generateKeyPair(Unknown Source)
  at com.code42.crypto.RSAKeyUtility.generateKeyPair(RSAKeyUtility.java:50)
  at com.backup42.service.CPService.initPeerControllers(CPService.java:649)
  at com.backup42.service.CPService.start(CPService.java:451)
  at com.backup42.service.CPService.main(CPService.java:1865)
Caused by: java.io.IOException: No such device or address
  at java.io.FileInputStream.readBytes(Native Method)
  at java.io.FileInputStream.read(Unknown Source)
  at sun.security.provider.NativePRNG$RandomIO.readFully(Unknown Source)
  ... 15 more
[/code]

I have all required deps sorted ie procfs etc.

If I change install.vars to point to a FreeBSD java binary then the crashplan engine daemon will run but the filesystem isn't visible to it, so it's useless. I assume this is the reason for the linux compat java port but I'm afraid I don't understand it well enough to troubleshoot further.  Starting the crashplanengine with truss gives the following:

[code]
read(3,"\^?ELF\^A\^A\^A\^C\0\0\0\0\0\0\0"...,512) = 512 (0x200)
linux_fstat64(0x3,0xffff8048,0x28067fc4,0x804a160,0x28242cf6,0x6) = 0 (0x0)
linux_mmap2(0x0,0x29080,0x5,0x802,0x3,0x6)       = 687116288 (0x28f49000)
linux_mmap2(0x28f71000,0x2000,0x3,0x812,0x3,0x6) = 687280128 (0x28f71000)
close(3)                                         = 0 (0x0)
linux_mprotect(0x28f71000,0x1000,0x1,0x804a5b8,0x5,0x6) = 0 (0x0)
linux_mprotect(0x2823d000,0x885000,0x3,0x2823d034,0xffff8440,0x6) = 0 (0x0)
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_mprotect(0x2823d000,0x885000,0x5,0xffff8440,0x5,0x6) = 0 (0x0)
munmap(0x2806a000,24329)                         = 0 (0x0)
linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",0) ERR#2 'No such file or directory'
linux_mmap2(0x0,0x51000,0x3,0x20022,0xffffffff,0x6) = 687288320 (0x28f73000)
linux_mprotect(0x28f73000,0x1000,0x0,0x28fc3b70,0x28fc3bd0,0x6) = 0 (0x0)
linux_clone(0x3d0f00,0x28fc3494,0x28fc3bd8,0xffff8720,0x28fc3bd8,0x6) = 28146 (0x6df2)
[03.08.15 17:58:32.536 INFO    main                 root                                    ] Locale changed to English
[03.08.15 17:58:32.543 INFO    main                 root                                    ] *************************************************************
[03.08.15 17:58:32.544 INFO    main                 root                                    ] *************************************************************
[03.08.15 17:58:32.545 INFO    main                 root                                    ] STARTED CrashPlanService
[03.08.15 17:58:32.553 INFO    main                 root                                    ] CPVERSION = 3.7.0 - 1388728800370 (2014-01-03T06:00:00:370+0000)
[03.08.15 17:58:32.555 INFO    main                 root                                    ] LOCALE = English
[03.08.15 17:58:32.560 INFO    main                 root                                    ] ARGS = [  ]
[03.08.15 17:58:32.560 INFO    main                 root                                    ] *************************************************************
[03.08.15 17:58:33.203 INFO    main                 root                                    ] Adding shutdown hook.
[03.08.15 17:58:33.246 INFO    main                 root                                    ] BEGIN Loading Configuration
[03.08.15 17:58:33.506 INFO    main                 root                                    ] BEGIN Copy Custom
[03.08.15 17:58:33.507 INFO    main                 root                                    ]   Directories: [.Custom, custom, /usr/local/share/crashplan/conf/.Custom, /usr/local/share/crashplan/conf/custom]
[03.08.15 17:58:33.507 INFO    main                 root                                    ]   NOT waiting for custom skin to appear
[03.08.15 17:58:33.508 INFO    main                 root                                    ]   NO customizations found.
[03.08.15 17:58:33.509 INFO    main                 root                                    ] END Copy Custom
[03.08.15 17:58:33.529 INFO    main                 root                                    ]   Loading from default: /usr/local/share/crashplan/conf/default.service.xml
[03.08.15 17:58:34.058 INFO    main                 root                                    ]   Loading from my xml file=conf/my.service.xml
[03.08.15 17:58:34.414 INFO    main                 root                                    ]   Loading ServiceConfig, newInstall=true, version=6, configDateMs=null, installVersion=1388728800370
[03.08.15 17:58:34.416 INFO    main                 root                                    ]   OS = Linux
[03.08.15 17:58:34.959 INFO    main                 root                                    ]   AuthorityLocation@15183044[ location=central.crashplan.com:443, hideAddress=false ]
[03.08.15 17:58:34.965 INFO    main                 root                                    ]   Checking Java memory heap max.
[03.08.15 17:58:34.975 INFO    main                 root                                    ]     Previous Java memory max heap size was 1024
[03.08.15 17:58:34.989 INFO    main                 root                                    ] END Loading Configuration
jtux Loaded.
Exiting!!! java.security.ProviderException: init failed
java.security.ProviderException: init failed
        at sun.security.provider.NativePRNG$RandomIO.getMixRandom(Unknown Source)
        at sun.security.provider.NativePRNG$RandomIO.implNextBytes(Unknown Source)
        at sun.security.provider.NativePRNG$RandomIO.access$200(Unknown Source)
        at sun.security.provider.NativePRNG.engineNextBytes(Unknown Source)
        at java.security.SecureRandom.nextBytes(Unknown Source)
        at java.math.BigInteger.randomBits(Unknown Source)
        at java.math.BigInteger.<init>(Unknown Source)
        at java.math.BigInteger.largePrime(Unknown Source)
        at java.math.BigInteger.probablePrime(Unknown Source)
        at sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
        at java.security.KeyPairGenerator$Delegate.generateKeyPair(Unknown Source)
        at com.code42.crypto.RSAKeyUtility.generateKeyPair(RSAKeyUtility.java:50)
        at com.backup42.service.CPService.initPeerControllers(CPService.java:649)
        at com.backup42.service.CPService.start(CPService.java:451)
        at com.backup42.service.CPService.main(CPService.java:1865)
Caused by: java.io.IOException: No such device or address
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(Unknown Source)
        at sun.security.provider.NativePRNG$RandomIO.readFully(Unknown Source)
        ... 15 more
[03.08.15 17:58:38.835 INFO    main                 root                                    ] *****  STOPPING  *****
[03.08.15 17:58:38.838 INFO    Thread-0             root                                    ] Stopping service...
[03.08.15 17:58:38.891 INFO    Thread-0             root                                    ] DownloadManager stopped.
[03.08.15 17:58:38.913 INFO    Thread-0             root                                    ] SystemWatcher stopped.
[03.08.15 17:58:38.919 INFO    Thread-0             root                                    ] Service stopped
SIGNAL 9 (SIGKILL)
process exit, rval = 0
[/code]
Comment 1 w.schwarzenfeld freebsd_triage 2018-01-12 21:55:23 UTC
Is this still relevant?
No feedback from maintainer till now!