Erreur permision node

#1

J’ai erreur dans permission node que dois-je faire ?
0|gladys | Error: EACCES: permission denied, unlink 'www/hooks/rpi-info/js/rpi.service.js'

Je n’arrive pas installer rpi-info et d’autre module non officiel.
Par contre le module speak à bien voulue s’installer.

  [email protected]:~ $ pm2 log
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 15 lines:
PM2        | [2019-05-09 17:09:09] PM2 log: Time                 : Thu May 09 2019 17:09:09 GMT+0200 (CEST)
PM2        | [2019-05-09 17:09:09] PM2 log: PM2 version          : 2.10.1
PM2        | [2019-05-09 17:09:09] PM2 log: Node.js version      : 8.9.4
PM2        | [2019-05-09 17:09:09] PM2 log: Current arch         : arm
PM2        | [2019-05-09 17:09:09] PM2 log: PM2 home             : /home/pi/.pm2
PM2        | [2019-05-09 17:09:09] PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
PM2        | [2019-05-09 17:09:09] PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
PM2        | [2019-05-09 17:09:09] PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
PM2        | [2019-05-09 17:09:09] PM2 log: Application log path : /home/pi/.pm2/logs
PM2        | [2019-05-09 17:09:09] PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
PM2        | [2019-05-09 17:09:09] PM2 log: Concurrent actions   : 2
PM2        | [2019-05-09 17:09:09] PM2 log: SIGTERM timeout      : 1600
PM2        | [2019-05-09 17:09:09] PM2 log: ===============================================================================
PM2        | [2019-05-09 17:09:09] PM2 log: Starting execution sequence in -fork mode- for app name:gladys id:0
PM2        | [2019-05-09 17:09:09] PM2 log: App name:gladys id:0 online

/home/pi/.pm2/logs/gladys-error-0.log last 15 lines:
0|gladys   | Error: EACCES: permission denied, unlink 'www/hooks/rpi-info/js/rpi.service.js'
0|gladys   | Module installation failed! Cleaning folder
0|gladys   | (node:886) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Command failed: npm install --prefix ./api/hooks/kodi-remote > /dev/null
0|gladys   | npm ERR! code ETARGET
0|gladys   | npm ERR! notarget No matching version found for [email protected]^0.0.2
0|gladys   | npm ERR! notarget In most cases you or one of your dependencies are requesting
0|gladys   | npm ERR! notarget a package version that doesn't exist.
0|gladys   | npm ERR! notarget
0|gladys   | npm ERR! notarget It was specified as a dependency of 'kodi-remote'
0|gladys   | npm ERR! notarget
0|gladys   |
0|gladys   | npm ERR! A complete log of this run can be found in:
0|gladys   | npm ERR!     /home/pi/.npm/_logs/2019-05-09T15_21_54_909Z-debug.log
0|gladys   |
0|gladys   | (node:886) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

/home/pi/.pm2/logs/gladys-out-0.log last 15 lines:
0|gladys   | Cloning module kodi-remote...
0|gladys   | Installing NPM dependencies for module kodi-remote
0|gladys   | Module install : Fail to install NPM dependencies. Stderr :
0|gladys   | npm ERR! code ETARGET
0|gladys   | npm ERR! notarget No matching version found for [email protected]^0.0.2
0|gladys   | npm ERR! notarget In most cases you or one of your dependencies are requesting
0|gladys   | npm ERR! notarget a package version that doesn't exist.
0|gladys   | npm ERR! notarget
0|gladys   | npm ERR! notarget It was specified as a dependency of 'kodi-remote'
0|gladys   | npm ERR! notarget
0|gladys   |
0|gladys   | npm ERR! A complete log of this run can be found in:
0|gladys   | npm ERR!     /home/pi/.npm/_logs/2019-05-09T15_21_54_909Z-debug.log
0|gladys   |
0|gladys   | House : checkUsersPresence

0|gladys   | Cloning module rpi-info...
0|gladys   | Installing NPM dependencies for module rpi-info
0|gladys   | Copying assets...
0|gladys   | Module installation failed! Cleaning folder
0|gladys   | (node:886) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: EACCES: permission denied, unlink 'www/hooks/rpi-info/js/rpi.service.js'
0|gladys   | Cloning module speak...
0|gladys   | Installing NPM dependencies for module speak
0|gladys   | Socket disconnected, but session could not be loaded to pass to configured disconnect handler: `sails.config.sockets.afterDisconnect()`.  Will pass a fake, empty session as argument to lifecycle callback.  Details:
0|gladys   |  Error: Could not parse session id from cookie of connecting socket, and then failed again when trying to use a generated cookie. Something has probably gone wrong with your session store configuration.
0|gladys   |     at _createError (/home/pi/gladys/node_modules/sails-hook-sockets/lib/load-session-from-socket.js:44:17)
0|gladys   |     at loadSessionFromSocket (/home/pi/gladys/node_modules/sails-hook-sockets/lib/load-session-from-socket.js:47:7)
0|gladys   |     at Socket.onSocketDisconnect (/home/pi/gladys/node_modules/sails-hook-sockets/lib/on-connect.js:43:7)
0|gladys   |     at emitOne (events.js:116:13)
0|gladys   |     at Socket.emit (events.js:211:7)
0|gladys   |     at Socket.emit (/home/pi/gladys/node_modules/socket.io/lib/socket.js:141:10)
0|gladys   |     at Socket.onclose (/home/pi/gladys/node_modules/socket.io/lib/socket.js:441:8)
0|gladys   |     at Client.onclose (/home/pi/gladys/node_modules/socket.io/lib/client.js:235:24)
0|gladys   |     at emitTwo (events.js:131:20)
0|gladys   |     at Socket.emit (events.js:214:7)
0|gladys   |     at Socket.onClose (/home/pi/gladys/node_modules/engine.io/lib/socket.js:311:10)
0|gladys   |     at Object.onceWrapper (events.js:313:30)
0|gladys   |     at emitNone (events.js:106:13)
0|gladys   |     at WebSocket.emit (events.js:208:7)
0|gladys   |     at WebSocket.Transport.onClose (/home/pi/gladys/node_modules/engine.io/lib/transport.js:127:8)
0|gladys   |     at Object.onceWrapper (events.js:317:30)
0|gladys   |     at emitTwo (events.js:126:13)
0|gladys   |     at WebSocket.emit (events.js:214:7)
0|gladys   |     at WebSocket.cleanupWebsocketResources (/home/pi/gladys/node_modules/ws/lib/WebSocket.js:950:8)
0|gladys   |     at emitNone (events.js:111:20)
0|gladys   |     at Socket.emit (events.js:208:7)
0|gladys   |     at endReadableNT (_stream_readable.js:1055:12)
0|gladys   |     at _combinedTickCallback (internal/process/next_tick.js:138:11)
0|gladys   |     at process._tickDomainCallback (internal/process/next_tick.js:218:9)
0|gladys   | Copying assets...
0|gladys   | Dependencies installed for module speak
0|gladys   | Module speak installed with success. Need reboot.







