From 659a449521cd07c243406d9ace555010fb1590d7 Mon Sep 17 00:00:00 2001 From: AlinsRan Date: Mon, 15 Jan 2024 15:41:46 +0800 Subject: [PATCH] fix: startup failure caused by file worker_events --- Makefile | 2 +- debian/docker-entrypoint.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4cccf88f..239422b1 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,7 @@ push-multiarch-on-latest: @if [ "$(shell echo "$(APISIX_VERSION) $(MAX_APISIX_VERSION)" | tr " " "\n" | sort -rV | head -n 1)" == "$(APISIX_VERSION)" ]; then \ $(ENV_DOCKER) buildx build --network=host --push \ -t $(IMAGE_NAME):latest \ - --platform linux/amd64,linux/arm64 \ + --platform linux/amd64 \ -f ./debian/Dockerfile debian; \ fi @$(call func_echo_success_status, "$@ -> [ Done ]") diff --git a/debian/docker-entrypoint.sh b/debian/docker-entrypoint.sh index 04fe00b5..2d8a11e3 100755 --- a/debian/docker-entrypoint.sh +++ b/debian/docker-entrypoint.sh @@ -54,6 +54,10 @@ _EOC_ if [ -e "/usr/local/apisix/conf/config_listen.sock" ]; then rm -f "/usr/local/apisix/conf/config_listen.sock" fi + + if [ -e "/usr/local/apisix/logs/worker_events.sock" ]; then + rm -f "/usr/local/apisix/logs/worker_events.sock" + fi exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;' fi