I’m running into issues when trying to get n8n running on Heroku using Docker containers. The deployment keeps failing and I can’t pinpoint the exact problem. I’ve tried different configurations but still getting errors.
Here’s my setup process:
First I create a PostgreSQL database:
heroku addons:create heroku-postgresql:hobby-dev --version=11 -a workflow-app
My Docker configuration:
FROM n8nio/n8n
Configuration in heroku.yml:
setup:
config:
APP_SUBDOMAIN: "workflow-app"
DOMAIN_NAME: "herokuapp.com"
NODE_ENV: "production"
TZ: "America/New_York"
GENERIC_TIMEZONE: "America/New_York"
N8N_HOST: "${APP_SUBDOMAIN}.${DOMAIN_NAME}"
N8N_PORT: "${PORT}"
N8N_PROTOCOL: "https"
N8N_ENCRYPTION_KEY: "myencryptionkey123"
WEBHOOK_TUNNEL_URL: "https://${APP_SUBDOMAIN}.${DOMAIN_NAME}/"
VUE_APP_URL_BASE_API: "https://${APP_SUBDOMAIN}.${DOMAIN_NAME}/"
DB_TYPE: "postgresdb"
DB_POSTGRESDB_HOST: "postgres-host"
DB_POSTGRESDB_DATABASE: "postgres-db"
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_USER: "postgres-user"
DB_POSTGRESDB_PASSWORD: "postgres-pwd"
build:
docker:
web: Dockerfile
Error messages from logs:
2020-04-15T11:19:50.178271+00:00 app[web.1]: [WARN tini (3)] Tini is not running as PID 1
2020-04-15T11:19:50.179480+00:00 app[web.1]: su-exec: setgroups: Operation not permitted
2020-04-15T11:24:54.478493+00:00 heroku[router]: at=error code=H10 desc="App crashed"
Any suggestions on how to fix this deployment issue?