@elektronaut Thank you for your solution.
This works for me:
- cp pimatic-app pimatic-app.bak
- npm install pimatic --prefix pimatic-app --production
Released pimatic@0.9.43
@elektronaut Thank you for your solution.
This works for me:
Unfortunately not an option for me since the Docker container on my NAS wont even boot. Hoping for a fix where we only have to alter the config…
@mwittig said in Released pimatic@0.9.43:
@elektronaut Thanks for reporting. I am glad it worked for you and this may also help other users to overcome the issues
Does this mean this is no longer under investigation?
I cannot start my Docker container anymore so unless somebody is able to solve this by altering the configfile i have lost all my historical data, not too happy with that…
Whats about the configuration-files and the database? Do I have to copy these files from the old to the new installation-folder? Where are these files?
@miss-erfolg said in Released pimatic@0.9.43:
Do I have to copy these files from the old to the new installation-folder? Where are these files?
The files are in the pimatic-app folder. I did not copy the database, just the config.json. I do not know, if it is possible to copy the database to a new install.
Same problem here.
This is my solution:
It is better to do a backup:
sudo cp -arv pimatic-app/ pimatic-app.bak
Don’t delete the original-folder. Make a new installation in the original folder:
sudo npm install pimatic --prefix pimatic-app --production
npm shows a lot of warnings and errors (at the end), but it works.
It is not necessary to copy the ‘config.json’ and the datatabase-file ‘pimatic-database.sqlite’ from the backup to the live-folder. The new installation will use the config.json and the database.
Agree with all previous messages
*** Running update from http://mypimatic/#updates-page
-> Errors and cannot be restarted
*** Finally repair with:
sudo npm install pimatic --prefix pimatic-app --production
sudo pimatic-app/node_modules/pimatic/pimatic.js
*** and it works again
curl -s https://github.com/pimatic/pimatic/blob/master/package.json | grep version | grep span | awk -F> {‘print $11’} | awk -F< {‘print $1’} reports the old version 0.9.42
Please modify package.json!
My story:
pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js
module.js:327
throw err;
^
Error: Cannot find module 'fs.extra’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js:27:14)
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 Module.require (module.js:353:17)
pi@raspberrypi:~/pimatic-app $ sudo npm i -g fs-extra
fs-extra@6.0.1 /usr/local/lib/node_modules/fs-extra
├── universalify@0.1.2
├── jsonfile@4.0.0
└── graceful-fs@4.1.11
pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js
module.js:327
throw err;
^
Error: Cannot find module 'fs.extra’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js:27:14)
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 Module.require (module.js:353:17)
pi@raspberrypi:~/pimatic-app $
Alternatively to restore the previous version. It works.
npm install pimatic@0.9.42
I am looking for a bugfix for 0.9.43.
Is the update fixed yet ?
Nope, i downgraded.
stopped my update now i`m stuck…
nvm i fixed the problem used method of NoFrog<< Thanks!
After making a backup of my well running 0.9.42 version I made a clean installation of 0.9.43. Except the log reader everything was working immediately.
The log reader was shown as “activated” in the plugin section, but not as “loaded”. I restored the “pimatic-log-reader” folder from my bkp. Now everything is running.
Thx for the update!
I really was looking forward that following problem is handled with a coming update:
Unhandled rejection Error: Expected variable sonnensensor.temp-high to have a numeric value.
at /home/pi/pimatic-app/node_modules/pimatic/lib/variables-ast-builder.coffee:111:17
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:396:17)
Should I open an issue on gitHub?
After the update I did
$ sudo npm install
In the node-modules/pimatic directory. I think this solved it without reinstalling
pimatic-hap - pimatic HomeKit bridge
pimatic-echo - Amazon echo integration
pimatic-dash-button - Amazon dash button support
pimatic-alarm - pimatic alarm system
Like my work? Then consider a donation
Follow me: https://twitter.com/michaelkotten
I have same problems. npm install afterwrds kinda fixes it, but I had very unstable system when needed to reboot. Most of the times pimatic wont start after reboot. I’m using old version from backup until this is fixed.
+1
Did not have time to reinstall Pimatic yet.
Error : can not read property trx of undefined.
What is best solution, reinstall new or downgrade?