You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "An-DJ (via GitHub)" <gi...@apache.org> on 2023/05/30 02:43:53 UTC
[GitHub] [apisix] An-DJ opened a new issue, #9571: bug: admin & control API ip cannot be hot updated if its port is unchanged
An-DJ opened a new issue, #9571:
URL: https://github.com/apache/apisix/issues/9571
### Current Behavior
Admin & control API ip cannot be changed and reloaded if its port is unchanged.
### Expected Behavior
Admin & control API ip can be changed and hot reloaded successfully if its port is unchanged.
### Error Logs
_No response_
### Steps to Reproduce
Take Admin API as an example:
1. Start APISIX with default configuration (Admin API ip 0.0.0.0, port 9180)
2. Change Admin API ip to `127.0.0.1` in `conf/config.yaml`
```
deployment:
admin:
admin_listen:
ip: 127.0.0.1
```
3. Reload APISIX configure by the command `apisix reload`
4. Failed with error.log
```
2023/05/29 19:41:49 [notice] 10743#10743: signal process started
2023/05/29 19:41:49 [emerg] 10653#10653: bind() to 127.0.0.1:9180 failed (98: Address already in use)
2023/05/29 19:41:49 [emerg] 10653#10653: bind() to 127.0.0.1:9180 failed (98: Address already in use)
2023/05/29 19:41:49 [emerg] 10653#10653: bind() to 127.0.0.1:9180 failed (98: Address already in use)
2023/05/29 19:41:49 [emerg] 10653#10653: bind() to 127.0.0.1:9180 failed (98: Address already in use)
2023/05/29 19:41:49 [emerg] 10653#10653: bind() to 127.0.0.1:9180 failed (98: Address already in use)
2023/05/29 19:41:49 [emerg] 10653#10653: still could not bind()
```
### Environment
- APISIX version (run `apisix version`): 3.3.0
- Operating system (run `uname -a`): Ubuntu 18.04
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): openresty/1.21.4.1
- 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`):
--
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] Revolyssup commented on issue #9571: bug: admin & control API ip cannot be hot updated if its port is unchanged
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9571:
URL: https://github.com/apache/apisix/issues/9571#issuecomment-1573824136
@An-DJ Its not really a bug. 0.0.0.0:9180 means the socket corresponds to all IPs on all interfaces. When you reload, before letting go off the existing nginx process, openresty tries to bind to port 9180 on localhost but that address is already taken by the existing running process so it fails.
--
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] An-DJ closed issue #9571: bug: admin & control API ip cannot be hot updated if its port is unchanged
Posted by "An-DJ (via GitHub)" <gi...@apache.org>.
An-DJ closed issue #9571: bug: admin & control API ip cannot be hot updated if its port is unchanged
URL: https://github.com/apache/apisix/issues/9571
--
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] An-DJ commented on issue #9571: bug: admin & control API ip cannot be hot updated if its port is unchanged
Posted by "An-DJ (via GitHub)" <gi...@apache.org>.
An-DJ commented on issue #9571:
URL: https://github.com/apache/apisix/issues/9571#issuecomment-1573850639
https://trac.nginx.org/nginx/ticket/1457 More details can be found there which can help people who found that issue to understand it.
--
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] An-DJ commented on issue #9571: bug: admin & control API ip cannot be hot updated if its port is unchanged
Posted by "An-DJ (via GitHub)" <gi...@apache.org>.
An-DJ commented on issue #9571:
URL: https://github.com/apache/apisix/issues/9571#issuecomment-1573848482
Yes thanks. I have noticed that. I have some deeper thoughts about that issue, and maybe we can discuss it on another one.
--
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