Skip to content

Commit

Permalink
fix: startup failure caused by file worker_events
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan committed Jan 15, 2024
1 parent d84bee5 commit 659a449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]")
Expand Down
4 changes: 4 additions & 0 deletions debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 659a449

Please sign in to comment.