apache / apache/apisix-java-plugin-runner

request help: Socket-related errors occur if you build with Custom Plugin as a docker image and run Gateway in a K8s environment

Đang mở
#324 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
152
Fork
102
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue description

The custom plug-in implementation is integrated with APISIX images to operate Gateway in a production environment.

```Dockerfile
FROM ${APISIX_IMAGE}

USER root

WORKDIR /app

COPY ./apisix-runner-bin/apisix-java-plugin-runner.jar /app/apisix-external-plugin.jar

RUN apt-get update && \
apt-get install -y --no-install-recommends openjdk-11-jdk && \
rm -rf /var/lib/apt/lists/*

RUN chown -R apisix:apisix /app

USER apisix
```

I am using the image built by configuring Dockerfile as above. If an API request to use the plug-in occurs as shown in the log below, an error that there is no socket file occurs.

```
2025/07/29 17:25:08 [error] 50#50: *45468 [lua] init.lua:889: phase_func(): failed to connect to the unix socket unix:/app/conf/apisix-1.sock: no such file or directory, client: X.X.X.X, server: _, request: "GET /api/v1/something HTTP/1.1", host: "api.corp.com"
```

Previously, Plugin Runner Version is `0.4.0`, and Base Image is `3.9.1-debian`, which was not much of an issue at this time.
The error continues to occur after upgrading to Plugin Runner version `0.6.0`. It is operating in a Kubernetes environment, and even if you change the securityContext setting, the error continues to occur without much change.

### Environment

* apisix-java-plugin-runner version `0.6.0`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.