Hello dear specialists,
after the Pimatic updates on my test-PI, I was also able to update the node version (8.16.0) on it.
So there pimatic 0.9.48 is running on node 8.16.0. (One problem I recognized currently is, that the Homeduino Shutter3 devices seems not to work)
After that I thought, OK, lets update also the node version on the prod-PI, … I shouldn’t have done that …
Great mess, absolutly nothing worked - I have no clue why.
After hours of testing, I thought to make some copies of the config.json and the -database, delete
the complete pimatic-app directory and also the the other node and node_module directories in /usr/local/…, and install node and pimatic completely new, according to the installation guidelines.
I first took the guideline from the Wiki: https://pimatic.teamemo.com/Guide/Getting-Started which I saw is already working with node 10.x. But that doesn’t work.
Using: 'npm install pimatic --prefix pimatic-app --production’
Results in:
/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:57
log.progressEnabled = log.gauge.isEnabled()
^
TypeError: log.gauge.isEnabled is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:57:33)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:22:13
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:153:3)
… and the pimatic-app directory stays empty.
I then took the old guideline: https://pimatic.org/guide/getting-started/installation/
which results after 'npm install pimatic --prefix pimatic-app --production’
in:
pm WARN engine har-validator@5.1.3: wanted: {"node":">=6"} (current: {"node":"4.6.2","npm":"2.15.11"})
npm WARN engine punycode@2.1.1: wanted: {"node":">=6"} (current: {"node":"4.6.2","npm":"2.15.11"})
npm WARN unmet dependency /home/pi/pimatic-app/node_modules/pimatic/node_modules/express requires body-parser@'1.18.3' but will load
npm WARN unmet dependency /home/pi/pimatic-app/node_modules/pimatic/node_modules/body-parser,
npm WARN unmet dependency which is version 1.19.0
pimatic@0.9.48 pimatic-app/node_modules/pimatic
├── cookie-parser@1.4.4 (cookie-signature@1.0.6, cookie@0.3.1)
├── connect-timeout@1.9.0 (ms@2.0.0, on-headers@1.0.2, on-finished@2.3.0, http-errors@1.6.3)
├── cookie-session@1.3.3 (on-headers@1.0.2, cookies@0.7.3, debug@2.6.9)
├── method-override@2.3.10 (methods@1.1.2, vary@1.1.2, parseurl@1.3.3, debug@2.6.9)
├── cross-spawn@5.1.0 (shebang-command@1.2.0, lru-cache@4.1.5, which@1.3.1)
├── body-parser@1.19.0 (content-type@1.0.4, bytes@3.1.0, depd@1.1.2, on-finished@2.3.0, qs@6.7.0, raw-body@2.4.0, http-errors@1.7.2, debug@2.6.9, type-is@1.6.18, iconv-lite@0.4.24)
├── logrotate-stream@0.2.5 (byt@0.1.0, log-rotate@0.2.8, optimist@0.6.1)
├── request-promise@2.0.1 (bluebird@2.11.0, request@2.88.0)
└── yet-another-jsonlint@1.0.1 (commander@2.20.0, JSV@4.0.2)
However, having now a full pimatic-app directory, I copied back my config.json and the -database and also the fromerly saved plugin directories and started pimatic.
Showing the status says:
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic; generated; vendor preset: enabled)
Active: active (running) since Fri 2019-06-21 00:39:14 CEST; 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 1122 ExecStop=/etc/init.d/pimatic stop (code=exited, status=0/SUCCESS)
Process: 1135 ExecStart=/etc/init.d/pimatic start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/pimatic.service
└─1147 /usr/local/bin/node /usr/local/bin/pimatic.js start
Jun 21 00:39:13 pimatic systemd[1]: Starting LSB: pimatic service...
Jun 21 00:39:14 pimatic pimatic[1135]: Started.
Jun 21 00:39:14 pimatic systemd[1]: Started LSB: pimatic service.
… but I’m not able to reach the front via browser, nether via PC, nor via iPhone.
Has someone an idea on that?
Many thanks in advance.