Hello everyone,
I set up a self-hosted environment using Docker on a Windows 10 machine running on VM ESXi. However, I’m encountering an error. When I try to establish a connection, it makes me wait for quite a while and then displays a “Failed”** message in a red box at the bottom-left corner. In the logs, I see the following error::
2025-01-23 21:20:49 {"level":50,"time":1737656448247,"pid":8,"hostname":"43a4bdd0xxde","err":{"type":"ActivepiecesError","message":"EXECUTION_TIMEOUT","stack":"Error: EXECUTION_TIMEOUT\n at Object.<anonymous> (webpack:///worker/src/lib/engine/engine-runner.ts:104:19)\n at Generator.next (<anonymous>)\n at /usr/src/app/dist/packages/server/api/node_modules/tslib/tslib.js:169:75\n at new Promise (<anonymous>)\n at Object.__awaiter (/usr/src/app/dist/packages/server/api/node_modules/tslib/tslib.js:165:16)\n at Object.readResults (/usr/src/app/dist/packages/server/api/main.js:1:1675124)\n at <anonymous> (webpack:///worker/src/lib/engine/threads/thread-engine-runner.ts:215:35)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/src/app/dist/packages/server/api/node_modules/tslib/tslib.js:166:62)","error":{"code":"EXECUTION_TIMEOUT","params":{}}},"msg":"EXECUTION_TIMEOUT"}
The specifications of my host computer are as follows:
CPU: Intel(R) Core™ i5-8500T CPU @ 2.10GHz 2.11 GHz
RAM: 15.0 GB
The content of the .env
file is as follows:
## It's advisable to consult the documentation and use the tools/deploy.sh to generate the passwords, keys, instead of manually filling them.
AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js
## Random Long Password (Optional for community edition)
AP_API_KEY=xxx
## 256 bit encryption key, 32 hex character
AP_ENCRYPTION_KEY=xxxx
## JWT Secret
AP_JWT_SECRET=xxxx
AP_ENVIRONMENT=prod
AP_FRONTEND_URL=http://xxx.xxx.com
AP_WEBHOOK_TIMEOUT_SECONDS=30
AP_TRIGGER_DEFAULT_POLL_INTERVAL=5
AP_POSTGRES_DATABASE=activepieces
AP_POSTGRES_HOST=postgres
AP_POSTGRES_PORT=5432
AP_POSTGRES_USERNAME=xxx
AP_POSTGRES_PASSWORD=xxx
AP_EXECUTION_MODE=UNSANDBOXED
AP_REDIS_HOST=redis
AP_REDIS_PORT=6379
AP_FLOW_TIMEOUT_SECONDS=600
AP_TELEMETRY_ENABLED=true
AP_TEMPLATES_SOURCE_URL="https://cloud.activepieces.com/api/v1/flow-templates"
AP_PIECES_SYNC_MODE=OFFICIAL_AUTO
Here is my docker-compose.yml
version: '3.0'
services:
activepieces:
image: ghcr.io/activepieces/activepieces:0.39.4
container_name: activepieces
restart: unless-stopped
## Enable the following line if you already use AP_EXECUTION_MODE with SANDBOXED or old activepieces, checking the breaking change documentation for more info.
## privileged: true
ports:
- '3000:80'
depends_on:
- postgres
- redis
env_file: .env
volumes:
- ./cache:/usr/src/app/cache
networks:
- activepieces
postgres:
image: 'postgres:14.4'
container_name: postgres
restart: unless-stopped
environment:
- 'POSTGRES_DB=${AP_POSTGRES_DATABASE}'
- 'POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}'
- 'POSTGRES_USER=${AP_POSTGRES_USERNAME}'
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- activepieces
redis:
image: 'redis:7.0.7'
container_name: redis
restart: unless-stopped
volumes:
- 'redis_data:/data'
networks:
- activepieces
volumes:
postgres_data:
redis_data:
networks:
activepieces:
Also the inspect screen of docker:
{
"Id": "xxx",
"Created": "2025-01-19T20:41:48.875999732Z",
"Path": "./docker-entrypoint.sh",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 720,
"ExitCode": 0,
"Error": "",
"StartedAt": "2025-01-23T19:23:40.494337887Z",
"FinishedAt": "2025-01-23T16:26:06.240666741Z"
},
"Image": "sha256:xxx",
"ResolvConfPath": "/var/lib/docker/containers/xxx/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/xxx/hostname",
"HostsPath": "/var/lib/docker/containers/xxx/hosts",
"LogPath": "/var/lib/docker/containers/xxx/xxx-json.log",
"Name": "/activepieces",
"RestartCount": 0,
"Driver": "overlayfs",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"C:\\Users\\xxx\\Desktop\\activepieces\\cache:/usr/src/app/cache:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "activepieces_activepieces",
"PortBindings": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "3000"
}
]
},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": null,
"Name": "overlayfs"
},
"Mounts": [
{
"Type": "bind",
"Source": "C:\\Users\\xxx\\Desktop\\activepieces\\cache",
"Destination": "/usr/src/app/cache",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "43a4bddxxxde",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"AP_ENVIRONMENT=prod",
"AP_TRIGGER_DEFAULT_POLL_INTERVAL=5",
"AP_POSTGRES_HOST=postgres",
"AP_POSTGRES_PORT=5432",
"AP_POSTGRES_DATABASE=activepieces",
"AP_REDIS_HOST=redis",
"AP_TEMPLATES_SOURCE_URL=https://cloud.activepieces.com/api/v1/flow-templates",
"AP_PIECES_SYNC_MODE=OFFICIAL_AUTO",
"AP_API_KEY=xxx",
"AP_ENCRYPTION_KEY=xxx",
"AP_WEBHOOK_TIMEOUT_SECONDS=30",
"AP_EXECUTION_MODE=UNSANDBOXED",
"AP_POSTGRES_USERNAME=xxx",
"AP_REDIS_PORT=6379",
"AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js",
"AP_FRONTEND_URL=http://xxx.xxx.com",
"AP_POSTGRES_PASSWORD=xxx",
"AP_FLOW_TIMEOUT_SECONDS=600",
"AP_TELEMETRY_ENABLED=true",
"AP_JWT_SECRET=xxx",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NODE_VERSION=18.20.5",
"YARN_VERSION=1.22.22",
"LANG=en_US.UTF-8",
"LANGUAGE=en_US:en",
"LC_ALL=en_US.UTF-8",
"NX_DAEMON=false"
],
"Cmd": null,
"Image": "ghcr.io/activepieces/activepieces:0.39.4",
"Volumes": null,
"WorkingDir": "/usr/src/app",
"Entrypoint": [
"./docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "xxx",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "postgres:service_started:false,redis:service_started:false",
"com.docker.compose.image": "sha256:xxx",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "activepieces",
"com.docker.compose.project.config_files": "C:\\Users\\xxx\\Desktop\\activepieces\\docker-compose.yml",
"com.docker.compose.project.working_dir": "C:\\Users\\xxxServer\\Desktop\\activepieces",
"com.docker.compose.service": "activepieces",
"com.docker.compose.version": "2.31.0",
"service": "activepieces"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "xxx",
"SandboxKey": "/var/run/docker/netns/63285521655a",
"Ports": {
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "3000"
}
]
},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"activepieces_activepieces": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"activepieces",
"activepieces"
],
"MacAddress": "02:42:ac:13:00:04",
"DriverOpts": null,
"NetworkID": "edxxx351494a163b96d0bfcf",
"EndpointID": "d854a4069b787097134xxxa2883fedbfd769736",
"Gateway": "172.19.0.1",
"IPAddress": "172.19.0.4",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DNSNames": [
"activepieces",
"43a4bdd04ede"
]
}
}
}
}
Any suggestions?
Thank you in advance…