You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "daifuyang (via GitHub)" <gi...@apache.org> on 2023/05/30 00:42:51 UTC
[GitHub] [apisix-docker] daifuyang opened a new issue, #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
daifuyang opened a new issue, #470:
URL: https://github.com/apache/apisix-docker/issues/470
2023-05-30 08:41:18 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:41:19 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:41:19 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:41:20 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:41:20 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:41:21 nginx: [emerg] still could not bind()
2023-05-30 08:42:21
2023-05-30 08:42:21 WARNING: using fixed Admin API token has security risk.
2023-05-30 08:42:21 Please modify "admin_key" in conf/config.yaml .
2023-05-30 08:42:21
2023-05-30 08:42:21
2023-05-30 08:42:22 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:42:22 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:42:23 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:42:23 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:42:24 nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
2023-05-30 08:42:24 nginx: [emerg] still could not bind()

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620946322

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] Revolyssup commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1606660118
> I commented that the 9180 port is started first and then released to start the program. This should be a bug
When the container is restarted the process terminates and the port is let go off by the previous process. I am not sure if this issue is something specific to the docker desktop environment. When you get this error, can you use netstat to check the pid of the process which is using that port and which process is that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620946944
apisix-dashboard:
image: apache/apisix-dashboard:3.0.1-alpine
container_name: apisix-dashboard
restart: always
volumes:
- ~/docker-workspace/workspace/apisix/dashboard/config.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
ports:
- "9000:9000"
networks:
- default
apisix:
image: apache/apisix:${APISIX_IMAGE_TAG:-3.3.0-centos}
user: root
container_name: apisix
restart: always
volumes:
- ~/docker-workspace/workspace/apisix/logs:/usr/local/apisix/logs
- ~/docker-workspace/workspace/apisix/config.yaml:/usr/local/apisix/conf/config.yaml:ro
# - ~/docker-workspace/workspace/apisix/go-runner:/usr/local/go-runner:ro
depends_on:
- etcd
ports:
- "9180:9180/tcp"
- "9080:9080/tcp"
# - "9091:9091/tcp"
# - "9443:9443/tcp"
# - "9092:9092/tcp"
networks:
- default
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620972262
服务器自启后,docker自启,然后apisix自启。无法自启。报nginx端口占用
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620967120

正常了,但是会偶发占用的情况
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620961895

我注释了9180,并重启,两个都成功了。是不是端口监听冲突了?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620949617
必须注释9180重启,然后在放开。就可以了。开了restart:always
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tao12345666333 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620950233
please check this directory `~/docker-workspace/workspace/apisix/` and provide your `docker info`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620966270

