[kong] process.lua:232 external pluginserver 'authplugin' terminated: exit 1, context: ngx.timer

Can anyone help me?

I am having this issue with my python plugin, the gateway is always restarting with this message.

kong-poc-kong-1  | 2022/11/23 19:02:02 [notice] 1111#0: *1041 [kong] process.lua:232 external pluginserver 'authplugin' terminated: exit 1, context: ngx.timer
kong-poc-kong-1  | 2022/11/23 19:02:03 [notice] 1111#0: *1041 [kong] process.lua:216 Starting authplugin, context: ngx.timer
kong-poc-kong-1  | 2022/11/23 19:02:03 [notice] 1111#0: signal 17 (SIGCHLD) received from 1294
kong-poc-kong-1  | 2022/11/23 19:02:03 [notice] 1111#0: *1041 [kong] process.lua:232 external pluginserver 'authplugin' terminated: exit 1, context: ngx.timer

The plugin configurations is:

      KONG_PLUGINS: bundled,authplugin
      KONG_PLUGINSERVER_NAMES: authplugin
      KONG_PLUGINSERVER_AUTHPLUGIN_SOCKET: /auth-plugin.socket
      KONG_PLUGINSERVER_AUTHPLUGIN_START_CMD: /auth-plugin/auth.py
      KONG_PLUGINSERVER_AUTHPLUGIN_QUERY_CMD: /auth-plugin/auth.py --dump

My Dockerfile is like this:

FROM kong
USER root

# PYTHONWARNINGS=ignore is needed to build gevent on Python 3.9
RUN apk update && \
    apk add python3 py3-pip python3-dev musl-dev libffi-dev gcc g++ file make && \
    PYTHONWARNINGS=ignore pip3 install kong-pdk
# reset back the defaults

COPY auth-plugin ./auth-plugin
RUN chmod -R 777 /auth-plugin

ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 8000 8443 8001 8444
STOPSIGNAL SIGQUIT
HEALTHCHECK --interval=10s --timeout=10s --retries=10 CMD kong health
CMD ["kong", "docker-start"]