- 20180626, V0.9.43
- Added log output for Node.js and OpenSSL version on startup
- Include id on “device not found” error, issue #1100
- Added new functions: sign, trunc, diffDate, log
- Replaced deprecated
__defineGetter__
feature withObject.defineProperty()
API - Removed gittip badge as Gittip/Gratipay went out of business
-
Released pimatic@0.9.43
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
After update I have error on log and events page: Cannot read property ‘trx’ of undefined
Pimatic = Smart Home
-
@wutu Strange. Works for me. Do you get a stack trace logged?
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@wutu said in Released pimatic@0.9.43:
After update I have error on log and events page: Cannot read property ‘trx’ of undefined
+1
Looks like i am unable to load graphs aswell
Looked like the restart didn’t kickoff properly, so i restarted my DOCKER, now the container doesn’t start at all…
at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/home/pimatic-app/node_modules/pimatic/coffee-cache.js:27:14) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3)
-
Same for me. After updating I got this message in “Updates”:
npm WARN deprecated jayschema@0.3.2: this project is no longer maintained
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to “coffeescript” (no hyphen)
Error: Cannot find module './dir-reader.js’
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 Packer.Reader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/reader.js:53:19)
at Packer.DirReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/dir-reader.js:35:10)
at Packer.IgnoreReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:68:13)
at new Packer (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:23:10)
at pack (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:48:3)
at Object.pack (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:43:5)
Error: Cannot find module './dir-reader.js’
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 Packer.Reader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/reader.js:53:19)
at Packer.DirReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/dir-reader.js:35:10)
at Packer.IgnoreReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:68:13)
at new Packer (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:23:10)
at pack (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:48:3)
at Object.pack (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:43:5)
npm ERR! cb() never called!Got message “Update were sucessful…” but restarting gives error message with exit code 1.
-
Same problem here. I think that the webserver didn’t start. Open ports only port22 / ssh.
Any solutions?
The result of :
tail -f pimatic-app/pimatic-daemon.log
is:
[pimatic] error: Cannot read property 'trx' of undefined
And here the “complete log”:
20:06:33.862 [pimatic, ppm] info: WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) 20:06:33.945 [pimatic, ppm] info: WARN deprecated jayschema@0.3.2: this project is no longer maintained 20:06:42.665 [pimatic, ppm] info: Error: Cannot find module './dir-reader.js' 20:06:42.670 [pimatic, ppm] info: at Function.Module._resolveFilename (module.js:325:15) 20:06:42.698 [pimatic, ppm] info: at Function.Module._load (module.js:276:25) 20:06:42.702 [pimatic, ppm] info: at Module.require (module.js:353:17) 20:06:42.707 [pimatic, ppm] info: at require (internal/module.js:12:17) 20:06:42.711 [pimatic, ppm] info: at Packer.Reader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/reader.js:53:19) 20:06:42.716 [pimatic, ppm] info: at Packer.DirReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/dir-reader.js:35:10) 20:06:42.723 [pimatic, ppm] info: at Packer.IgnoreReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:68:13) 20:06:42.727 [pimatic, ppm] info: at new Packer (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:23:10) 20:06:42.731 [pimatic, ppm] info: at pack_ (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:48:3) 20:06:42.735 [pimatic, ppm] info: at Object.pack (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:43:5) 20:06:42.784 [pimatic, ppm] info: Error: Cannot find module './dir-reader.js' 20:06:42.788 [pimatic, ppm] info: at Function.Module._resolveFilename (module.js:325:15) 20:06:42.793 [pimatic, ppm] info: at Function.Module._load (module.js:276:25) 20:06:42.796 [pimatic, ppm] info: at Module.require (module.js:353:17) 20:06:42.800 [pimatic, ppm] info: at require (internal/module.js:12:17) 20:06:42.803 [pimatic, ppm] info: at Packer.Reader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/reader.js:53:19) 20:06:42.807 [pimatic, ppm] info: at Packer.DirReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream/lib/dir-reader.js:35:10) 20:06:42.818 [pimatic, ppm] info: at Packer.IgnoreReader (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:68:13) 20:06:42.821 [pimatic, ppm] info: at new Packer (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:23:10) 20:06:42.824 [pimatic, ppm] info: at pack_ (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:48:3) 20:06:42.827 [pimatic, ppm] info: at Object.pack (/home/pi/pimatic-app/node_modules/pimatic/node_modules/npm/lib/utils/tar.js:43:5) 20:06:42.844 [pimatic, ppm] info: ERR! cb() never called! 20:06:42.914 [pimatic] error: Error installing plugin pimatic: Error running "./node_modules/pimatic/ppm.js install pimatic@0.9.43 --unsafe-perm" 20:06:42.938 [pimatic] info: Installing: "pimatic-dwd-weather@0.9.5" from npm-registry. 20:06:43.494 [pimatic, ppm] info: module.js:327 20:06:43.498 [pimatic, ppm] info: throw err; 20:06:43.506 [pimatic, ppm] info: ^ 20:06:43.509 [pimatic, ppm] info: Error: Cannot find module 'npm' 20:06:43.511 [pimatic, ppm] info: at Function.Module._resolveFilename (module.js:325:15) 20:06:43.514 [pimatic, ppm] info: at Function.Module._load (module.js:276:25) 20:06:43.516 [pimatic, ppm] info: at Module.require (module.js:353:17) 20:06:43.519 [pimatic, ppm] info: at require (internal/module.js:12:17) 20:06:43.526 [pimatic, ppm] info: at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic/ppm.js:9:11) 20:06:43.529 [pimatic, ppm] info: at Module._compile (module.js:409:26) 20:06:43.531 [pimatic, ppm] info: at Object.Module._extensions..js (module.js:416:10) 20:06:43.548 [pimatic, ppm] info: at Module.load (module.js:343:32) 20:06:43.551 [pimatic, ppm] info: at Function.Module._load (module.js:300:12) 20:06:43.554 [pimatic, ppm] info: at Function.Module.runMain (module.js:441:10) 20:06:43.629 [pimatic] error: Error installing plugin pimatic-dwd-weather: Error running "./node_modules/pimatic/ppm.js install pimatic-dwd-weather@0.9.5 --unsafe-perm" 20:08:47.254 [pimatic-dwd] debug: warnWetter.loadWarnings({"time":1530035935000,"warnings":{},"vorabInformation":{},"copyright":"Copyright Deutscher Wetterdienst"}); 20:08:47.267 [pimatic-dwd] debug: Received and parsed new data from DWD 20:08:47.271 [pimatic-dwd] debug: no warning data in json for device dwd-wetter 20:08:47.274 [pimatic-dwd] debug: no notification data in json for device dwd-wetter``` And after restart: ```20:25:38.387 [pimatic] info: Restarting... 20:25:38.932 [pimatic] error: Error restarting pimatic: Error restarting pimatic, exit code 1 20:25:53.086 [pimatic] error: Cannot read property 'trx' of undefined``` Any solutions?
-
is it possible to fix this problem? i tried to copy back a backup of pimaticapp folder - every same problem. What can i do? I have only a very old complete backup of the raspbian sdcard
-
@miss-erfolg Same problem here. Hope there is an easy way to fix this.
-
Same problem here.
-
Not a solution, but a workaround:
- Moved dir pimatic-app to pimatic-app_old
- Recreated dir pimatic-app
- Reinstalled pimatic (npm install pimatic --prefix pimatic-app --production)
npm shows lots of warnings, but install is successful.
- Copy config.json to the new install.
- Linked the new install.
After that pimatic is running again.
-
@elektronaut Thanks for reporting. I am glad it worked for you and this may also help other users to overcome the issues
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@elektronaut Thank you for your solution.
This works for me:
- cp pimatic-app pimatic-app.bak
- npm install pimatic --prefix pimatic-app --production
-
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 againcurl -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!