githubxubin opened a new issue, #10907:
URL: https://github.com/apache/apisix/issues/10907
### Description
I upgraded apsix from 3.2 to 3.6, but there was a confusing problem, I
deployed APSIX-3.6.0 on the centos server normally, but the Route is Not
available, it is always "error_msg": "404 Route Not Found",
Here are my configuration and steps
config.yaml:
```
apisix:
node_listen: 9080 # APISIX listening port
enable_ipv6: false
enable_control: true
control:
ip: "0.0.0.0"
port: 9092
deployment:
role: traditional # Set deployment mode: traditional,
control_plane, or data_plane.
role_traditional:
config_provider: etcd # Set the configuration center.
admin:
allow_admin: #
http://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
```
my step:
1.set route:
```
{
"id": "499092110205518536",
"create_time": 1707011679,
"update_time": 1707024699,
"uri": "/test/*",
"name": "test",
"groupId": "1",
"openId": "",
"priority": 1,
"methods": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS"
],
"upstream": {
"nodes": [
{
"host": "10.210.21.105",
"port": 1001,
"weight": 1
}
],
"retries": 0,
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"type": "roundrobin",
"scheme": "http",
"discovery_args": {
"group_name": "",
"namespace_id": ""
},
"pass_host": "pass",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"status": 1
}
```
2. request route:
[root@mysql5 apisix_log]# curl http://10.210.21.130:9080/test/
{"error_msg":"404 Route Not Found"}
3.get the error result:
```
192.168.97.25 - - [04/Feb/2024:05:45:13 +0000] 10.210.21.130:9080 "GET
/test/ HTTP/1.1" 404 47 0.000 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X
10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
- - - "http://10.210.21.130:9080"
```
I don't know if the version has a bug(Local testing is normal (macos11.3))
### Environment
- APISIX version (run `apisix version`):3.6.0-centos
- 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: 3.0
- 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]