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
-
Released pimatic@0.9.43
-
@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!
-
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.11pi@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!