Git Product home page Git Product logo

Comments (9)

menghanl avatar menghanl commented on June 12, 2024 2

What's in the log? https://github.com/grpc/grpc-go#how-to-turn-on-logging

from traffic-director-grpc-examples.

dapengzhang0 avatar dapengzhang0 commented on June 12, 2024

@menghanl @easwars Could you please take a look at the issue?

from traffic-director-grpc-examples.

dapengzhang0 avatar dapengzhang0 commented on June 12, 2024

What's in the log? https://github.com/grpc/grpc-go#how-to-turn-on-logging

2021/08/26 20:52:03 xDS credentials in use: false
INFO: 2021/08/26 20:52:03 [core] Channel Created
INFO: 2021/08/26 20:52:03 [core] parsed scheme: ""
INFO: 2021/08/26 20:52:03 [core] scheme "" not registered, fallback to default scheme
INFO: 2021/08/26 20:52:03 [core] ccResolverWrapper: sending update to cc: {[{localhost:18881  <nil> 0 <nil>}] <nil> <nil>}
INFO: 2021/08/26 20:52:03 [core] Resolver state updated: {Addresses:[{Addr:localhost:18881 ServerName: Attributes:<nil> Type:0 Metadata:<nil>}] ServiceConfig:<nil> Attributes:<nil>} (resolver returned new addresses)
INFO: 2021/08/26 20:52:03 [core] ClientConn switching balancer to "pick_first"
INFO: 2021/08/26 20:52:03 [core] Channel switches to new LB policy "pick_first"
INFO: 2021/08/26 20:52:03 [core] Subchannel Created
INFO: 2021/08/26 20:52:03 [core] Subchannel(id:2) created
INFO: 2021/08/26 20:52:03 [core] Subchannel Connectivity change to CONNECTING
INFO: 2021/08/26 20:52:03 [core] Subchannel picks a new address "localhost:18881" to connect
INFO: 2021/08/26 20:52:03 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {CONNECTING <nil>}
INFO: 2021/08/26 20:52:03 [core] Channel Connectivity change to CONNECTING
WARNING: 2021/08/26 20:52:03 [core] grpc: addrConn.createTransport failed to connect to {localhost:18881 localhost:18881 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused". Reconnecting...
INFO: 2021/08/26 20:52:03 [core] Subchannel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:03 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused"}
INFO: 2021/08/26 20:52:03 [core] Channel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:04 [core] Subchannel Connectivity change to CONNECTING
INFO: 2021/08/26 20:52:04 [core] Subchannel picks a new address "localhost:18881" to connect
INFO: 2021/08/26 20:52:04 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {CONNECTING <nil>}
INFO: 2021/08/26 20:52:04 [core] Channel Connectivity change to CONNECTING
WARNING: 2021/08/26 20:52:04 [core] grpc: addrConn.createTransport failed to connect to {localhost:18881 localhost:18881 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused". Reconnecting...
INFO: 2021/08/26 20:52:04 [core] Subchannel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:04 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused"}
INFO: 2021/08/26 20:52:04 [core] Channel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:06 [core] Subchannel Connectivity change to CONNECTING
INFO: 2021/08/26 20:52:06 [core] Subchannel picks a new address "localhost:18881" to connect
INFO: 2021/08/26 20:52:06 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {CONNECTING <nil>}
INFO: 2021/08/26 20:52:06 [core] Channel Connectivity change to CONNECTING
WARNING: 2021/08/26 20:52:06 [core] grpc: addrConn.createTransport failed to connect to {localhost:18881 localhost:18881 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused". Reconnecting...
INFO: 2021/08/26 20:52:06 [core] Subchannel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:06 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused"}
INFO: 2021/08/26 20:52:06 [core] Channel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:08 [core] Subchannel Connectivity change to CONNECTING
INFO: 2021/08/26 20:52:08 [core] Subchannel picks a new address "localhost:18881" to connect
INFO: 2021/08/26 20:52:08 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {CONNECTING <nil>}
INFO: 2021/08/26 20:52:08 [core] Channel Connectivity change to CONNECTING
WARNING: 2021/08/26 20:52:08 [core] grpc: addrConn.createTransport failed to connect to {localhost:18881 localhost:18881 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused". Reconnecting...
INFO: 2021/08/26 20:52:08 [core] Subchannel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:08 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused"}
INFO: 2021/08/26 20:52:08 [core] Channel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:12 [core] Subchannel Connectivity change to CONNECTING
INFO: 2021/08/26 20:52:12 [core] Subchannel picks a new address "localhost:18881" to connect
WARNING: 2021/08/26 20:52:12 [core] grpc: addrConn.createTransport failed to connect to {localhost:18881 localhost:18881 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused". Reconnecting...
INFO: 2021/08/26 20:52:12 [core] Subchannel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:12 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {CONNECTING <nil>}
INFO: 2021/08/26 20:52:12 [core] Channel Connectivity change to CONNECTING
INFO: 2021/08/26 20:52:12 [core] pickfirstBalancer: UpdateSubConnState: 0xc000070b20, {TRANSIENT_FAILURE connection error: desc = "transport: Error while dialing dial tcp [::1]:18881: connect: connection refused"}
INFO: 2021/08/26 20:52:12 [core] Channel Connectivity change to TRANSIENT_FAILURE
INFO: 2021/08/26 20:52:13 [core] Channel Connectivity change to SHUTDOWN
INFO: 2021/08/26 20:52:13 [core] Subchannel Connectivity change to SHUTDOWN
INFO: 2021/08/26 20:52:13 [core] Subchannel Deleted
INFO: 2021/08/26 20:52:13 [core] Subchanel(id:2) deleted
INFO: 2021/08/26 20:52:13 [core] Channel Deleted
INFO: 2021/08/26 20:52:13 [channelz] attempt to delete child with id 2 from a parent (id=1) that doesn't currently exist
INFO: 2021/08/26 20:52:13 [channelz] attempt to delete child with id 2 from a parent (id=1) that doesn't currently exist
2021/08/26 20:52:13 Failed to connect to the Wallet server: context deadline exceeded

How to turn on xds client log?

from traffic-director-grpc-examples.

dapengzhang0 avatar dapengzhang0 commented on June 12, 2024

Is it using the default port 18881 and dns resolver? So xds client is not used.

INFO: 2021/08/26 20:52:03 [core] parsed scheme: ""
INFO: 2021/08/26 20:52:03 [core] scheme "" not registered, fallback to default scheme

from traffic-director-grpc-examples.

menghanl avatar menghanl commented on June 12, 2024

Yes, and it's connecting to localhost:18881. Seems it didn't get the flags at all?

from traffic-director-grpc-examples.

menghanl avatar menghanl commented on June 12, 2024

Can you try this #74?

Actually, this doesn't look right. Parse() is called in parseArguments()

from traffic-director-grpc-examples.

dapengzhang0 avatar dapengzhang0 commented on June 12, 2024

I think the problem comes from this change: 27d66b0#diff-f1b9f1cd035de81ff11626c152d6ba7cd0edd286f6ec98fa541f022a9ce42e09R258

It's always trying to connect wallet server after the change, even for price command.

from traffic-director-grpc-examples.

menghanl avatar menghanl commented on June 12, 2024

Yes, this should fix it: #75

from traffic-director-grpc-examples.

dapengzhang0 avatar dapengzhang0 commented on June 12, 2024

Test passed after fix #75.

from traffic-director-grpc-examples.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.