Error: EACCES: permission denied, mkdir '/root/.homebridge/plugin-persist/homebridge-broadlink-rm'
See original GitHub issuehi,
I installed oznu/docker-homebridge in synology docker, and when I add the platform “homebridge-broadlink-rm”, this err was append:
Error: EACCES: permission denied, mkdir ‘/root/.homebridge/plugin-persist/homebridge-broadlink-rm’
can you tell me how to fix this bug? thanks a lot.
`
date | stream | content |
---|---|---|
2018-03-22 16:53:07 | stdout | *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister |
2018-03-22 16:53:07 | stdout | *** WARNING *** Please fix your application to use the native API of Avahi! |
2018-03-22 16:53:07 | stdout | *** WARNING *** The program ‘node’ called ‘DNSServiceRegister()’ which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. |
2018-03-22 16:53:07 | stdout | *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node |
2018-03-22 16:53:07 | stdout | *** WARNING *** Please fix your application to use the native API of Avahi! |
2018-03-22 16:53:07 | stdout | *** WARNING *** The program ‘node’ uses the Apple Bonjour compatibility layer of Avahi. |
2018-03-22 16:53:06 | stdout | -U /homebridge -P /homebridge/node_modules |
2018-03-22 16:53:00 | stdout | |
2018-03-22 16:53:00 | stdout | at bootstrap_node.js:609:3 |
2018-03-22 16:53:00 | stdout | at startup (bootstrap_node.js:188:16) |
2018-03-22 16:53:00 | stdout | at Function.Module.runMain (module.js:693:10) |
2018-03-22 16:53:00 | stdout | at Function.Module._load (module.js:497:3) |
2018-03-22 16:53:00 | stdout | at tryModuleLoad (module.js:505:12) |
2018-03-22 16:53:00 | stdout | at Module.load (module.js:565:32) |
2018-03-22 16:53:00 | stdout | at Object.Module._extensions…js (module.js:663:10) |
2018-03-22 16:53:00 | stdout | at Module._compile (module.js:652:30) |
2018-03-22 16:53:00 | stdout | at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) |
2018-03-22 16:53:00 | stdout | at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10) |
2018-03-22 16:53:00 | stdout | at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36) |
2018-03-22 16:53:00 | stdout | at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:304:32) |
2018-03-22 16:53:00 | stdout | at new BroadlinkRMPlatform (/homebridge/node_modules/homebridge-broadlink-rm/platform.js:23:29) |
2018-03-22 16:53:00 | stdout | at new HomebridgePlatform (/homebridge/node_modules/homebridge-platform-helper/platform.js:14:21) |
2018-03-22 16:53:00 | stdout | at Object.init (/homebridge/node_modules/homebridge-platform-helper/helpers/persistentState.js:10:15) |
2018-03-22 16:53:00 | stdout | at Object.nodePersist.initSync (/homebridge/node_modules/node-persist/src/node-persist.js:37:32) |
2018-03-22 16:53:00 | stdout | at LocalStorage.initSync (/homebridge/node_modules/node-persist/src/local-storage.js:142:14) |
2018-03-22 16:53:00 | stdout | at LocalStorage.parseStorageDirSync (/homebridge/node_modules/node-persist/src/local-storage.js:619:20) |
2018-03-22 16:53:00 | stdout | at Function.sync (/homebridge/node_modules/mkdirp/index.js:71:13) |
2018-03-22 16:53:00 | stdout | at Object.fs.mkdirSync (fs.js:885:18) |
2018-03-22 16:53:00 | stdout | Error: EACCES: permission denied, mkdir ‘/root/.homebridge/plugin-persist/homebridge-broadlink-rm’ |
2018-03-22 16:53:00 | stdout | |
2018-03-22 16:53:00 | stdout | ^ |
2018-03-22 16:53:00 | stdout | throw err0; |
2018-03-22 16:53:00 | stdout | /homebridge/node_modules/mkdirp/index.js:90 |
2018-03-22 16:53:00 | stdout | [2018-3-22 16:53:00] [Broadlink RM] Initializing BroadlinkRM platform… |
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Error: EACCES: permission denied - node.js - Stack Overflow
This command fix the issue. It worked for me: sudo npm install -g --unsafe-perm=true --allow-root.
Read more >How to fix EACCES errors with NPM on MacOS - WILL & SKILL
There are times when You get an ugly EACCES error message from NPM when You try to install an NPM package ... Error:...
Read more >How to fix ( Error: EACCES: permission denied, mkdir )
I ran into permission issue even while I am running the install command as sudo user. Running with the –unsafe-perm=true –allow-root fixed it....
Read more >v14.17.5 NPM - Laracasts
I'm trying to install the nuxt sentry module but getting this error message: ... Error: EACCES: permission denied, mkdir '/root/.npm/sentry-cli'. npm ERR!
Read more >Developer help - Ghost Forum
Stack: Error: EACCES: permission denied, mkdir ... So it's also something I can't do as root because the command requires a non-root user....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @oznu
3.4.0 makes use of
homebridge.user.storagePath()
If only they’d documented that method 😃Now all is ok, thanks a lot.