Uploaded image for project: 'PredictionIO (Retired)'
  1. PredictionIO (Retired)
  2. PIO-59

"pio app new" sometimes takes long time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.11.0-incubating
    • 0.12.0-incubating
    • Core
    • None

    Description

      Some users reported this problem in user ML, and I also encountered it.
      Checking stack traces, I think the cause is an entropy shortage for /dev/random.

      "main" #1 prio=5 os_prio=0 tid=0x00007fc94803f800 nid=0x49a9 runnable [0x00007fc94fa1b000]
         java.lang.Thread.State: RUNNABLE
              at java.io.FileInputStream.readBytes(Native Method)
              at java.io.FileInputStream.read(FileInputStream.java:255)
              at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424)
              at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:525)
              at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:544)
              - locked <0x00000003d34e8a48> (a java.lang.Object)
              at sun.security.provider.NativePRNG$RandomIO.access$400(NativePRNG.java:331)
              at sun.security.provider.NativePRNG$Blocking.engineNextBytes(NativePRNG.java:268)
              at java.security.SecureRandom.nextBytes(SecureRandom.java:468)
              at org.apache.predictionio.data.storage.AccessKeys$class.generateKey(AccessKeys.scala:71)
              at org.apache.predictionio.data.storage.elasticsearch.ESAccessKeys.generateKey(ESAccessKeys.scala:40)
              at org.apache.predictionio.data.storage.elasticsearch.ESAccessKeys.insert(ESAccessKeys.scala:60)
              at org.apache.predictionio.tools.commands.App$$anonfun$create$4$$anonfun$apply$5.apply(App.scala:71)
              at org.apache.predictionio.tools.commands.App$$anonfun$create$4$$anonfun$apply$5.apply(App.scala:62)
              at scala.Option.map(Option.scala:145)
              at org.apache.predictionio.tools.commands.App$$anonfun$create$4.apply(App.scala:62)
              at org.apache.predictionio.tools.commands.App$$anonfun$create$4.apply(App.scala:55)
              at scala.Option.getOrElse(Option.scala:120)
              at org.apache.predictionio.tools.commands.App$.create(App.scala:55)
              at org.apache.predictionio.tools.console.Pio$App$.create(Pio.scala:172)
              at org.apache.predictionio.tools.console.Console$$anonfun$main$1.apply(Console.scala:683)
              at org.apache.predictionio.tools.console.Console$$anonfun$main$1.apply(Console.scala:626)
              at scala.Option.map(Option.scala:145)
              at org.apache.predictionio.tools.console.Console$.main(Console.scala:626)
              at org.apache.predictionio.tools.console.Console.main(Console.scala)
      

      Attachments

        Activity

          People

            dszeto Donald Szeto
            shinsuke Shinsuke Sugaya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: