Giter Site home page Giter Site logo

dockeriot's People

Contributors

fragolinux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dockeriot's Issues

nodered - Error: EACCES: permission denied even though running under root

I am getting the following error, although I run DockerIOT under root. Did I miss something in the readme?

nodered  | Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
nodered  |     at Object.copyFileSync (node:fs:2847:3)
nodered  |     at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:64:6)
nodered  |     at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:50:25)
nodered  |     at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:42:44)
nodered  |     at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:32:10)
nodered  |     at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:129:20)
nodered  |     at Module._compile (node:internal/modules/cjs/loader:1198:14)
nodered  |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
nodered  |     at Module.load (node:internal/modules/cjs/loader:1076:32)
nodered  |     at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
nodered  |   errno: -13,
nodered  |   syscall: 'copyfile',
nodered  |   code: 'EACCES',
nodered  |   path: '/usr/src/node-red/node_modules/node-red/settings.js',
nodered  |   dest: '/data/settings.js'
nodered  | }
nodered  | node:internal/fs/utils:347
nodered  |     throw err;
nodered  |     ^
nodered  | 
nodered  | Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
nodered  |     at Object.copyFileSync (node:fs:2847:3)
nodered  |     at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:64:6)
nodered  |     at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:50:25)
nodered  |     at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:42:44)
nodered  |     at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy/copy-sync.js:32:10)
nodered  |     at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:129:20)
nodered  |     at Module._compile (node:internal/modules/cjs/loader:1198:14)
nodered  |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
nodered  |     at Module.load (node:internal/modules/cjs/loader:1076:32)
nodered  |     at Function.Module._load (node:internal/modules/cjs/loader:911:12) {
nodered  |   errno: -13,
nodered  |   syscall: 'copyfile',
nodered  |   code: 'EACCES',
nodered  |   path: '/usr/src/node-red/node_modules/node-red/settings.js',
nodered  |   dest: '/data/settings.js'
nodered  | }
root@raspberrypi:DockerIOT:12:54[0]> 

Like to get more information to setup and start (README with a 101 / recipe how to start)

Hi,
I just found a link to Peter Scargill's script and as I liked to get a similar setup on docker environments because of the flexibility, ease of use and ease of upgrade. Looking around if someone has done this already I found this project and wonder if there is a chance to contribute. I'm using docker/docker-compose already since almost 2 years and thus have some humble on hand experience.
A useful an low hanging fruit could be to use real (not self-signed) certificates with traefik and LetsEncrypt and I'm looking for some starter information to accelerate the bigin of using DockerIOT.
Is there a chance to get a short description what id the fast-start of these artefacts to get a default working environment to add my adaptions?
One of the issues with traeffik is that it normally uses a acme.json file to store all the certificates, but if used in the containers als well they might be extracted and provided in the "normal way" wir CER and PEM files.
Regards
Detlef

Nodered Influxdb “HttpError: unauthorized access”

With Nodered “influxdb out” node I get “HttpError: unauthorized access”
In the node :
URL : http://host:8086/
Token : “all access” generated on http://”host”:8086/org from an other computer

If I try with the container ip address of influxdb (172.25.0.2) I get “RequestTimedOutError: Request timed out”

No trouble with nodered and mosquito (with “host”)

What may be wrong ?

Nodered log with host

nodered | ERROR: Write to InfluxDB failed. m [HttpError]: unauthorized access
nodered | at IncomingMessage. (/data/node_modules/@influxdata/influxdb-client/dist/index.js:5:5671)
nodered | at IncomingMessage.emit (node:events:525:35)
nodered | at endReadableNT (node:internal/streams/readable:1358:12)
nodered | at processTicksAndRejections (node:internal/process/task_queues:83:21) {
nodered | statusCode: 401,
nodered | statusMessage: 'Unauthorized',
nodered | body: '{"code":"unauthorized","message":"unauthorized access"}',
nodered | contentType: 'application/json; charset=utf-8',
nodered | json: { code: 'unauthorized', message: 'unauthorized access' },
nodered | code: 'unauthorized',
nodered | _retryAfter: 0
nodered | }
nodered | 9 May 05:29:42 - [error] [influxdb out:7a2338e33be9c644] HttpError: unauthorized access

nodered log with 172.35.0.1

nodered | WARN: Write to InfluxDB failed (attempt: 5). x [RequestTimedOutError]: Request timed out
nodered | at ClientRequest. (/data/node_modules/@influxdata/influxdb-client/dist/index.js:5:6447)
nodered | at ClientRequest.emit (node:events:513:28)
nodered | at Socket.emitRequestTimeout (node:_http_client:839:9)
nodered | at Object.onceWrapper (node:events:627:28)
nodered | at Socket.emit (node:events:525:35)
nodered | at Socket._onTimeout (node:net:550:8)
nodered | at listOnTimeout (node:internal/timers:559:17)
nodered | at processTimers (node:internal/timers:502:7)
nodered | ERROR: Write to InfluxDB failed (attempt: 6). Error: Max retry time exceeded.
nodered | at F.sendBatch (/data/node_modules/@influxdata/influxdb-client/dist/index.js:4:9024)
nodered | at Timeout._onTimeout (/data/node_modules/@influxdata/influxdb-client/dist/index.js:4:6489)
nodered | at listOnTimeout (node:internal/timers:559:17)
nodered | at processTimers (node:internal/timers:502:7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.