You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/30 09:23:15 UTC

[GitHub] [apisix-dashboard] json7 opened a new issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

json7 opened a new issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159


   # Bug report
   
   ## 
   1. enable_admin: false 关闭 admin api
   2. 启动 dashboard: apisix-dashboard 运行起来后,listen 9001.  然后基于localhost:9001的方式 访问web管理系统, 然后创建一个upstream(就是manage-api 自己 127.0.0.1:9001), 再去创建路由( /* 全部匹配 )
   3. curl 127.0.0.1:9080/apisix/admin/upstreams 偶发性403 (理论上这应该转发到manage-api上,实时流量被apisix拦住了)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] starsz commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
starsz commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752400825


   Hello, please provide your apisix and apisix-dashboard version.
   
   I think the reason is the apisix doesn't sync data from etcd in time.
   Maybe you can check the `resync_delay` option in apisix config.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 removed a comment on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 removed a comment on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752660069


   > > 不是的.我手动查看过etcd中的数据,并且尝试N次apisix restart. 还是无效.
   > > 当然我已经解决,就是将 manage-api中的 url前缀 "apisix/admin" 修改为 "apisixbug/admin" . 问题已经解决.  目测来看这个bug不是dashboard的,而是apisix的
   > 
   > What's the response body like about this 403?
   
   ![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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] spacewander commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752822650


   Remember to decrease the error_log level to "info" before providing the error log.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752660069


   > > 不是的.我手动查看过etcd中的数据,并且尝试N次apisix restart. 还是无效.
   > > 当然我已经解决,就是将 manage-api中的 url前缀 "apisix/admin" 修改为 "apisixbug/admin" . 问题已经解决.  目测来看这个bug不是dashboard的,而是apisix的
   > 
   > What's the response body like about this 403?
   
   ![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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752527683


   > 不是的.我手动查看过etcd中的数据,并且尝试N次apisix restart. 还是无效.
   > 当然我已经解决,就是将 manage-api中的 url前缀 "apisix/admin" 修改为 "apisixbug/admin" . 问题已经解决. 目测来看这个bug不是dashboard的,而是apisix的
   
   cc @spacewander Please take a look.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752659282


   > > 不是的.我手动查看过etcd中的数据,并且尝试N次apisix restart. 还是无效.
   > > 当然我已经解决,就是将 manage-api中的 url前缀 "apisix/admin" 修改为 "apisixbug/admin" . 问题已经解决.  目测来看这个bug不是dashboard的,而是apisix的
   > 
   > What's the response body like about this 403?
   
   复现方法:
   关闭admin api, 直接curl  ip:9080/apisix/admin/upstreams, 10次请求以内就会出403.  9443https不会出现, 只有http 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752660555


   ![image](https://user-images.githubusercontent.com/3734822/103363503-336b1c80-4af6-11eb-8ca0-6ddd31fcb353.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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 closed issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 closed issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] spacewander commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752811073


   Please provide the error log when 403 happened. Since the error log will be large, you should upload the whole one instead of paste it here.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752408434


   不是的.我手动查看过etcd中的数据,并且尝试N次apisix restart. 还是无效.
   当然我已经解决,就是将 manage-api中的 url前缀 "apisix/admin" 修改为 "apisixbug/admin" . 问题已经解决.  目测来看这个bug不是dashboard的,而是apisix的
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] tokers commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752651293


   > 不是的.我手动查看过etcd中的数据,并且尝试N次apisix restart. 还是无效.
   > 
   > 当然我已经解决,就是将 manage-api中的 url前缀 "apisix/admin" 修改为 "apisixbug/admin" . 问题已经解决.  目测来看这个bug不是dashboard的,而是apisix的
   > 
   > 
   
   What's the response body like about this 403?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752661350


   ![image](https://user-images.githubusercontent.com/3734822/103363626-83e27a00-4af6-11eb-98a1-5ae955965a85.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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 removed a comment on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 removed a comment on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752660555


   ![image](https://user-images.githubusercontent.com/3734822/103363503-336b1c80-4af6-11eb-8ca0-6ddd31fcb353.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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752658316


   > What's the response body like about this 403?
   
   没有响应body, http 协议 status是403


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] json7 commented on issue #1159: 通过apisix访问 manage-api(作为upstream), 偶发性的403?

Posted by GitBox <gi...@apache.org>.
json7 commented on issue #1159:
URL: https://github.com/apache/apisix-dashboard/issues/1159#issuecomment-752902007


   Yes, it's about the openresty version. I went back to 1.17 and it's normal


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org