9080是正常
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] season886 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "season886 (via GitHub)" <gi...@apache.org>.
season886 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1709841750
#373 This problem is the same as the current problem, more than a year ~ It is estimated that it is difficult to solve
At present, the 3.5.0 version of WIN11+docker desktop+wsl2 has been tested, and the release of wsl2 is openEuler 23.03, and the problem is still used
'docker exec -i <container_name> rm /usr/local/apisix/conf/config_listen.sock' to solve
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] ChristophBaierATB commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "ChristophBaierATB (via GitHub)" <gi...@apache.org>.
ChristophBaierATB commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1683811593
Here is an automated workaround that should allow the apisix container to start on the next boot after a crash:
```bash
crontab -e
```
Add the line:
```
@reboot /usr/bin/docker rm -f apisix; cd /root/apisix && /usr/bin/docker-compose --profile prod up -d
```
... where `/root/apisix` is the directory containing docker-compose.yml. Paths and container names may vary depending on your setup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620963956
现在是注释状态,重启容器启动了。不定时的会无法启动
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620947331
```
apisix:
node_listen: 9080 # APISIX listening port
enable_ipv6: false
enable_control: true
control:
ip: "0.0.0.0"
port: 9092
deployment:
admin:
allow_admin: # https://nginx.org/en/docs/http/ngx_http_access_module.html#allow
- 0.0.0.0/0 # We need to restrict ip access rules for security. 0.0.0.0/0 is for test.
admin_key:
- name: "admin"
key: edd1c9f034335f136f87ad84b625c8f1
role: admin # admin: manage all configuration data
- name: "viewer"
key: 4054f7cf07e344346cd3f287985e76a2
role: viewer
etcd:
host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
- "http://etcd:2379" # multiple etcd address
prefix: "/apisix" # apisix configurations prefix
timeout: 30 # 30 seconds
plugin_attr:
prometheus:
export_addr:
ip: "0.0.0.0"
port: 9091
# ext-plugin:
# # path_for_test: /tmp/runner.sock
# cmd: ["/usr/local/go-runner", "run"]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620948523

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tao12345666333 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620950369
you didn't use 9180 port, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] Revolyssup commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1606657125
@laibb Is your environment also docker desktop?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620964670
不行,还是挂了

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] season886 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "season886 (via GitHub)" <gi...@apache.org>.
season886 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1635202130
对,应该就是楼上的原因,我用的是WSL2+docker desktop,只要是windows关机,第二天必报错,我要把容器删了,再重新 docker compose up -d就正常了。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] monkeyDluffy6017 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1738361931
The `/usr/local/apisix/conf/config_listen.sock` is used by the conf_server, and the conf_server is deleted by this pr: https://github.com/apache/apisix/pull/10012, so the problem won't happen again in the latest version
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] Revolyssup commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1738390959
Closing this PR as conf_server has been removed and this issue no longer exists in latest version
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1567626354

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] laibb commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "laibb (via GitHub)" <gi...@apache.org>.
laibb commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1581849118
I have same problem
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] Revolyssup closed issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup closed issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
URL: https://github.com/apache/apisix-docker/issues/470
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] season886 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "season886 (via GitHub)" <gi...@apache.org>.
season886 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1621134772
其实就是启动的时候不能有这个文件 /usr/local/apisix/conf/config_listen.sock,我的一直报这个错,每次进去删掉就正常
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620963942
![Uploading image.png…]()
现在是注释状态,重启容器启动了。不定时的会无法启动
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620963878
现在是注释状态,重启容器启动了。不定时的会无法启动
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620961381

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tao12345666333 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1608790894
How did you start the container? Did you mount any directories?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tao12345666333 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1608790249
it seems there are no relevant changes. https://github.com/apache/apisix-docker/commits/master
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1577737321
I commented that the 9180 port is started first and then released to start the program. This should be a bug
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tao12345666333 commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "tao12345666333 (via GitHub)" <gi...@apache.org>.
tao12345666333 commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620940051
> How did you start the container? Did you mount any directories?
Please provide more informations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620959317
> 你没有使用9180端口,对吧?
yes
```
docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
scan: Docker Scan (Docker Inc., v0.21.0)
Server:
Containers: 21
Running: 19
Paused: 0
Stopped: 2
Images: 22
Server Version: 20.10.21
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
Default Runtime: runc
Init Binary: docker-init
containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f
runc version: v1.1.4-0-g5fd4c4d
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.4.119-19.0010.ocrelease.6
Operating System: OpenCloudOS 8.6
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.58GiB
Name: VM-4-14-opencloudos
ID: YH24:UINU:3QQ6:KTDE:27CR:445A:DW4C:JBHK:UNJL:BIFR:XSJ2:ES6Q
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: return1996
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://mirror.ccs.tencentyun.com/
http://f1361db2.m.daocloud.io/
Live Restore Enabled: false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] Sn0rt commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "Sn0rt (via GitHub)" <gi...@apache.org>.
Sn0rt commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1624637945
12 july @sn0rt
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620950170
不知道是不是这个的原因
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620931617
我的centos服务器也有问题了
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620933447

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1620963880
![Uploading image.png…]()
现在是注释状态,重启容器启动了。不定时的会无法启动
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] ChristophBaierATB commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "ChristophBaierATB (via GitHub)" <gi...@apache.org>.
ChristophBaierATB commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1633956607
## Reproduction of the Bug
### Minimal Setup
Create these two files in the same directory:
1. docker-compose.yml
```yaml
version: "3"
services:
etcd:
image: bitnami/etcd:3.4.15
container_name: etcd
environment:
ETCD_ENABLE_V2: "true"
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
apisix:
image: apache/apisix:3.3.0-debian
container_name: apisix
depends_on:
- etcd
volumes:
- ./config.yaml:/usr/local/apisix/conf/config.yaml:ro
```
2. config.yaml
```yaml
deployment:
etcd:
host:
- "http://etcd:2379"
prefix: "/apisix"
timeout: 30
```
Start the setup:
```bash
docker-compose up -d
```
Both services should start successfully.
### Trigger the Bug
```bash
docker kill apisix # simulate host crash
docker-compose up -d # start the container again
docker logs apisix
```
Output:
```
...
2023/07/13 09:41:38 [emerg] 1#1: bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
...
```
### Possible Explanation
* When APISIX container starts, it creates a lock file for `config_listen.sock`, indicating that it is already in use. This prevents multiple APISIX processes from starting and accessing this socket at the same time. When the container is gracefully stopped (e.g. via `docker stop apisix`), this lock file is deleted. When the APISIX container is restarted (e.g. via `docker start apisix`), it can create a new lock file, so no problem.
* When APISIX container is shut down by force, e.g. by a host crash (simulated by `docker kill apisix`), the container will not shut down gracefully and the lock file will not be deleted. It persists within the docker container. When the host is rebooted and the APISIX container is started again, APISIX will try to create a lock file, but since such a file already exists, APISIX will think that the socket is already in use, leading to the above error message.
### Workaround Solution
It is possible to simply delete the container and start a new one that does not contain the lock file.
```bash
docker rm -f apisix
docker-compose up -d
```
However, this will not solve the problem, as it will recur every time the host crashes and restarts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] mojtaba-roohi commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "mojtaba-roohi (via GitHub)" <gi...@apache.org>.
mojtaba-roohi commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1575422882
i have same problem,what should i do?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] daifuyang commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "daifuyang (via GitHub)" <gi...@apache.org>.
daifuyang commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1567626207


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] moonming commented on issue #470: nginx: [emerg] bind() to unix:/usr/local/apisix/conf/config_listen.sock failed (98: Address already in use)
Posted by "moonming (via GitHub)" <gi...@apache.org>.
moonming commented on issue #470:
URL: https://github.com/apache/apisix-docker/issues/470#issuecomment-1608785701
@tao12345666333 Has the dockerfile of apisix been modified recently?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org