Code Monkey home page Code Monkey logo

Comments (8)

Paraphraser avatar Paraphraser commented on September 22, 2024

You could try either of the following

image: nodered/node-red:3.0.2
image: nodered/node-red:2.2

See also DockerHub - you need to go to the second page to find older images.

from node-red-docker.

thalesmaoa avatar thalesmaoa commented on September 22, 2024

Thx @Paraphraser

I confirm that it does work for older version:

services:
  nodered-casa:
    #image: nodered/node-red:latest
    image: nodered/node-red:3.0.2
    container_name: nodered-casa
    restart: no
    ports:
      - '1881:1880'
    volumes:
      - ./data:/data
    environment:
      - TZ=America/Sao_Paulo
      - NODE_OPTIONS=--max_old_space_size=256
    logging:
      options:
        max-size: "100m"
        max-file: "3"

from node-red-docker.

Paraphraser avatar Paraphraser commented on September 22, 2024

And I can confirm that latest works on a Raspberry Pi 4B running Bullseye 64-bit.

I don't have a 3B so I can't test that hardware.

Although we'll have to wait for confirmation from the good folks who maintain this repo, I suspect your problem might turn out to be a Buster dependency. You might want to give some thought to upgrading to Bullseye or Bookworm.

from node-red-docker.

hardillb avatar hardillb commented on September 22, 2024

As the first error is getting thrown while trying to load Node-RED nodes can you include the package.json from your mounted /data directory so we can see what nodes you have installed.

Also have you installed any new nodes or upgraded a node recently?

from node-red-docker.

hardillb avatar hardillb commented on September 22, 2024

Also given the latest tag tracks Node-RED releases are you sure you had run this setup on Node-RED 3.1.0 before, especially as it runs with the 3.0.2 tag? When was the last time you pulled the container/

from node-red-docker.

hardillb avatar hardillb commented on September 22, 2024

As for the separate problem with setting an environment variable, I can't reproduce that locally wit the latest container and it shouldn't be possible looking at the entrypoint.sh script as the order of the script and the NODE_OPTIONS env var are the wrong way round.

/usr/local/bin/node $NODE_OPTIONS node_modules/node-red/red.js --userDir /data $FLOWS "${@}" &

from node-red-docker.

hardillb avatar hardillb commented on September 22, 2024

Also read #319

from node-red-docker.

thalesmaoa avatar thalesmaoa commented on September 22, 2024

Hi @hardillb , you gave me a lot of contributions. I really appreciate it.
You are correct. This is the only RPi running buster, others are all running bullseye. Your answer hit bullseye 😆.

Thx a lot!

I will upgrade, but the last post solve it for a while.

from node-red-docker.

Related Issues (20)

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.