I have had the exact same errors during install and there was no way to fix it. I tried all options mentioned here like the backup and do a new install “npm install pimatic --prefix pimatic-app --production”, or the “sudo npm install pimatic@0.9.42 --prefix pimatic-app --production”.
Nothing! The 0.9.43 did not install correct. The 0.9.42 installed correctly but would not start.
I did the upgrade (tried the upgrade) just yesterday evening after my holidays.
So after a couple of hours trying, I finally restored pimatic from my (last week) Sat/Sun full server backup.
Now I’m back on 0.9.42
It is globally installed and it is autostarted via the init.d script. Next to that it is “ssl-ed” and running on a 443 port.
Updates mentions (now again):
Found update for pimatic: current version is 0.9.42, latest version is: 0.9.43
Found update for pimatic-knmi-weather: current version is 0.9.3, latest version is: 0.9.4
Found update for pimatic-telegram: current version is 1.1.10, latest version is: 1.1.11
Plugins installed:
"plugins": [
{
"plugin": "cron"
},
{
"plugin": "mobile-frontend",
"customTitle": "DomoPi"
},
{
"plugin": "shell-execute"
},
{
"plugin": "openweather",
"apiKey": "e28b473c8de9dea45e756481edc444b4"
},
{
"plugin": "homeduino",
"driver": "serialport",
"driverOptions": {
"serialDevice": "/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0",
"baudrate": 115200
},
"receiverPin": 0,
"transmitterPin": 4,
"enableReceiving": true,
"active": true
},
{
"plugin": "sunrise",
"latitude": 52.48278,
"longitude": 6.12428
},
{
"plugin": "iframe",
"active": true
},
{
"interval": 31,
"plugin": "knmi-weather",
"active": true
},
{
"plugin": "sysinfo",
"active": true
},
{
"apiToken": "<removed>",
"recipients": [
{
"name": "Harry",
"userChatId": "<removed>",
"enabled": true
},
{
"name": "Margreet",
"userChatId": "<removed>",
"enabled": true
}
],
"plugin": "telegram",
"active": true
}
],
Running on:
Raspberry Pi3, did a “sudo apt-get update; sudo apt-get upgrade” before updating my pimatic to 0.9.43.
uname -a: Linux RPi3 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
node --version: v4.8.3
cat /etc/os-release:
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Anything else you need to know to track this back to it’s errors?