Skip to content
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

bug: should delete conf/config_listen.sock if start failed #7986

Closed
tzssangglass opened this issue Sep 24, 2022 · 0 comments · Fixed by #8022
Closed

bug: should delete conf/config_listen.sock if start failed #7986

tzssangglass opened this issue Sep 24, 2022 · 0 comments · Fixed by #8022
Labels
bug Something isn't working

Comments

@tzssangglass
Copy link
Member

Current Behavior

conf/config_listen.sock is not deleted after start failed

Expected Behavior

delete conf/config_listen.sock after start failed

Error Logs

nginx: [emerg] bind() to unix:/tmp/apisix300/conf/config_listen.sock failed (98: Address already in use)

Steps to Reproduce

  1. use another process to listen on port 9080
  2. starting APISIX , it reports nginx: [emerg] bind() to 0.0.0.0:9080 failed (98: Address already in use), which failed, but conf/config_listen.sock was created and not deleted
  3. stop the process which listens on port 9080
  4. starting APISIX again, which failed, it reports nginx: [emerg] bind() to unix:/tmp/apisix300/conf/config_listen.sock failed (98: Address already in use) because the conf/config_listen.sock created in step 2 was not deleted
  5. After deleting conf/config_listen.sock, APISIX starts normally, and conf/config_listen.sock is deleted after normal shutdown

Environment

  • APISIX version (run apisix version): master
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants