Did you change to the pimatic directory before?
cd ~/pimatic-app/
Pimatic stopped working
Did you change to the pimatic directory before?
cd ~/pimatic-app/
Maybe the sd is broken.
17:53:43.807 2019-01-20 Sunday
/home/pi/pimatic-app/node_modules/pimatic/node_modules/i18n/node_modules/debug/s rc/node.js:132
let val = process.env[key];
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet sup ported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffe e-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/node_module s/i18n/node_modules/debug/src/index.js:9:19)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffe e-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/node_module s/i18n/i18n.js:16:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffe e-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/node_module s/i18n/index.js:1:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffe e-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/lib/users.c offee:2:6)
at Module._compile (module.js:409:26)
at Object.compile (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js :170:17)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffe e-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/startup.cof fee:14:13)
at Module._compile (module.js:409:26)
at Object.compile (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js :170:17)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffe e-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at run (/home/pi/pimatic-app/node_modules/pimatic/pimatic.js:15:3)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/pimatic.js: 20:3)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:990:3```
How long has the Pi been running on this SD card? My experience is that the cards fail after about 6 months, that’s why I boot from an external usb drive. Do you have a backup-image of the SD card?
At least a year old, maybe older because of the previous owner. I don’t have a back-up as far as I know.
But I understand the code says there is something wrong with the SD-card? Or could it be something else too?
I’m not a developer so i can’t answer the question about the code. I was just hoping Pimatic wouldn’t start because of a wrong path. Worst case you might have to do a fresh install (on a fresh SD card) so i would advice to at least make a backup now of the files /home/pi/pimatic-app/config.json
and /home/pi/pimatic-app/pimatic-database.sqlite
so you don’t lose the configuration.
hi,
i have exactly the same error message with a new install on a pi 3b+.
jay
Had a closer look at the error messages. I guess you have updated and now it is not working any more.
Explanation and solution here:
https://forum.pimatic.org/topic/4432/install-pimatic-failing/13
easiest is this solution:
manually patch ~/pimatic-app/node-modules/i18n/package.json to refer to debug 3.x instead of *
and remove the node-modules folder there
and npm install again there
Thanks for looking into it!
As I mentioned I’m not an expert at coding, so how do I manually patch the package.json file? Which steps do I have to take?
Thanks in advance!