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/08/27 02:16:29 UTC

[GitHub] [apisix-dashboard] liuxiran opened a new issue #416: after update master, login return error again

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


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirements
   - [ ] Feature or performance improvement
   - [ ] Other
   
   ___
   ### Question
   - What do you want to know?
   
   ___
   ### Bug
   - Which version of Apache APISIX Dashboard, OS and Broswer?
   latest master branch
   
   
   
   - What happened?
   If possible, provide a way to reproduce the error.
   
   [test case]:
   
   1. use docker-compose to develop project,  use admin/admin to login
   
   1. return error
   
   request info:
   
   
   ![2020-08-27 10-06-40屏幕截图](https://user-images.githubusercontent.com/2561857/91375605-baa93a80-e84d-11ea-80d3-43c03641b402.png)
   
   ![2020-08-27 10-07-14屏幕截图](https://user-images.githubusercontent.com/2561857/91375572-a2392000-e84d-11ea-9d91-99fc710ce87e.png)
   
   and at the same time, the dashboard_manager docker container has been restarting
   ![2020-08-27 10-09-31屏幕截图](https://user-images.githubusercontent.com/2561857/91375740-0cea5b80-e84e-11ea-804f-df1ddc320105.png)
   
   logs:
   ![2020-08-27 10-15-27屏幕截图](https://user-images.githubusercontent.com/2561857/91375828-41f6ae00-e84e-11ea-8017-de0f184331b7.png)
   
   
   
   
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   


----------------------------------------------------------------
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 #416: after update master, login return error again

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


   > > @juzhiyuan yes i think so.
   > > @liuxiran you could pull the master branch and try again, thanks.
   > 
   > wow, issue has been resolved after I updated to the lastest master. thanks very much!!!!!!!
   > 
   > BTW, I could not understand why yesterday, with the error code, the demo site still worked fine? If there is something wrong with the ci?
   
   We don't have smoke testing currently 🤔  and Frontend and Backend are deployed separately, feel free to reopen this issue if there have other errors.


----------------------------------------------------------------
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] imjoey commented on issue #416: after update master, login return error again

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


   > Looks like the manager api couldn't connect the MySQL because of incorrect username or password, please check.
   > 
   > BTW, we are planning to use other lightweight DB to replace MySQL, it will take some time to finish this work.
   
   @juzhiyuan Could you please elaborate which lightweight DB will be the alternative, as well as the reason? Maybe we could help, with pleasure. 😄 
   


----------------------------------------------------------------
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] wanghuashun commented on issue #416: after update master, login return error again

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


   前端的请求有问题 
   src\pages\User\components\LoginMethodPassword.tsx
   98行
    const result = await request('/user/login',
   改成  const result = await request('http://192.168.3.124:8000/user/login',
   http://192.168.3.124:8080 后端(go)的api地址 之后就好了


----------------------------------------------------------------
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] wanghuashun commented on issue #416: after update master, login return error again

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


   我前天就遇见了  解决了   登陆不上是因为前端的一个地方。   
   


----------------------------------------------------------------
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 #416: after update master, login return error again

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


   @bzp2010 would involve this issue :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.

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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #416: after update master, login return error again

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


   > > 前端的请求有问题
   > > src\pages\User\components\LoginMethodPassword.tsx
   > > 98行
   > > const result = await request('/user/login',
   > > 改成 const result = await request('http://192.168.3.124:8000/user/login',
   > > http://192.168.3.124:8080 后端(go)的api地址 之后就好了
   > 
   > 感谢您的回答,我的问题还不是这个原因,事实上最新的代码中社区的同学已经规范了login的url。
   > 我尝试剔除了这个commit: [d37c11b](https://github.com/apache/apisix-dashboard/commit/d37c11b4f05d2dd52165995e1bd81fb2b89eeaef)
   > 重新编译构建了代码,问题就不存在了,所以考虑问题是不是出在☝️提交中。
   
   Not sure, but the online demo site[1] is using the latest codes from branch 🤔 Every commit sent to master branch will trigger the CI & CD.
   
   [1] http://139.217.190.60/


----------------------------------------------------------------
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] nic-chen commented on issue #416: after update master, login return error again

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #416:
URL: https://github.com/apache/apisix-dashboard/issues/416#issuecomment-681991254


   @juzhiyuan yes i think so.
   
   @liuxiran  you could pull the master branch and try again, thanks.


----------------------------------------------------------------
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] liuxiran commented on issue #416: after update master, login return error again

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


   > @juzhiyuan yes i think so.
   > 
   > @liuxiran you could pull the master branch and try again, thanks.
   
   wow, issue has been resolved after I updated to the lastest master.  thanks very much!!!!!!!
   
   BTW, I could not understand why yesterday, with the error code, the demo site still worked fine? If there is something wrong with the ci?


----------------------------------------------------------------
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 #416: after update master, login return error again

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


   cc @nic-chen 


----------------------------------------------------------------
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 closed issue #416: after update master, login return error again

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


   


----------------------------------------------------------------
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] liuxiran commented on issue #416: after update master, login return error again

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


   > > > 前端的请求有问题
   > > > src\pages\User\components\LoginMethodPassword.tsx
   > > > 98行
   > > > const result = await request('/user/login',
   > > > 改成 const result = await request('http://192.168.3.124:8000/user/login',
   > > > http://192.168.3.124:8080 后端(go)的api地址 之后就好了
   > > 
   > > 
   > > 感谢您的回答,我的问题还不是这个原因,事实上最新的代码中社区的同学已经规范了login的url。
   > > 我尝试剔除了这个commit: [d37c11b](https://github.com/apache/apisix-dashboard/commit/d37c11b4f05d2dd52165995e1bd81fb2b89eeaef)
   > > 重新编译构建了代码,问题就不存在了,所以考虑问题是不是出在point_up提交中。
   > 
   > Not sure, but the online demo site[1] is using the latest codes from branch thinking Every commit sent to master branch will trigger the CI & CD.
   > 
   > [1] http://139.217.190.60/
   
   yeap, I tried the demo site, it works well , but It still does not work well in my local docker-compose environment, still need help


----------------------------------------------------------------
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] nic-chen commented on issue #416: after update master, login return error again

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #416:
URL: https://github.com/apache/apisix-dashboard/issues/416#issuecomment-681900278


   it looks like manager api try to connect to mysql on 127.0.0.1:3306 , have you modified `apisix-dashboard/compose/manager_conf/build.sh`? @liuxiran 
   


----------------------------------------------------------------
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 #416: after update master, login return error again

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


   @nic-chen this PR will resolve this issue?


----------------------------------------------------------------
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 #416: after update master, login return error again

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


   Looks like the manager api couldn't connect the MySQL because of incorrect username or password, please check.
   
   BTW, we are planning to use other lightweight DB to replace MySQL, it will take some time to finish this work.


----------------------------------------------------------------
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 #416: after update master, login return error again

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


   > 前端的请求有问题
   > src\pages\User\components\LoginMethodPassword.tsx
   > 98行
   > const result = await request('/user/login',
   > 改成 const result = await request('http://192.168.3.124:8000/user/login',
   > http://192.168.3.124:8080 后端(go)的api地址 之后就好了
   
   It seems that you don't notice the nginx file :{ there has a proxy rule to handle requests including `/apisix/admin`


----------------------------------------------------------------
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] liuxiran commented on issue #416: after update master, login return error again

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


   > it looks like manager api try to connect to mysql on 127.0.0.1:3306 , have you modified `apisix-dashboard/compose/manager_conf/build.sh`? @liuxiran
   
   no, developed with the default config files


----------------------------------------------------------------
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] wanghuashun removed a comment on issue #416: after update master, login return error again

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


   我前天就遇见了  解决了   登陆不上是因为前端的一个地方。   
   


----------------------------------------------------------------
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] liuxiran commented on issue #416: after update master, login return error again

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


   > 前端的请求有问题
   > src\pages\User\components\LoginMethodPassword.tsx
   > 98行
   > const result = await request('/user/login',
   > 改成 const result = await request('http://192.168.3.124:8000/user/login',
   > http://192.168.3.124:8080 后端(go)的api地址 之后就好了
   
   感谢您的回答,我的问题还不是这个原因,事实上最新的代码中社区的同学已经规范了login的url。
   我尝试剔除了这个commit: https://github.com/apache/apisix-dashboard/commit/d37c11b4f05d2dd52165995e1bd81fb2b89eeaef
   重新编译构建了代码,问题就不存在了,所以考虑问题是不是出在☝️提交中。
   


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