aldoori
November 17, 2016, 4:02pm
#1
when i run this
npm upgrade matrix-firebase matrix-node-sdk matrix-app-config-helper
Uncaught exception: { Error: EACCES: permission denied, open '/home/pi/matrix-os/db/service.db'
at Error (native)
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/home/pi/matrix-os/db/service.db' } Error: EACCES: permission denied, open '/home/pi/matrix-os/db/service.db'
at Error (native)
UNKNOWN ERROR! Error: EACCES: permission denied, open '/home/pi/matrix-os/db/service.db'
at Error (native)
Unable to clean, exitting...
what should i do??
try using sudo to run the command.
aldoori
November 24, 2016, 2:23pm
#3
pi@raspberrypi:~/matrix-os $ sudo npm upgrade matrix-firebase matrix-node-sdk matrix-app-config-helper
pi@raspberrypi:~/matrix-os $ NODE_ENV=rc node index.jsEnvironment Selected: rc
Loading Core Matrix Files
Loading... device
Loading... event
Loading... service
Dependencies up to date.
Uncaught exception: { Error: EACCES: permission denied, open '/home/pi/matrix-os/db/service.db'
at Error (native)
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/home/pi/matrix-os/db/service.db' } Error: EACCES: permission denied, open '/home/pi/matrix-os/db/service.db'
at Error (native)
UNKNOWN ERROR! Error: EACCES: permission denied, open '/home/pi/matrix-os/db/service.db'
at Error (native)
Unable to clean, exitting...
try sudo the second command as well…
aldoori
November 24, 2016, 4:47pm
#5
~/matrix-os $ sudo NODE_ENV=rc node index.js
Environment Selected: rc
Loading Core Matrix Files
Loading... device
module.js:457
throw err;
^
Error: Cannot find module 'mic'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/pi/matrix-os/lib/device/drivers/mic.js:7:11)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
HI @aldoori ,
Can you try:
$ rm -rf node_modules && npm install
If you run into permissions erros try this instead:
$ sudo rm -rf node_modules && sudo npm install
Let us know how it goes.
Yoel
Roger
December 1, 2016, 7:28pm
#7
I am getting the same type of errors as @aldoori . I tried the suggested remove/reinstall. I am still getting the same errors when trying to launch the matrix-os. Many error and warning message occur when installing.
1 Like
Please do not sudo npm install
or sudo npm upgrade
anything. This makes all the modules you install have superuser permissions and will generate non-standard behavior.
The way to solve the original issue was to chmod 777 db/*
from the matrix-os directory, I believe. It shouldn’t have been an issue though.
1 Like
Thanks for response creatorsean!