My first bigger problem after more than a year of totally unpoblematically running of pimatic.
Today I installed pimatic version 0.9.43 with the pimatic web frontend. After this update pimatic did not restart because of errors. To overcome this I did some further steps, so this is only the start of the problems.
I run pimatic server a small desktop pc with a VIA i386 motherboard and normal hd. OS is Debian Stretch, no keyboard, no display, serial TTYS0 connection to my desktop.
I used a new directory ‘pimatic-app’. Before I installed pimatic again I copied ‘node_modules’ and ‘echo-database’ (for echo plugin) directories and ‘config.json’ and ‘pimatic-database.sqlite’ files from the old installtion to the new directory
Than I reinstalled Node.js from Debian Stretch (apt-get install --reinstall) version 4.9.1 and after this pimatic (as described in doc) to the new directory. Now I started pimatic. It started up normally with all plugins loading and the scanning of the devices. Until the listening at port 80 everything was normal. The behavier ot the devices controlled on startup was so as it was always.
After I started web frontend in a browser the error display in the logfile began.
23:50:46.986 [pimatic-mobile-frontend] error:>Message: Unable to process binding "template: function(){return { name:'device-group-template',foreach:$root.groups} }"
23:50:46.986 [pimatic-mobile-frontend] error:>Message: Unable to process binding "if: function(){return $root.enabledEditing() || $parent.getDevicesInGroup($data.id).length > 0 }"
23:50:46.986 [pimatic-mobile-frontend] error:>Message: Unable to process binding "if: function(){return !$root.isGroupCollapsed($parent,$data) }"
23:50:46.986 [pimatic-mobile-frontend] error:>Message: Unable to process binding "template: function(){return { name:$root.getItemTemplate,foreach:$parent.getDevicesInGroup($data.id),afterRender:$parent.afterRenderDevice} }"
23:50:46.986 [pimatic-mobile-frontend] error:>Message: Unable to process binding "if: function(){return jsonDataWarnings().length == 0 }"
23:50:46.986 [pimatic-mobile-frontend] error:>Message: Cannot read property 'length' of undefined
The display in the web browser is a collection of different elements of the pimatic frontend pages and not useable.
I reinstalled the pimatic-mobile-frontend plugin but this did not help.
It would hurt me, if I would lose the configuration in config.json and the data in the database.
What can I do? Should I delete the ‘node_modules’ directory? Will everything be rebuild if I do that? Is there anything I can do with the database?