You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/11/20 13:42:12 UTC

[GitHub] [skywalking] zhengcan opened a new issue #3908: skywalking-ui reports error as the result of query endpoints

zhengcan opened a new issue #3908: skywalking-ui reports error as the result of query endpoints
URL: https://github.com/apache/skywalking/issues/3908
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [x] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   6.5.0
   
   - Which company or project?
   Demo
   
   - What happen?
   I've installed a new skywalking instance, includes oap-server and ui.
   
   The ui throws error when I try to list all endpoints.
   The browser send the following request:
   ```
   {"query":"query queryEndpoints($serviceId: ID!, $keyword: String!) {
       getEndpoints: searchEndpoint(serviceId: $serviceId, keyword: $keyword, limit: 100) {
         key: id
         label: name
       }
   }","variables":{"keyword":""}}
   ```
   And server responses:
   ```
   {"errors":[{"message":"Variable 'serviceId' has coerced Null value for NonNull type 'ID!'"}]}
   ```
   
   The log of ui are:
   ```
   ...
   2019-11-20 13:18:34.181 INFO 1 --- [nio-8080-exec-7] c.n.l.DynamicServerListLoadBalancer : DynamicServerListLoadBalancer for client collector initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=collector,current list of Servers=[localhost:12800],Load balancer stats=Zone stats: {unknown=[Zone:unknown; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;]
   },Server stats: [[Server:localhost:12800; Zone:UNKNOWN; Total Requests:0; Successive connection failure:0; Total blackout seconds:0; Last connection made:Thu Jan 01 00:00:00 GMT 1970; First connection made: Thu Jan 01 00:00:00 GMT 1970; Active Connections:0; total failure count in last (1000) msecs:0; average resp time:0.0; 90 percentile resp time:0.0; 95 percentile resp time:0.0; min resp time:0.0; max resp time:0.0; stddev resp time:0.0]
   ]}ServerList:com.netflix.loadbalancer.ConfigurationBasedServerList@36743aa4
   ...
   ```
   
   I've check the data in database, which is mysql, and it has the following data:
   ```
   select * from service_inventory;
   +----------------+------------+------------+------------+-----------+--------------------+------------+----------+---------------+----------------+------------------+
   | id             | name       | is_address | address_id | node_type | mapping_service_id | properties | sequence | register_time | heartbeat_time | last_update_time |
   +----------------+------------+------------+------------+-----------+--------------------+------------+----------+---------------+----------------+------------------+
   | SkyWalking_0_0 | SkyWalking |          0 |          0 |         0 |                  0 | {}         |        2 | 1574255785986 |  1574256185983 |    1574255785986 |
   +----------------+------------+------------+------------+-----------+--------------------+------------+----------+---------------+----------------+------------------+
   
   select * from service_instance_inventory;
   +------------------+---------------+------------+------------+------------+------------+------------+----------+---------------+----------------+------------------+
   | id               | instance_uuid | name       | service_id | is_address | address_id | properties | sequence | register_time | heartbeat_time | last_update_time |
   +------------------+---------------+------------+------------+------------+------------+------------+----------+---------------+----------------+------------------+
   | 2_standalone_0_0 | standalone    | standalone |          2 |          0 |          0 | NULL       |        2 | 1574255790988 |  1574257095983 |                0 |
   +------------------+---------------+------------+------------+------------+------------+------------+----------+---------------+----------------+------------------+
   
   select * from endpoint_inventory;
   Empty set (0.00 sec)
   
   select * from network_address_inventory;
   Empty set (0.00 sec)
   ```

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


With regards,
Apache Git Services