Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

[gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: \"\\x00\\x01\\x00\\x01\\x00\\x01\\x00\\x00\\x00\\x00\\x03&\\n\\x103BBARCE_US\"" #649

Open
LoboDCOK opened this issue Oct 12, 2022 · 1 comment

Comments

@LoboDCOK
Copy link

Hi.

i am trying to configure gnmic as listen to work with a cisco asr.

this is the command i use

gnmic --address 0.0.0.0:32767 --insecure --log-file /var/log/gnmic/gnmic-PE-CISCO.log --format event --encoding event --no-prefix --debug listen

and this is the resulting log

**2022/10/12 15:03:55.130866 /home/runner/work/gnmic/gnmic/app/app.go:211: [gnmic] version=0.26.0, commit=ba387ba, date=2022-06-29T06:52:10Z, gitURL=https://github.com/karimra/gnmic, docs=https://gnmic.kmrd.dev
2022/10/12 15:03:55.130957 /home/runner/work/gnmic/gnmic/app/app.go:216: [gnmic] using config file ""
2022/10/12 15:03:55.132423 /home/runner/work/gnmic/gnmic/app/app.go:254: [gnmic] set flags/config:
address:

  • 0.0.0.0:32767
    api: ""
    capabilities-version: false
    cluster-name: default-cluster
    config: ""
    debug: true
    diff-compare: []
    diff-model: []
    diff-path: []
    diff-prefix: ""
    diff-qos: "0"
    diff-ref: ""
    diff-sub: false
    diff-target: ""
    diff-type: ALL
    dir: []
    encoding: event
    exclude: []
    file: []
    format: event
    generate-camel-case: false
    generate-config-only: false
    generate-path: ""
    generate-snake-case: false
    get-model: []
    get-path: []
    get-prefix: ""
    get-processor: []
    get-target: ""
    get-type: ALL
    get-values-only: false
    getset-condition: any([true])
    getset-delete: ""
    getset-get: ""
    getset-model: []
    getset-prefix: ""
    getset-replace: ""
    getset-target: ""
    getset-type: ALL
    getset-update: ""
    getset-value: ""
    gzip: false
    insecure: true
    instance-name: ""
    listen-max-concurrent-streams: "256"
    listen-prometheus-address: ""
    log: false
    log-file: /var/log/gnmic/gnmic-PE-CISCO.log
    log-tls-secret: false
    max-msg-size: 536870912
    no-prefix: true
    password: ""
    path-config-only: false
    path-descr: false
    path-path-type: xpath
    path-search: false
    path-state-only: false
    path-types: false
    path-with-non-leaves: false
    path-with-prefix: false
    port: "57400"
    print-request: false
    prompt-description-bg-color: dark_gray
    prompt-description-with-prefix: false
    prompt-description-with-types: false
    prompt-max-suggestions: "10"
    prompt-prefix-color: dark_blue
    prompt-suggest-all-flags: false
    prompt-suggest-with-origin: false
    prompt-suggestions-bg-color: dark_blue
    proto-dir: []
    proto-file: []
    proxy-from-env: false
    retry: 10s
    set-delete: []
    set-delimiter: ':::'
    set-dry-run: false
    set-prefix: ""
    set-replace: []
    set-replace-file: []
    set-replace-path: []
    set-replace-value: []
    set-request-file: []
    set-request-replace: []
    set-request-update: []
    set-request-vars: ""
    set-target: ""
    set-update: []
    set-update-file: []
    set-update-path: []
    set-update-value: []
    skip-verify: false
    subscribe-backoff: 0s
    subscribe-heartbeat-interval: 0s
    subscribe-history-end: ""
    subscribe-history-snapshot: ""
    subscribe-history-start: ""
    subscribe-lock-retry: 5s
    subscribe-mode: stream
    subscribe-model: []
    subscribe-name: []
    subscribe-output: []
    subscribe-path: []
    subscribe-prefix: ""
    subscribe-qos: "0"
    subscribe-quiet: false
    subscribe-sample-interval: 0s
    subscribe-set-target: false
    subscribe-stream-mode: target-defined
    subscribe-suppress-redundant: false
    subscribe-target: ""
    subscribe-updates-only: false
    subscribe-watch-config: false
    targets-file: ""
    timeout: 10s
    tls-ca: ""
    tls-cert: ""
    tls-key: ""
    tls-max-version: ""
    tls-min-version: ""
    tls-version: ""
    token: ""
    upgrade-use-pkg: false
    use-tunnel-server: false
    username: ""

2022/10/12 15:03:55.132707 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] address='[0.0.0.0:32767]'([]string)
2022/10/12 15:03:55.132740 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] debug='true'(bool)
2022/10/12 15:03:55.132782 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] encoding='event'(string)
2022/10/12 15:03:55.132798 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] format='event'(string)
2022/10/12 15:03:55.132831 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] insecure='true'(bool)
2022/10/12 15:03:55.132886 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] log-file='/var/log/gnmic/gnmic-PE-CISCO.log'(string)
2022/10/12 15:03:55.132915 /home/runner/work/gnmic/gnmic/app/app.go:264: [gnmic] no-prefix='true'(bool)
2022/10/12 15:03:55.133105 /home/runner/work/gnmic/gnmic/config/config.go:343: [config] cmd=listen, flagName=help, changed=false, isSetInFile=false
2022/10/12 15:03:55.133150 /home/runner/work/gnmic/gnmic/config/config.go:343: [config] cmd=listen, flagName=max-concurrent-streams, changed=false, isSetInFile=false
2022/10/12 15:03:55.133195 /home/runner/work/gnmic/gnmic/config/config.go:343: [config] cmd=listen, flagName=prometheus-address, changed=false, isSetInFile=false
2022/10/12 15:03:55.133232 /home/runner/work/gnmic/gnmic/config/actions.go:41: [config] actions: map[]
2022/10/12 15:03:55.133263 /home/runner/work/gnmic/gnmic/config/processors.go:37: [config] processors: map[]
2022/10/12 15:03:55.133328 /home/runner/work/gnmic/gnmic/config/outputs.go:52: [config] outputs: map[default-stdout:map[file-type:stdout format:event type:file]]
2022/10/12 15:03:55.133561 /home/runner/work/gnmic/gnmic/cmd/listen.go:113: [gnmic] waiting for connections on 0.0.0.0:32767
2022/10/12 15:03:55.133618 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Server #1] Server created
2022/10/12 15:03:55.133679 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Server #1 ListenSocket #2] ListenSocket created
2022/10/12 15:03:55.133698 /home/runner/work/gnmic/gnmic/outputs/file/file_output.go:194: [file_output:default-stdout] initialized file output: {"Cfg":{"FileName":"","FileType":"stdout","Format":"event","Multiline":true,"Indent":" ","Separator":"\n","OverrideTimestamps":false,"AddTarget":"","TargetTemplate":"","EventProcessors":null,"MsgTemplate":"","ConcurrencyLimit":1000,"EnableMetrics":false,"Debug":false}}
2022/10/12 15:04:14.226471 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:14.520100 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:14.816891 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:15.111292 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:16.413840 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:16.710089 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:16.783819 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBIRPE_MX""
2022/10/12 15:04:16.984660 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_US""
2022/10/12 15:04:17.004978 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:17.203874 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBIRPE_MX""
2022/10/12 15:04:17.302440 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:17.412482 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_US""
2022/10/12 15:04:17.597498 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:17.624660 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBIRPE_MX""
2022/10/12 15:04:17.837513 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_US""
2022/10/12 15:04:17.892423 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:18.037548 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBIRPE_MX""
2022/10/12 15:04:18.185459 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_EC""
2022/10/12 15:04:18.267359 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_US""**

Why is it generating this error?

2022/10/12 15:04:18.267359 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:65: [gnmic] [core] [Server #1] grpc: Server.Serve failed to create ServerTransport: connection error: desc = "transport: http2Server.HandleStreams received bogus greeting from client: "\x00\x01\x00\x01\x00\x01\x00\x00\x00\x00\x03&\n\x103BBARCE_US""

what am I doing wrong?

regards

@karimra
Copy link
Owner

karimra commented Oct 12, 2022

The listen command is intended to be used with Nokia SROS dial-out only.
gNMIc does not support any other vendor proprietary dialout service. but it does support openconfig dial-out based on grpc-tunnel.

btw, this repo will be archived soon, the project moved to https://github.com/openconfig/gnmic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants