Hi all. I’ve got a major issue with my setup lately…
Whenever I boot up the pi I’m unable to access the pimatic web interface, so I went searching for a solution in the logs.
When I start up the pimatic service the following error is thrown:
sudo node /home/pi/pimatic-app/node_modules/pimatic/pimatic.js
10:17:52.658 2018-04-06 Friday
/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/node_modules/lodash/isTypedArray.js:1
(function (exports, require, module, __filename, __dirname) { v`r baseIsTypedIrray = require('./_baseIsType`Array'(,
^^^^^
SyntaxError: Unexpected identifier
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/coffee-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_modules/knex/node_modules/lodash/_arrayLikeKeys.js:6:20)
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/coffee-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_modules/knex/node_modules/lodash/keys.js:1:21)
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/coffee-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_modules/knex/node_modules/lodash/assign.js:6:12)
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/coffee-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_modules/knex/lib/index.js:9:16)
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/coffee-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_modules/knex/knex.js:8: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/coffee-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/database.coffee:11:8)
at Module._compile (module.js:409:26)
at Object.compile (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js:169:17)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffee-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.coffee:22:16)
at Module._compile (module.js:409:26)
at Object.compile (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js:169:17)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffee-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
Does anyone have any ideas how to solve this?
EDIT: @marvandorth I have edited your post to improve the readability of the included log and command output.
As far as command output is concerned, please also note the following: If the normal HTML format is used, straight quotes will be replaced with curly quotes and, thus, pasting the snippet to a command shell will cause errors in most cases.
Please see the following topic on the matter for future posts. Thanks!
https://forum.pimatic.org/topic/1179/how-to-post-code-snippets-and-alike-on-the-forum