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/11/09 01:58:33 UTC

[GitHub] [apisix] jinpy666 opened a new issue #2662: bug: Can't turn on Skywalking

jinpy666 opened a new issue #2662:
URL: https://github.com/apache/apisix/issues/2662


   ### Issue description
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.0
   * OS:CentOS 7.8
   
   ### Minimal test code / Steps to reproduce the issue
   I opened Skyworking in config.yaml and restarted the service, which did not take effect
   
   ### What's the expected result?
   ![image](https://user-images.githubusercontent.com/5868671/98491860-1c841880-2271-11eb-9321-8c39a21f12d9.png)
   ![image](https://user-images.githubusercontent.com/5868671/98491921-48070300-2271-11eb-8738-e8ce2979bcf2.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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > How you get the 500 error?
   
   Yes, You can import my ETCD data and get my specific settings.


----------------------------------------------------------------
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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > it works fine at my side. :(
   > 
   > ![image](https://user-images.githubusercontent.com/6814606/98562334-e84a3f80-22e4-11eb-8eec-86e3a194d029.png)
   Why is this not available in Dashboard? Don't support UI operations?
   
   ![image](https://user-images.githubusercontent.com/5868671/98563715-770b8c00-22e6-11eb-80e7-5443691b3fc6.png)
   ![image](https://user-images.githubusercontent.com/5868671/98564037-d8335f80-22e6-11eb-9bb5-4bc0d2bf22f4.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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > @jinpy666 [apache/apisix-dashboard#754](https://github.com/apache/apisix-dashboard/pull/754)
   > 
   > we update the JSONSchema file: https://github.com/apache/apisix-dashboard/pull/754/files#diff-5fadf7c6b5b550d0a97075c3ddeaf29028204cd60da2660c6a1e1c72b4bbd0ed
   > 
   > you can use it to replace the file `api/conf/schema.json` or `output/conf/schema.json` in your work folder.
   > 
   > if you have any question, please let us know
   
   
   I rebuilt based on the latest branch and can see the plugin and set it up, but 500 errors will appear.
   
   ```
   [root@master logs]# tail error.log 
           /usr/local/apisix/apisix/script.lua:52: in function 'run'
           /usr/local/apisix/apisix/init.lua:487: in function 'http_access_phase'
           access_by_lua(nginx.conf:168):2: in main chunk, client: 10.211.55.2, server: , request: "GET /test HTTP/1.1", host: "centos-linux:9080"
   2020/11/10 14:28:40 [error] 16584#16584: *2140379 lua entry thread aborted: runtime error: [string "route#327557467250622747"]:14: attempt to index upvalue 'request_id' (a nil value)
   stack traceback:
   coroutine 0:
           [string "route#327557467250622747"]: in function 'phase_func'
           /usr/local/apisix/apisix/script.lua:52: in function 'run'
           /usr/local/apisix/apisix/init.lua:487: in function 'http_access_phase'
           access_by_lua(nginx.conf:168):2: in main chunk, client: 10.211.55.2, server: , request: "GET /test HTTP/1.1", host: "centos-linux:9080"
   [root@master logs]# 
   ```
   [etcd.zip](https://github.com/apache/apisix/files/5515519/etcd.zip)  This is my ETCD DB
   
   


----------------------------------------------------------------
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 #2662: bug: Can't turn on Skywalking

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


   it works fine at my side. :(
   
   ![image](https://user-images.githubusercontent.com/6814606/98562334-e84a3f80-22e4-11eb-8eec-86e3a194d029.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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > Can't reproduce in my side.
   > 
   > ```
   >  ¥ curl 127.0.0.1:9080/apisix/admin/plugins/list -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
   > ["skywalking"]
   > ```
   > 
   > My configuration:
   > 
   > ```
   > apisix:
   >   admin_key:
   >     -
   >       name: "admin"
   >       key: edd1c9f034335f136f87ad84b625c8f1 # using fixed API token has security risk, please
   >                                             # update it when you deploy to production environment
   >       role: admin
   > plugins:
   >   - skywalking
   > ```
   > 
   > Have you restarted APISIX after changing the configuration?
   
   ![image](https://user-images.githubusercontent.com/5868671/98494278-8dc6ca00-2277-11eb-95bd-663a3043361e.png)
   It's been restarted.I'm using the latest release:v2.0.


----------------------------------------------------------------
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 #2662: bug: Can't turn on Skywalking

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


   @jinpy666 https://github.com/apache/apisix-dashboard/pull/754
   
   we update the JSONSchema file: https://github.com/apache/apisix-dashboard/pull/754/files#diff-5fadf7c6b5b550d0a97075c3ddeaf29028204cd60da2660c6a1e1c72b4bbd0ed
   
   you can use it to replace the file `api/conf/schema.json` or `output/conf/schema.json` in your work folder.
   
   if you have any question, please let us know


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   @jinpy666 
   Please don't make me guess.


----------------------------------------------------------------
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] nic-chen commented on issue #2662: bug: Can't turn on Skywalking

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


   > @nic-chen do you have any idea about this? how to get the plugin list from manager-api?
   
   List by jsonschema. I will try in my local, and figure it out 


----------------------------------------------------------------
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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > The `plugins` should be the same indent level as the `apisix`.
   
   ![image](https://user-images.githubusercontent.com/5868671/98492901-2b1fff00-2274-11eb-86f9-406c79c176c1.png)
   It still doesn't open


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   The `plugins` should be the same indent level as the `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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   Can't reproduce in my side.
   
   ```
    ¥ curl 127.0.0.1:9080/apisix/admin/plugins/list -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
   ["skywalking"]
   ```
   
   My configuration:
   ```
   apisix:
     admin_key:
       -
         name: "admin"
         key: edd1c9f034335f136f87ad84b625c8f1 # using fixed API token has security risk, please
                                               # update it when you deploy to production environment
         role: admin
   plugins:
     - skywalking
   ```
   
   Have you restarted APISIX after changing the configuration?


----------------------------------------------------------------
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] idbeta commented on issue #2662: bug: Can't turn on Skywalking

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


   @jinpy666 any update?
   BTW, if you modify `config.yaml` to enable `skywalking`, you should add other original plugins too, you can get them from `config-default.yaml`, otherwise, other plugins will be disabled.


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   Still can't reproduce with `apisix restart`.


----------------------------------------------------------------
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 #2662: bug: Can't turn on Skywalking

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


   @jinpy666 you can provide your `conf/config.yaml` file, we can make a try


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   > It still doesn't open
   
   You should show the error message instead of saying it doesn't 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] membphis commented on issue #2662: bug: Can't turn on Skywalking

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


   @nic-chen do you have any idea about this? how to get the plugin list from manager-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] spacewander closed issue #2662: bug: Can't turn on Skywalking

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


   


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   @jinpy666 
   Have you enabled request-id plugin?


----------------------------------------------------------------
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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > @jinpy666
   > Have you enabled request-id plugin?
   
   Yes


----------------------------------------------------------------
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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > Any error message in your `logs/error.log`?
   
   ![image](https://user-images.githubusercontent.com/5868671/98495898-30347c80-227b-11eb-8895-45c92f8c6641.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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > @jinpy666 any update?
   > BTW, if you modify `config.yaml` to enable `skywalking`, you should add other original plugins too, you can get them from `config-default.yaml`, otherwise, other plugins will be disabled.
   
   Em.. Why not merge the two configurations, with the highest priority of config.yaml


----------------------------------------------------------------
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 edited a comment on issue #2662: bug: Can't turn on Skywalking

Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #2662:
URL: https://github.com/apache/apisix/issues/2662#issuecomment-724075010


   @jinpy666 you can provide your `conf/config.yaml` file, we can make a check


----------------------------------------------------------------
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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > @jinpy666
   > Please don't make me guess.
   
   ![image](https://user-images.githubusercontent.com/5868671/98649329-702a5b00-2372-11eb-90b2-82d0891e312f.png)
   This is how I use the plugin, is there no added condition, resulting in the generated script error?If so, the form validation needs to be strengthened.


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   How you get the 500 error?


----------------------------------------------------------------
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] spacewander commented on issue #2662: bug: Can't turn on Skywalking

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


   Any error message in your `logs/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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > @jinpy666 you can provide your `conf/config.yaml` file, we can make a check
   
   ```
   [root@master conf]# apisix version
   2.0
   [root@master conf]# pwd
   /usr/local/apisix/conf
   [root@master conf]# cat config.yaml 
   #
   # Licensed to the Apache Software Foundation (ASF) under one or more
   # contributor license agreements.  See the NOTICE file distributed with
   # this work for additional information regarding copyright ownership.
   # The ASF licenses this file to You under the Apache License, Version 2.0
   # (the "License"); you may not use this file except in compliance with
   # the License.  You may obtain a copy of the License at
   #
   #     http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing, software
   # distributed under the License is distributed on an "AS IS" BASIS,
   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   # See the License for the specific language governing permissions and
   # limitations under the License.
   #
   # If you want to set the specified configuration value, you can set the new
   # in this file. For example if you want to specify the etcd address:
   #
   # etcd:
   #     host:
   #       - "http://127.0.0.1:2379"
   #
   apisix:
     admin_key:
       -
         name: "admin"
         key: edd1c9f034335f136f87ad84b625c8f1 # using fixed API token has security risk, please
                                               # update it when you deploy to production environment
         role: admin
   plugins:
     - skywalking
   ```


----------------------------------------------------------------
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] jinpy666 commented on issue #2662: bug: Can't turn on Skywalking

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


   > > It still doesn't open
   > 
   > You should show the error message instead of saying it doesn't work.
   
   ![image](https://user-images.githubusercontent.com/5868671/98493186-c87b3300-2274-11eb-9810-69128d984993.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