Version 4.1.0 does not run on my system, 4.0.9 does

Open
#493 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, docker-compose

Research direction

Start with the Docker Compose configuration in the issue and compare the nodered/node-red:4.0.9-debian and 4.1.0-debian images. Inspect the unhealthy container's Docker PS status and logs, including the health-check details, then verify whether the same configuration works with each image. Done means identifying a reproducible image-level cause or documenting the evidence needed for a fix.

Written by the indexing model from the issue text.

Description

After my previous problem of my own making (not remembering that I needed to update the version in the Docker Compose file), I first upgraded to 4.0.9. Today I saw that 4.1.0 was out a couple of days ago, so I tried to upgrade. But after using the exact same Docker Compose file, only changing 4.0.9 to 4.1.0 in the line FROM nodered/node-red:4.1.0-debian, I get "image unhealthy" with Docker PS and I can't connect to it on MQTT or the frontend (which stands chewing forever until I break it). I have no idea how to find out what the problem is, but this is my Docker Compose file:

services:
  node-red:
    build:
      dockerfile_inline: | 
        FROM  nodered/node-red:4.1.0-debian
        USER root
        RUN apt-get update \
          && apt-get install -y --no-install-recommends iputils-ping sshpass openssh-client
        USER node-red
    container_name: Node-RED
    privileged: true
    restart: no
    group_add:
        - "20"
    environment:
      - TZ=Europe/Oslo

    network_mode: host 
    devices:
      - /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A119M1VX-if00-port0:/dev/ttyUSB0
    volumes:
      - /media/pi/Docker/Docker-Compose/Node-RED/Data:/data
      - /media/pi/Docker/Docker-Compose:/home/pi/Docker-Compose:ro
      - /home/pi/.ssh/known_hosts:/usr/src/node-red/.ssh/known_hosts
      - type: bind
        source: /home/pi/Node-RED-omstarter.txt
        target: /home/pi/Node-RED-omstarter.txt

Stopping the container, running docker system prune -a and restarting/pulling again makes it work as it should with 4.0.9. I have tried going back and forth a few times, same result every time.

Dominant language
Shell
Stars
540
Forks
434
Avg merge
24m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from node-red/node-red-docker

All issues in node-red/node-red-docker

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.