-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restart docker error:[emerg] 1#1: bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use) #373
Comments
I remember this is a known issue. The config_listen.sock is not deleted when stop. |
Image apache/apisix:3.0.0-debian is latest. The bug have closed. why???????????? |
@spacewander I forget the details about it, do you still remember? |
It is expected to be fixed in apache/apisix#8022 |
Could you provide a complete reproducible example? I can't reproduce the issue because the current example lacks files like |
apisix: enable_control: true deployment:
etcd: |
I tried |
I use the latest docker apisix-docker, encountered the same problem |
@wxbty |
I deleted everything and started again, can't reproduce now. But when I updated the plugin to restart docker, I used this: |
@spacewander Can you help me look at this issue #apache/apisix#8386? I ran a demo, and the reported error was incomprehensible. I tried many methods, but nothing worked. thx! |
maybe, different images are used on the arm system. |
I have the same problem whether it is mac m1 or centos system. How did you solve it? |
@Hxhong Not resolved, put on hold for now |
The image I used that matches the system has the same problem. Can you check whether there is a problem with the image? |
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions. |
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions. |
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time. |
我也是同样的问题,吐了 |
No. It doesn't fix.
|
I'm not sure if the problem is fixed or not, we use |
|
突然断电后,来电服务器自动启动,会导致这个问题:
|
I use the latest docker apisix-docker, encountered the same problem services: apisix: etcd: web1: web2: prometheus: grafana: networks: volumes: |
Update: Just restart docker restart <container_name> And: Do this during container start docker exec -i <container_name> rm /usr/local/apisix/conf/config_listen.sock |
在docker compose中该如何执行,这个情况应当避免手动操作,另一个办法是写一个systemd service去执行删除操作或者直接docker compose down然后docker compose up -d,但我认为这个并不是最好的解决办法 |
still occur on version 3.4.1 |
Compose部署出来的和普通的没什么区别的,搞清楚容器名就能执行 |
This issue should be reopened. Here are the logs when running the
|
The |
docker-compose:
version: '3.5'
网络配置
networks:
dev_net:
driver: bridge
服务容器配置
services:
etcd:
# 自定义容器名称
image: quay.io/coreos/etcd:v3.5.1 # 镜像
container_name: etcd
environment:
- TZ=${TZ}
- ETCD_NAME=etcd
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379,http://127.0.0.1:2379
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379 # 用于监听客户端通讯的URL列表
ports:
# 设置端口映射
- ${ETCD_PORT}:2379
networks:
- dev_net
restart: always
apisix:
image: apache/apisix:3.0.0-debian
restart: always
container_name: apisix
environment:
- LANG=zh_CN.UTF-8
# - LC_ALL=zh_CN.UTF-8
- TZ=Asia/Shanghai
volumes:
# - ./apisix/apisix_log:/usr/local/apisix/logs
- ./apisix/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml
- /etc/localtime:/etc/localtime:ro
depends_on:
- etcd
ports:
- '9180:9180/tcp'
- '9080:9080/tcp'
- '19091:9091/tcp'
- '9443:9443/tcp'
networks:
- dev_net
But when docker service restart, apisix fail this error .
must edit the docker-compose.yml file anywhere then restart succes .
The text was updated successfully, but these errors were encountered: