Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(docker): align dashboard nginx host + clear stale Chromium singleton locks (#260)
Yudhi Armyndharis2732c5f73eba
diff --git a/.gitignore b/.gitignoreindex e2c68f2e2..f89de7af7 100644--- a/.gitignore+++ b/.gitignore@@ -67,6 +67,7 @@ uploads/.worktrees/# AI Agents+.playwright-mcp/.remember/.agent/.claude/diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5dbf88ab8..beac8fc2e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## [Unreleased]++### Fixed++- Dashboard (simple nginx image) proxied API/WebSocket requests to a `openwa` host that doesn't match the+ backend service name; `dashboard/nginx.conf` now targets `openwa-api` for both `/api/` and `/socket.io/`,+ matching the production compose and `Dockerfile.traefik`. Thanks @Abhishekrajpurohit (#259).+- The container entrypoint now clears stale Chromium `SingletonLock`/`SingletonSocket`/`SingletonCookie` files+ from session profiles on start, so a session can re-launch after an unclean shutdown instead of failing with+ "profile appears to be in use by another Chromium process" (exit Code 21). Thanks @Abhishekrajpurohit (#259).+## [0.2.6] - 2026-06-16A patch release: stop Chromium from failing to launch on hardened `read_only` containers, and make thediff --git a/dashboard/nginx.conf b/dashboard/nginx.confindex 090581205..5f30d18b9 100644--- a/dashboard/nginx.conf+++ b/dashboard/nginx.conf@@ -15,7 +15,7 @@ server {# Proxy API requests to backendlocation /api/ {- proxy_pass http://openwa:2785;+ proxy_pass http://openwa-api:2785;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';@@ -25,7 +25,7 @@ server {# WebSocket proxylocation /socket.io/ {- proxy_pass http://openwa:2785;+ proxy_pass http://openwa-api:2785;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';diff --git a/docker-entrypoint.sh b/docker-entrypoint.shindex 87ddf5279..78db86059 100644--- a/docker-entrypoint.sh+++ b/docker-entrypoint.sh@@ -6,6 +6,12 @@ set -emkdir -p /app/data/sessions /app/data/media /app/data/pluginschown -R openwa:openwa /app/data+# Chromium leaves SingletonLock/SingletonSocket/SingletonCookie in each session profile and does+# not remove them on an unclean shutdown; stale locks block the next launch ("profile appears to be+# in use by another Chromium process", exit Code 21). No Chromium is running yet at entrypoint time,+# so clearing them lets sessions re-launch after a crash/restart. (#259)+rm -f /app/data/sessions/*/Singleton* 2>/dev/null || true+# Chromium resolves its home from the passwd entry (no /home/openwa exists), so it hard-crashes at# launch unless its config/cache dirs exist and are writable. XDG_CONFIG_HOME/XDG_CACHE_HOME (set in# the image) point here; create them owned by openwa. On a read_only rootfs these live on tmpfs /tmp,