ByteChef LogoByteChef
Use ByteChefSelf-HostedManagement

Troubleshooting

Inspect a running ByteChef instance, restart it after a configuration change, and diagnose the failures that come up most often

This page is for operators of a self-hosted ByteChef instance. Configuration is read once, at startup, so a changed value that has no effect usually means the instance was not restarted. This page covers how to see what a running instance actually resolved, how to restart it, and how to diagnose the failures that come up most often.

Inspecting a running instance

Docker

# Full container configuration
docker inspect bytechef

# Just the ByteChef environment variables the container actually received
docker exec bytechef env | grep BYTECHEF

Kubernetes

# The rendered deployment
kubectl get deployment bytechef -o yaml

# Non-sensitive values (ConfigMap) and secrets, as the chart names them
kubectl get configmap bytechef-envs -o yaml
kubectl get secret bytechef-secrets -o yaml

# Pod status
kubectl get pods -l app.kubernetes.io/name=bytechef

The chart names the ConfigMap and Secret <release>-bytechef-envs and <release>-bytechef-secrets, or <release>-envs and <release>-secrets when the release name already contains bytechef. The names above assume helm install bytechef ....

ByteChef also serves its resolved configuration over Actuator - see Verifying the resolved configuration, which shows the values as the application bound them rather than as the platform passed them in.

Restarting after a configuration change

Environment variables are evaluated at startup, so a change to any of these needs a restart before it takes effect:

  • Database connection settings
  • Encryption provider or key
  • Feature flags
  • Public URL and other network settings
  • Observability settings
# Docker
docker restart bytechef

# Docker Compose
docker compose restart bytechef

# Kubernetes
kubectl rollout restart deployment/bytechef

Reading the logs

# Docker
docker logs -f bytechef                              # follow
docker logs --tail 100 bytechef                      # last 100 lines
docker logs --since 2026-01-27T10:00:00 bytechef     # since a timestamp

# Kubernetes
kubectl logs -f deployment/bytechef                  # follow
kubectl logs --tail=100 deployment/bytechef          # last 100 lines
kubectl logs --previous deployment/bytechef          # the previous container, after a crash

kubectl logs --previous is the one to reach for when a pod is crash-looping: by the time you look, the current container may not have logged the failure yet.

Common failures

The instance will not start

Read the startup logs first - schema migrations run on start, so a migration or database failure surfaces there rather than as a health-check failure:

docker logs bytechef
kubectl logs deployment/bytechef

An instance killed shortly after start with no error of its own is usually out of memory. ByteChef needs at least 4 GB of RAM.

The database is unreachable

Check connectivity from inside the container, so you are testing the same network path the application uses:

# Docker
docker exec bytechef bash -c 'echo > /dev/tcp/postgres/5432' && echo "port open"

# Kubernetes
kubectl exec deployment/bytechef -- bash -c 'echo > /dev/tcp/postgres/5432' && echo "port open"

The server image does not include nc, so the check uses the shell's /dev/tcp device.

If the host resolves but the port refuses, the database is up but not accepting connections from this network - check the security group, firewall rule, or pg_hba.conf.

Email is not being delivered

docker exec bytechef env | grep BYTECHEF_MAIL

BYTECHEF_MAIL_HOST defaults to localhost on port 25, so an instance with no mail settings tries to deliver to a mail server inside its own container and the send fails in the log. When the host is set to an empty value, the server skips sending and logs Mail server is not configured, not sending mails; the user sees no error in either case. See Environment Variables for the full set.

OAuth2 callbacks fail

Check the redirect URI the instance is handing to providers:

docker exec bytechef env | grep -E 'BYTECHEF_OAUTH2_REDIRECT_URI|BYTECHEF_PUBLIC_URL'

BYTECHEF_OAUTH2_REDIRECT_URI defaults to BYTECHEF_PUBLIC_URL + /callback, so on an instance behind a proxy or load balancer, an unset or wrong BYTECHEF_PUBLIC_URL is the usual cause - the instance advertises its internal address and the provider redirects the user somewhere unreachable. The resulting URL must be:

  • publicly reachable,
  • registered in the OAuth2 provider's allowed redirect URIs, exactly,
  • HTTPS, if the provider requires it.

See also

How is this guide?

Last updated on

On this page