An error occurred during docker deployment

Hey @Hao_Tan!

Can you share some more details? Which version you’re deploying, what steps you took to deploy it to Docker?

[root@ceshi ~]# docker info
Containers: 6
Running: 6
Paused: 0
Stopped: 0
Images: 62
Server Version: 18.09.8
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-693.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.613GiB
Name: ceshi
ID: 5B47:PTLN:M4XK:REIF:KD4Z:XJ4M:YTG4:VI2A:BGNM:CTXT:NNBN:CWPL
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://bf3asb4c.mirror.aliyuncs.com/
Live Restore Enabled: false
Product License: Community Engine

[root@ceshi ~]# cat /proc/version
Linux version 3.10.0-693.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Aug 22 21:09:27 UTC 2017
[root@ceshi ~]# cat /etc/issue
\S
Kernel \r on an \m

[root@ceshi ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@ceshi ~]#

Does not look like you are docker deploying n8n rather building it yourself.

Anyway you seem to have outdated code. If you do a git pull it should work fine.

I modified the code of n8n and added my own node.

But I don’t seem to modify the code of the mail node

nodes/EmailSend.node.ts:213:22 - error TS2322: Type ‘SentMessageInfo’ is not assignable to type ‘IDataObject’.
Index signature is missing in type ‘SentMessageInfo’.

213 returnData.push({ json: info });
~~~~

…/workflow/dist/src/Interfaces.d.ts:299:5
299 json: IDataObject;
~~~~
The expected type comes from property ‘json’ which is declared here on type ‘INodeExecutionData’

Were you using the latest version of n8n when you modified the code? Are you getting this error when you build with the latest version?

As written above do you not use the latest code. That issue got already fixed a few days ago:
https://github.com/n8n-io/n8n/commit/ce9951d8776b0ff851fbdb480c28ad6213bad52b

You have to run git pull. It will then run fine.