Docker cannot deploy flow

pls help me
hi I cant deploy any flow
I see this Error in Editor
Deploy failed {"code":"unexpected_error","message":"Cannot read property 'rev' of null"}

Dockerfile

FROM nodered/node-red

# Copy package.json to the WORKDIR so npm builds all
# of your added nodes modules for Node-RED
#COPY /data/package.json .
RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production

# Copy _your_ Node-RED project files into place
# NOTE: This will only work if you DO NOT later mount /data as an external volume.
#       If you need to use an external volume for persistence then
#       copy your settings and flows files to that volume instead.
COPY /data/settings.js /data/settings.js
COPY /data/flows_cred.json /data/flows_cred.json
COPY /data/flows.json /data/flows.json

# You should add extra nodes via your package.json file but you can also add them here:
#WORKDIR /usr/src/node-red
#RUN npm install node-red-node-smooth

docker-compose.yml

################################################################################
# Node-RED Stack or Compose
################################################################################
# docker stack deploy node-red --compose-file docker-compose-node-red.yml
# docker-compose -f docker-compose-node-red.yml -p myNoderedProject up
################################################################################
version: "3.7"

services:
  node-red:
    public: true
    build:
      context: .
      dockerfile: Dockerfile
    environment:
      - TZ=Asia/Tokyo
    ports:
      - 80:1880
    volumes:
      - node-red:/data
      
volumes:
  node-red:
    size: 2Gi

console log

2022-06-13 20:40:12.00 UTCnode-red-0[pod-event]Created container node-red
2022-06-13 20:40:12.00 UTCnode-red-0[pod-event]Started container node-red
2022-06-13 20:40:13.21 UTCnode-red-0node-red
2022-06-13 20:40:13.21 UTCnode-red-0node-red> node-red-docker@2.2.2 start /usr/src/node-red
2022-06-13 20:40:13.21 UTCnode-red-0node-red> node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"
2022-06-13 20:40:13.21 UTCnode-red-0node-red
2022-06-13 20:40:13.91 UTCnode-red-0node-red14 Jun 05:40:13 - [info] 
2022-06-13 20:40:13.91 UTCnode-red-0node-red
2022-06-13 20:40:13.91 UTCnode-red-0node-redWelcome to Node-RED
2022-06-13 20:40:13.91 UTCnode-red-0node-red===================
2022-06-13 20:40:13.91 UTCnode-red-0node-red
2022-06-13 20:40:13.91 UTCnode-red-0node-red14 Jun 05:40:13 - [info] Node-RED version: v2.2.2
2022-06-13 20:40:13.91 UTCnode-red-0node-red14 Jun 05:40:13 - [info] Node.js version: v14.18.2
2022-06-13 20:40:13.91 UTCnode-red-0node-red14 Jun 05:40:13 - [info] Linux 5.4.0-1051-gke x64 LE
2022-06-13 20:40:14.30 UTCnode-red-0node-red14 Jun 05:40:14 - [info] Loading palette nodes
2022-06-13 20:40:14.99 UTCnode-red-0node-red14 Jun 05:40:14 - [info] Settings file : /data/settings.js
2022-06-13 20:40:14.99 UTCnode-red-0node-red14 Jun 05:40:14 - [info] Context store : 'default' [module=memory]
2022-06-13 20:40:14.99 UTCnode-red-0node-red14 Jun 05:40:14 - [info] User directory : /data
2022-06-13 20:40:14.99 UTCnode-red-0node-red14 Jun 05:40:14 - [warn] Projects disabled : editorTheme.projects.enabled=false
2022-06-13 20:40:14.99 UTCnode-red-0node-red14 Jun 05:40:14 - [info] Flows file : /data/flows.json
2022-06-13 20:40:15.00 UTCnode-red-0node-red14 Jun 05:40:15 - [info] Server now running at http://127.0.0.1:1880/
2022-06-13 20:40:15.01 UTCnode-red-0node-red14 Jun 05:40:15 - [warn] 
2022-06-13 20:40:15.01 UTCnode-red-0node-red
2022-06-13 20:40:15.01 UTCnode-red-0node-red---------------------------------------------------------------------
2022-06-13 20:40:15.01 UTCnode-red-0node-redYour flow credentials file is encrypted using a system-generated key.
2022-06-13 20:40:15.01 UTCnode-red-0node-red
2022-06-13 20:40:15.01 UTCnode-red-0node-redIf the system-generated key is lost for any reason, your credentials
2022-06-13 20:40:15.01 UTCnode-red-0node-redfile will not be recoverable, you will have to delete it and re-enter
2022-06-13 20:40:15.01 UTCnode-red-0node-redyour credentials.
2022-06-13 20:40:15.01 UTCnode-red-0node-red
2022-06-13 20:40:15.01 UTCnode-red-0node-redYou should set your own key using the 'credentialSecret' option in
2022-06-13 20:40:15.01 UTCnode-red-0node-redyour settings file. Node-RED will then re-encrypt your credentials
2022-06-13 20:40:15.01 UTCnode-red-0node-redfile using your chosen key the next time you deploy a change.
2022-06-13 20:40:15.01 UTCnode-red-0node-red---------------------------------------------------------------------
2022-06-13 20:40:15.01 UTCnode-red-0node-red
2022-06-13 20:44:08.04 UTCnode-red-0node-red14 Jun 05:44:08 - [error] TypeError: Cannot read property 'rev' of null

/[data]/package.json

{
    "name": "node-red-project",
    "description": "A Node-RED Project",
    "version": "0.0.1",
    "private": true
}

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.