PM2        | App [gladys] with id [0] and pid [886], exited with code [0] via signal [SIGINT]
PM2        | Starting execution sequence in -fork mode- for app name:gladys id:0
PM2        | App name:gladys id:0 online
0|gladys   | undefined
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   | Warning: connect.session() MemoryStore is not
0|gladys   | designed for a production environment, as it will leak
0|gladys   | memory, and will not scale past a single process.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | WARNING: You currently have your default CORS settings configured to allow
0|gladys   | all requests from all origins, with credentials.  This may leave your app
0|gladys   | open to attack by third-party sites!  Consider making your `origins` setting
0|gladys   | more restrictive or setting `credentials` to false, or else make certain that
0|gladys   | none of your routes perform sensitive actions or reveal secure information.
0|gladys   | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
0|gladys   | Gladys version : 3.13.0
0|gladys   | Gladys Gateway: Init Procedure : Getting keys from database
0|gladys   | Bootstrap is taking unusually long to execute its callback (2000 milliseconds).
0|gladys   | Perhaps you forgot to call it?  The callback is the first argument of the function, `cb`.
0|gladys   | Gladys brain loaded with success !
0|gladys   | Gladys database schema/data is up to date. No migration required. ( DB = 3.13.0 )
0|gladys   | Successfully checked DB version.
0|gladys   | Scheduled sunrise to 2019-5-9 06:35:14.
0|gladys   | Scheduled sunset to 2019-5-9 21:24:30.
0|gladys   |                .-..-.
0|gladys   |    Sails              <|    .-..-.
0|gladys   |    v0.12.14            |\
0|gladys   |                       /|.\
0|gladys   |                      / || \
0|gladys   |                    ,'  |'  \
0|gladys   |                 .-'.-==|/_--'
0|gladys   |                 `--'-------'
0|gladys   |    __---___--___---___--___---___--___
0|gladys   |  ____---___--___---___--___---___--___-__
0|gladys   | Server lifted in `/home/pi/gladys`
0|gladys   | To see your app, visit http://localhost:8080
0|gladys   | To shut down Sails, press <CTRL> + C at any time.
0|gladys   | -------------------------------------------------------
0|gladys   | :: Thu May 09 2019 17:32:03 GMT+0200 (CEST)
0|gladys   | Environment : production
0|gladys   | Port        : 8080
0|gladys   | -------------------------------------------------------
0|gladys   | Gladys Gateway: Not connected.
0|gladys   | Kodi module : Try connecting to 192.168.1.30:8080
0|gladys   | Kodi module : Successfully connected to 192.168.1.30:8080
0|gladys   | Event : create : new Event with code : devicetype-new-value
0|gladys   | Scenario : Trigger : New event : devicetype-new-value
0|gladys   | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.
0|gladys   | Gladys is up to date !
0|gladys   | New User connected : Flavien
0|gladys   | Event : create : new Event with code : gladys-launched
0|gladys   | Scenario : Trigger : New event : gladys-launched
0|gladys   | Scenario : Trigger : Found 0 launchers with code gladys-launched.
0|gladys   | Cloning module rpi-info...
0|gladys   | Installing NPM dependencies for module rpi-info
0|gladys   | Copying assets...
0|gladys   | Module installation failed! Cleaning folder
0|gladys   | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|gladys   | Error: EACCES: permission denied, unlink 'www/hooks/rpi-info/js/rpi.service.js'
0|gladys   | Socket disconnected, but session could not be loaded to pass to configured disconnect handler: `sails.config.sockets.afterDisconnect()`.  Will pass a fake, empty session as argument to lifecycle callback.  Details:
0|gladys   |  Error: Could not parse session id from cookie of connecting socket, and then failed again when trying to use a generated cookie. Something has probably gone wrong with your session store configuration.
0|gladys   |     at _createError (/home/pi/gladys/node_modules/sails-hook-sockets/lib/load-session-from-socket.js:44:17)
0|gladys   |     at loadSessionFromSocket (/home/pi/gladys/node_modules/sails-hook-sockets/lib/load-session-from-socket.js:47:7)
0|gladys   |     at Socket.onSocketDisconnect (/home/pi/gladys/node_modules/sails-hook-sockets/lib/on-connect.js:43:7)
0|gladys   |     at emitOne (events.js:116:13)
0|gladys   |     at Socket.emit (events.js:211:7)
0|gladys   |     at Socket.emit (/home/pi/gladys/node_modules/socket.io/lib/socket.js:141:10)
0|gladys   |     at Socket.onclose (/home/pi/gladys/node_modules/socket.io/lib/socket.js:441:8)
0|gladys   |     at Client.onclose (/home/pi/gladys/node_modules/socket.io/lib/client.js:235:24)
0|gladys   |     at emitTwo (events.js:131:20)
0|gladys   |     at Socket.emit (events.js:214:7)
0|gladys   |     at Socket.onClose (/home/pi/gladys/node_modules/engine.io/lib/socket.js:311:10)
0|gladys   |     at Timeout.<anonymous> (/home/pi/gladys/node_modules/engine.io/lib/socket.js:133:10)
0|gladys   |     at ontimeout (timers.js:475:11)
0|gladys   |     at tryOnTimeout (timers.js:310:5)
0|gladys   |     at Timer.listOnTimeout (timers.js:270:5)
#2

Je vois que j’ai d’autre erreur

0|gladys | at Query._callback (/home/pi/gladys/node_modules/sails-mysql/lib/connections/spawn.js:105:35)
0|gladys | at Query.Sequence.end (/home/pi/gladys/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
0|gladys | at Query._handleFinalResultPacket (/home/pi/gladys/node_modules/mysql/lib/protocol/sequences/Query.js:144:8)
0|gladys | at Query.EofPacket (/home/pi/gladys/node_modules/mysql/lib/protocol/sequences/Query.js:128:8)
0|gladys | at Protocol._parsePacket (/home/pi/gladys/node_modules/mysql/lib/protocol/Protocol.js:280:23)
0|gladys | at Parser.write (/home/pi/gladys/node_modules/mysql/lib/protocol/Parser.js:73:12)
0|gladys | at Protocol.write (/home/pi/gladys/node_modules/mysql/lib/protocol/Protocol.js:39:16)
0|gladys | at Socket. (/home/pi/gladys/node_modules/mysql/lib/Connection.js:96:28)
0|gladys | at emitOne (events.js:116:13)
0|gladys | at Socket.emit (events.js:211:7)
0|gladys | at addChunk (_stream_readable.js:263:12)
0|gladys | at readableAddChunk (_stream_readable.js:250:11)
0|gladys | at Socket.Readable.push (_stream_readable.js:208:10)
0|gladys | at TCP.onread (net.js:594:20)
0|gladys | Unable to parse HTTP body- error occurred :: ‘Error: request aborted\n at IncomingMessage.onAborted (/home/pi/gladys/node_modules/body-parser/node
_modules/raw-body/index.js:269:10)\n at emitNone (events.js:106:13)\n at IncomingMessage.emit (events.js:208:7)\n at abortIncoming (_http_server.js:412:9
)\n at socketOnClose (_http_server.js:406:3)\n at emitOne (events.js:121:20)\n at Socket.emit (events.js:211:7)\n at TCP._handle.close [as _onclose] (
net.js:554:12)’

Je ne sais pas si c’est lier, mais je ne peut pas crée de zone dans carte. Ça me dit erreur voir les log de gladys. Et dans les log (pm2 log) je n’ai pas d’erreur.