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 2021/11/25 08:02:01 UTC

[GitHub] [apisix] zqm233 opened a new issue #5609: bug: error when using the zipkin plugin

zqm233 opened a new issue #5609:
URL: https://github.com/apache/apisix/issues/5609


   ### Issue description
   
   When i using the zipkin plugin, there are some error logs
   
   __CONTENT__:2021/11/25 15:53:53 [error] 1433#1433: *1321664853 failed to run log_by_lua*: /usr/local/apisix/apisix/plugins/zipkin.lua:274: attempt to index field 'response_span' (a nil value)
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OS (cmd: `uname -a`): centos-7.9 (kernal 5.4)
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): 
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   
   
   ### Steps to reproduce
   
    open the zipkin plugin, the error shows
   
   ### Actual result
   
   unkown
   
   ### Error log
   
   __CONTENT__:2021/11/25 15:53:53 [error] 1433#1433: *1321664853 failed to run log_by_lua*: /usr/local/apisix/apisix/plugins/zipkin.lua:274: attempt to index field 'response_span' (a nil value)
   
   ### Expected result
   
   _No response_


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] shuaijinchao commented on issue #5609: bug: error when using the zipkin plugin

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


   please provide your environment, configuration information and steps to reproduce.


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 edited a comment on issue #5609: bug: error when using the zipkin plugin

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


   > my APISIX version is 2.10.2, and we have some bugfix maybe releated to this: #5256 #5295
   > 
   > can you use the master branch or 2.10.2 to test?
   
   The god damn error also shows in 2.10.2. The error didn't show until the 3rd time test. 
   
   
   ![image](https://user-images.githubusercontent.com/15966865/143524228-ea40ad2f-11be-4fe8-b32a-ba3bf3178d58.png)
   
   ![image](https://user-images.githubusercontent.com/15966865/143524280-c16adcb3-1afe-4c4f-9a9e-4d12baa51c6d.png)
   
   ![image](https://user-images.githubusercontent.com/15966865/143524612-1074e73c-1a20-41e8-bf46-ae723632e579.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] shuaijinchao commented on issue #5609: bug: error when using the zipkin plugin

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


   I cannot reproduce the problem following the steps you provided
   
   ---
   
   ![image](https://user-images.githubusercontent.com/8529452/143515179-2b84155a-ffa4-4438-a2b0-96f706eea688.png)
   ![image](https://user-images.githubusercontent.com/8529452/143515200-2b55ffbf-82a2-407a-b716-d1511962ddb3.png)
   ![image](https://user-images.githubusercontent.com/8529452/143515258-07528160-80ce-4f26-8ab5-fee3ec96ca9d.png)
   ![image](https://user-images.githubusercontent.com/8529452/143515488-b7191a98-75b2-4bae-845f-6c97ef33a2a7.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5609: bug: error when using the zipkin plugin

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


   I can't reproduce it either
   
   1. start zipkin
   
   `docker run -d -p 9411:9411 openzipkin/zipkin`
   
   2. route config
   
   ```json
   {
       "plugins": {
           "zipkin": {
               "endpoint": "http://127.0.0.1:9411/api/v2/spans",
               "sample_ratio": 1,
               "service_name": "APISIX-IN-SG"
           }
       },
       "upstream": {
          "nodes": {
              "127.0.0.1:1980": 1
          },
          "type": "roundrobin"
       },
       "uri": "/*"
   }
   ```
   
   3. wrk2
   
   `wrk2 -t4 -c10 -d30s -R1000 --latency http://127.0.0.1:9080/get`
   
   no errors in 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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > I know, you put the zipkin plugin on the global rule.
   
   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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] spacewander closed issue #5609: bug: error when using the zipkin plugin

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


   


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > The problem cannot be reproduced after several retries. Have you checked whether the zipkin service is normal when there is a problem?
   
   ![image](https://user-images.githubusercontent.com/15966865/143518132-170efcad-316a-4898-ae98-913551750a2f.png)
   
   When the error shows, the Zipkin is ok.


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > I can't reproduce it either
   > 
   > 1. start zipkin
   > 
   > `docker run -d -p 9411:9411 openzipkin/zipkin`
   > 
   > 2. route config
   > 
   > ```json
   > {
   >     "plugins": {
   >         "zipkin": {
   >             "endpoint": "http://127.0.0.1:9411/api/v2/spans",
   >             "sample_ratio": 1,
   >             "service_name": "APISIX-IN-SG"
   >         }
   >     },
   >     "upstream": {
   >        "nodes": {
   >            "127.0.0.1:1980": 1
   >        },
   >        "type": "roundrobin"
   >     },
   >     "uri": "/*"
   > }
   > ```
   > 
   > 3. wrk2
   > 
   > `wrk2 -t4 -c10 -d30s -R1000 --latency http://127.0.0.1:9080/get`
   > 
   > no errors in logs/error.log
   
   What version of the APISIX do you use? Maybe i should the latest 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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5609: bug: error when using the zipkin plugin

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


   my APISIX version is 2.10.2, and we have some bugfix maybe releated to this: https://github.com/apache/apisix/pull/5256 https://github.com/apache/apisix/pull/5295
   
   can you use the master branch or 2.10.2 to test?


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5609: bug: error when using the zipkin plugin

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


   > 1. Apisix open the zipkin plugin, set an upstream and a route. A go service as the upastrem.
   
   show the config of route, upstream


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] shuaijinchao commented on issue #5609: bug: error when using the zipkin plugin

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


   The problem cannot be reproduced after several retries. Have you checked whether the zipkin service is normal when there is a problem?


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 edited a comment on issue #5609: bug: error when using the zipkin plugin

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


   > please provide your environment, configuration information and steps to reproduce.
   
   I test the zipkin plugin on my personal mac now.
   
   1. Apisix open the zipkin plugin, set an upstream and a route. A go service as the upastrem.
   2. use ab to test the url  $ ab -r -c 500 -n 10000 http://localhost:9080/a
   3. Then the apisix log shows the error
   ![image](https://user-images.githubusercontent.com/15966865/143432790-32241826-a9e5-46c5-97d5-efead2d9cc86.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > > 1. Apisix open the zipkin plugin, set an upstream and a route. A go service as the upastrem.
   > 
   > show the config of route, upstream
   
   As the photo.
   ![image](https://user-images.githubusercontent.com/15966865/143517005-52c39346-09c7-4767-abe4-141da53c3929.png)
   
   ![image](https://user-images.githubusercontent.com/15966865/143517042-87a1b6b6-0ba4-4012-bb85-b4d44fe95afa.png)
   
   ![image](https://user-images.githubusercontent.com/15966865/143517079-e5a95a12-3686-4edd-b52b-edec40fff7f6.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > please provide your environment, configuration information and steps to reproduce.
   
   I test the zipkin in my personal mac now.
   
   1. Apisix open the zipkin plugin, set an upstream and a route. A go service as the upastrem.
   2. use ab to test the url  $ ab -r -c 500 -n 10000 http://localhost:9080/a
   3. Then the apisix log shows the error
   ![image](https://user-images.githubusercontent.com/15966865/143432790-32241826-a9e5-46c5-97d5-efead2d9cc86.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > my APISIX version is 2.10.2, and we have some bugfix maybe releated to this: #5256 #5295
   > 
   > can you use the master branch or 2.10.2 to test?
   
   The god damn error also shows in 2.10.2. The error didn't show until the 3rd time test. 
   
   
   ![image](https://user-images.githubusercontent.com/15966865/143524228-ea40ad2f-11be-4fe8-b32a-ba3bf3178d58.png)
   
   ![image](https://user-images.githubusercontent.com/15966865/143524280-c16adcb3-1afe-4c4f-9a9e-4d12baa51c6d.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > my APISIX version is 2.10.2, and we have some bugfix maybe releated to this: #5256 #5295
   > 
   > can you use the master branch or 2.10.2 to test?
   
   I change to Linux hardware to test it. It's ok. So I guess the error is related to some upstream timeout or something.


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 edited a comment on issue #5609: bug: error when using the zipkin plugin

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


   > please provide your environment, configuration information and steps to reproduce.
   apisix version: Apisix 2.10
   OS : macos
   
   I test the zipkin plugin on my personal mac now.
   
   1. Apisix open the zipkin plugin, set an upstream and a route. A go service as the upastrem.
   2. use ab to test the url  $ ab -r -c 500 -n 10000 http://localhost:9080/a
   3. Then the apisix log shows the error
   ![image](https://user-images.githubusercontent.com/15966865/143432790-32241826-a9e5-46c5-97d5-efead2d9cc86.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > I cannot reproduce the problem following the steps you provided
   > 
   > ![image](https://user-images.githubusercontent.com/8529452/143515179-2b84155a-ffa4-4438-a2b0-96f706eea688.png) ![image](https://user-images.githubusercontent.com/8529452/143515200-2b55ffbf-82a2-407a-b716-d1511962ddb3.png) ![image](https://user-images.githubusercontent.com/8529452/143515258-07528160-80ce-4f26-8ab5-fee3ec96ca9d.png) ![image](https://user-images.githubusercontent.com/8529452/143515488-b7191a98-75b2-4bae-845f-6c97ef33a2a7.png)
   
   The error does not show the first test. Just try the test several times in a minute.


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass edited a comment on issue #5609: bug: error when using the zipkin plugin

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


   I know,  you put the zipkin plugin on the global rule.


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5609: bug: error when using the zipkin plugin

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


   I know,  you put the zipkin plugin on the global rule?


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5609: bug: error when using the zipkin plugin

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


   considered resolved.


-- 
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: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] zqm233 commented on issue #5609: bug: error when using the zipkin plugin

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


   > my APISIX version is 2.10.2, and we have some bugfix maybe releated to this: #5256 #5295
   > 
   > can you use the master branch or 2.10.2 to test?
   
   Ok. I'll try it.


-- 
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: notifications-unsubscribe@apisix.apache.org

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