install always with sudo
problems during pimatic installation
tried it again with a new installation (max2play based on wheezy, and even a new sd card), failed again. only interesting to see the performance difference between class 4 and 10 cards…
As also the cloning from one of the others PIs card failed, my second son will have to live without knowing temperature in his room… hopefully he will forgive me when he’s older
Did you install git on your system? I think this is necessary. With raspbian it comes pre-installed.
yes, I did.
Current famous last words using “npm install pimatic --prefix pimatic-app --production”:
npm http 304 https://registry.npmjs.org/logrotate-stream
npm ERR! git clone https://github.com/sweetpi/jsonlint.git Cloning into bare repository ‘/root/.npm/_git-remotes/https-github-com-sweetpi-jsonlint-git-5d744989’…
npm ERR! git clone https://github.com/sweetpi/jsonlint.git
npm ERR! git clone https://github.com/sweetpi/jsonlint.git error: Failed connect to github.com:443; No route to host while accessing https://github.com/sweetpi/jsonlint.git/info/refs
npm ERR! git clone https://github.com/sweetpi/jsonlint.git fatal: HTTP request failed
npm ERR! Error: Command failed: error: Failed connect to github.com:443; No route to host while accessing https://github.com/sweetpi/jsonlint.git/info/refs
npm ERR! fatal: HTTP request failed
npm ERR! at ChildProcess.exithandler (child_process.js:637:15)
npm ERR! at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:735:16)
npm ERR! at Socket.<anonymous> (child_process.js:948:11)
npm ERR! at Socket.EventEmitter.emit (events.js:95:17)
npm ERR! at Pipe.close (net.js:466:12)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! System Linux 4.1.13+
npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” “install” “pimatic” “–prefix” “pimatic-app” "–production"
npm ERR! cwd /home/pi
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code 128
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/npm-debug.log
npm ERR! not ok code 0
Try to run the installation with “sudo” or as root.
@techbarney : you are right! I didn’t follow that route as that raspberry has connection to network… in principle. Ping to heise.de works (others as well)
PING heise.de (22.214.171.124) 56(84) bytes of data.
64 bytes from redirector.heise.de (126.96.36.199): icmp_req=1 ttl=246 time=12.5 ms
PING github.com (188.8.131.52) 56(84) bytes of data.
From JojoPlayer.local (192.168.0.103) icmp_seq=1 Destination Host Unreachable
This means: only github isn’t reachable. Is it blacklisted on that raspberry? It works from others in the same network. Interesting…
That’s why I love IT, because of its non-deterministic behaviour. I could finally install Pimatic.
Background: My Raspberry could not reach github. Interestingly it could reach all other tested domains.
Solution: I removed the static IP address for that raspberry. Once it received dynamically an IP address, i could reach github.
Root cause: I have no clue. Whether because of that specific static IP address in my network some other system didn’t like or just because of the usage of DHCP… I don’t know.
Could be that with the static IP you used your router as the DNS server and via DHCP your router my provide alternative/fallback DNS servers which then could resolve the github domain. If I use statich IP I use my router as DNS and ad 184.108.40.206 as a fallback (google dns)