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/14 10:35:10 UTC

[GitHub] [apisix] lhtlp1997 opened a new issue #2060: bug:

lhtlp1997 opened a new issue #2060:
URL: https://github.com/apache/apisix/issues/2060


   ### Issue description
   按照官网上的【依赖安装文档】,安装了openResty,etcd,编译工具这些。apisix启动都没有问题。但是调用接口建立service的时候就报错了。
   curl "http://127.0.0.1:9080/apisix/admin/upstreams/50" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "type": "roundrobin",
       "nodes": {
           "httpbin.org:443": 1
       }
   }'
   执行的是这个命令
   
   <html>
   <head><title>500 Internal Server Error</title></head>
   <body>
   <center><h1>500 Internal Server Error</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   
   
   ### Environment
   cent os 7
   * apisix version (cmd: `apisix version`):
   * OS:
   
   ### Minimal test code / Steps to reproduce the issue
   1.
   2.
   3.
   
   ### What's the actual result? (including assertion message & call stack if applicable)
   
   
   
   ### What's the expected result?
   


----------------------------------------------------------------
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] lhtlp1997 commented on issue #2060: bug: got 500 response when PUT new upstream

Posted by GitBox <gi...@apache.org>.
lhtlp1997 commented on issue #2060:
URL: https://github.com/apache/apisix/issues/2060#issuecomment-674028491


   2020/08/14 19:24:03 [error] 12547#12547: *36 lua entry thread aborted: runtime error: /root/apache-apisix-1.5/apisix/init.lua:697: attempt to index upvalue 'router' (a nil value)
   stack traceback:
   coroutine 0:
   	/root/apache-apisix-1.5/apisix/init.lua: in function 'http_admin'
   	content_by_lua(nginx.conf:145):2: in main chunk, client: 127.0.0.1, server: , request: "PUT /apisix/admin/routes/1 HTTP/1.1", host: "127.0.0.1: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] membphis commented on issue #2060: bug: got 500 response when PUT new upstream

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2060:
URL: https://github.com/apache/apisix/issues/2060#issuecomment-674031256


   Do not try to use apisix under the root user, it is not safe.
   And some lua code may not be loaded normally due to missing permissions.


----------------------------------------------------------------
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] lhtlp1997 removed a comment on issue #2060: bug: got 500 response when PUT new upstream

Posted by GitBox <gi...@apache.org>.
lhtlp1997 removed a comment on issue #2060:
URL: https://github.com/apache/apisix/issues/2060#issuecomment-674028491


   2020/08/14 19:24:03 [error] 12547#12547: *36 lua entry thread aborted: runtime error: /root/apache-apisix-1.5/apisix/init.lua:697: attempt to index upvalue 'router' (a nil value)
   stack traceback:
   coroutine 0:
   	/root/apache-apisix-1.5/apisix/init.lua: in function 'http_admin'
   	content_by_lua(nginx.conf:145):2: in main chunk, client: 127.0.0.1, server: , request: "PUT /apisix/admin/routes/1 HTTP/1.1", host: "127.0.0.1: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] membphis closed issue #2060: bug: got 500 response when PUT new upstream

Posted by GitBox <gi...@apache.org>.
membphis closed issue #2060:
URL: https://github.com/apache/apisix/issues/2060


   


----------------------------------------------------------------
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] lhtlp1997 commented on issue #2060: bug: got 500 response when PUT new upstream

Posted by GitBox <gi...@apache.org>.
lhtlp1997 commented on issue #2060:
URL: https://github.com/apache/apisix/issues/2060#issuecomment-674029177


   2020/08/14 19:26:10 [error] 12552#12552: *39 lua entry thread aborted: runtime error: /root/apache-apisix-1.5/apisix/init.lua:697: attempt to index upvalue 'router' (a nil value)
   stack traceback:
   coroutine 0:
   	/root/apache-apisix-1.5/apisix/init.lua: in function 'http_admin'
   	content_by_lua(nginx.conf:145):2: in main chunk, client: 127.0.0.1, server: , request: "PUT /apisix/admin/upstreams/50 HTTP/1.1", host: "127.0.0.1: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] membphis commented on issue #2060: bug: got 500 response when PUT new upstream

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2060:
URL: https://github.com/apache/apisix/issues/2060#issuecomment-674028498


   BTW, please use English in the public channel ^_^


----------------------------------------------------------------
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] membphis commented on issue #2060: bug:

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2060:
URL: https://github.com/apache/apisix/issues/2060#issuecomment-674027470


   please check your error log, we need it to confirm this bug.


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