So I wanted to upgrade
Update info when starting the update:
Found update for pimatic: current version is 0.9.46, latest version is: 0.9.47
Found update for pimatic-mobile-frontend: current version is 0.9.13, latest version is: 0.9.14
Found update for pimatic-sysinfo: current version is 0.9.4, latest version is: 0.9.5
Het installeren van de updates is mislukt, bekijk het logboek voor meer informatie.
(Installing the updates failed, check the logbook for more information)
When going back into the screen it mentions
pimatic is up to date.
Found update for pimatic-sysinfo: current version is 0.9.4, latest version is: 0.9.5
npm WARN engine har-validator@5.1.3: wanted: {"node":">=6"} (current: {"node":"4.8.3","npm":"2.15.12"})
npm WARN engine punycode@2.1.1: wanted: {"node":">=6"} (current: {"node":"4.8.3","npm":"2.15.12"})
pimatic@0.9.47 node_modules/pimatic
├── cookie-parser@1.4.4 (cookie-signature@1.0.6, cookie@0.3.1)
├── connect-timeout@1.9.0 (on-headers@1.0.2, ms@2.0.0, on-finished@2.3.0, http-errors@1.6.3)
├── cross-spawn@5.1.0 (shebang-command@1.2.0, lru-cache@4.1.5, which@1.3.1)
├── method-override@2.3.10 (methods@1.1.2, vary@1.1.2, parseurl@1.3.2, debug@2.6.9)
├── cookie-session@1.3.3 (on-headers@1.0.2, cookies@0.7.3, debug@2.6.9)
├── logrotate-stream@0.2.5 (byt@0.1.0, log-rotate@0.2.8, optimist@0.6.1)
├── body-parser@1.18.3 (content-type@1.0.4, bytes@3.0.0, depd@1.1.2, on-finished@2.3.0, http-errors@1.6.3, qs@6.5.2, raw-body@2.3.3, debug@2.6.9, type-is@1.6.16, iconv-lite@0.4.23)
├── yet-another-jsonlint@1.0.1 (commander@2.19.0, JSV@4.0.2)
└── request-promise@2.0.1 (bluebird@2.11.0, request@2.88.0)
pimatic-mobile-frontend@0.9.14 node_modules/pimatic-mobile-frontend
├── colour.js@1.5.2
└── jqmthemer@0.0.1 (bluebird@2.2.2)
It is quite obvious that node is too old, but I simply did not think of it. Can this somehow be part of the upgrade?
If not as part of the upgrade, than as check: "if node < x.y then “stop upgrade. Give user message to upgrade node”.
And secondly: Why only for the pimatic-sysinfo?
So: I downloaded the latest version 8 for my RPi3 on Stretch as it asks wanted: {"node":">=6"}
wget https://nodejs.org/dist/latest-v8.x/node-v8.15.1-linux-armv7l.tar.gz
and installed it.
Pimatic doesn’t do anything.
So I stop/start pimatic with sudo service pimatic stop
and sudo service pimatic start
but nothing happens. Also the pimatic-daemon.log stops on the first line mentioning the date.
I wanted to do a clean install with node 8.15 in place but that didn’t work.
So the warning wanted: {"node":">=6"}
is terribly misleading as it does not function with 8.
So I removed 8.15 and installed 6.17.0.
Then I did the npm install pimatic --prefix pimatic-app --production
again and that seemed to work but not really.
homeduino doesn’t function either. I removed the homeduino entries from the config.json but still no go. I have been trying for about 2 hours.
The only thing I could do in the end was to reinstall node 4.8.3 and restore my backup.
Sorry for the long post, but my experience might help others.