24 Sep 08:46:50 - TypeError: Cannot read property 'emit' of undefined
at /data/node_modules/node-red-dashboard/ui.js:406:11
at _combinedTickCallback (internal/process/next_tick.js:95:7)
at process._tickCallback (internal/process/next_tick.js:161:9)
npm info lifecycle node-red-docker@1.0.0~start: Failed to exec start script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@1.0.0 start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-red-docker@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
And then, the server falls over every time after that. And that is without. single flow element created....
Ahh, thanks @knolleary, this must then be caused by the latest RPi docker image, I had to downgrade to nodered/node-red-docker:0.20.7-rpi , 0.20.8-rpi does not work.
For the same reason I have also downgraded to docker version 0.20.7-rpi-v8.
Here below my docker file.
#see https://hub.docker.com/r/nodered/node-red-docker
FROM nodered/node-red-docker:0.20.7-rpi-v8
# installing editor nano
USER root
RUN apt-get update && apt-get install nano
# Following command installs node-red-admin which is needed if you want to create a hashed password
# for the node-red editor. For that run command "node-red-admin hash-pw" in a terminal window
# for the node-red service in the BalenaCloud dashboard.
RUN npm install -g --unsafe-perm node-red-admin
# see https://stackoverflow.com/questions/53026557/error-listen-eacces-0-0-0-080-when-deploying-docker-image-nodered-node-red-doc
RUN sudo setcap 'cap_net_bind_service=+ep' $(eval readlink -f `which node`)
USER node-red
RUN npm install node-red-contrib-resinio
RUN npm install node-red-dashboard
RUN npm install node-red-contrib-credentials
COPY ./settings.js /data/settings.js
#COPY ./flows.json /data/flows.json
#see https://hub.docker.com/r/nodered/node-red-docker
FROM nodered/node-red-docker:0.20.7-rpi-v8
# installing editor nano
USER root
RUN apt-get update && apt-get install nano
# upgraded node.js to current latest version 8.16.1
# apparently the version in the docker image is pretty old.
RUN npm cache clean -f ; npm install -g n ; n 8.16.1
# Following command installs node-red-admin which is needed if you want to create a hashed password
# for the node-red editor. For that run command "node-red-admin hash-pw" in a terminal window
# for the node-red service in the BalenaCloud dashboard.
RUN npm install -g --unsafe-perm node-red-admin
# see https://stackoverflow.com/questions/53026557/error-listen-eacces-0-0-0-080-when-deploying-docker-image-nodered-node-red-doc
RUN sudo setcap 'cap_net_bind_service=+ep' $(eval readlink -f `which node`)
USER node-red
RUN npm install node-red-contrib-resinio
RUN npm install node-red-dashboard
RUN npm install node-red-contrib-credentials
COPY ./settings.js /data/settings.js