11 Replies Latest reply on Mar 24, 2015 10:55 AM by ForumMigrationAdmin

    Problem installing iotkit-agent


      I'm trying to install iotkit-agent on my Galileo but ran into a problem with some SSL certificate issues.

      Here's the error message when I try to run iotkit-agent/setup-agent.sh. Any idea how to get around this.

      IoT Kit Agent - Setup
      copying startup script
         installing ...
      ./setup-agent.sh: line 33: sudo: command not found
      npm http GET https://registry.npmjs.org/mqtt
      npm http GET https://registry.npmjs.org/getmac
      npm http GET https://registry.npmjs.org/winston
      npm http GET https://registry.npmjs.org/express
      npm ERR! Error: SSL Error: CERT_NOT_YET_VALID
      npm ERR!     at ClientRequest.<anonymous> (/usr/lib/node_modules/npm/node_modules/request/main.js:525:26)
      npm ERR!     at ClientRequest.g (events.js:192:14)
      npm ERR!     at ClientRequest.EventEmitter.emit (events.js:96:17)
      npm ERR!     at HTTPParser.parserOnIncomingClient (http.js:1544:7)
      npm ERR!     at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
      npm ERR!     at CleartextStream.socketOnData (http.js:1447:20)
      npm ERR!     at CleartextStream.CryptoStream._push (tls.js:544:27)
      npm ERR!     at SecurePair.cycle (tls.js:898:20)
      npm ERR!     at EncryptedStream.CryptoStream.write (tls.js:285:13)
      npm ERR!     at Socket.ondata (stream.js:38:26)
      npm ERR! If you need help, you may report this log at:
      npm ERR!     <http://github.com/isaacs/npm/issues>
      npm ERR! or email it to:
      npm ERR!     <npm-@googlegroups.com>

      npm ERR! System Linux 3.8.7-yocto-standard
      npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
      npm ERR! cwd /home/root/iotkit-agent
      npm ERR! node -v v0.8.18
      npm ERR! npm -v 1.2.2
      npm ERR! code ESSL
      npm ERR!
      npm ERR! Additional logging details can be found in:
      npm ERR!     /home/root/iotkit-agent/npm-debug.log
      npm ERR! not ok code 0