-
Hello. But we get problems when we get try to communicate with our HLF network in the same way as it happened in Can you give few tips about what we need to do to get communication between FSC-node and HLF-node ? Here I provide error that we get now when we try to run FSC-node: click here to see "error.log"go run -v main.go node start
2021-09-30 11:25:31.405 EEST [view-sdk] Install -> INFO 001 View platform enabled, installing...
2021-09-30 11:25:31.406 EEST [view-sdk.eregistry] RegisterService -> DEBU 002 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/core/config/provider]
2021-09-30 11:25:31.406 EEST [view-sdk.eregistry] RegisterService -> DEBU 003 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/services/crypto/provider]
2021-09-30 11:25:31.406 EEST [view-sdk.kvs] New -> DEBU 004 opening kvs at [kvs/_default]
badger 2021/09/30 11:25:31 INFO: All 0 tables opened in 0s
badger 2021/09/30 11:25:31 INFO: Discard stats nextEmptySlot: 0
badger 2021/09/30 11:25:31 INFO: Set nextTxnTs to 1
2021-09-30 11:25:31.449 EEST [view-sdk.eregistry] RegisterService -> DEBU 005 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/services/kvs/KVS]
2021-09-30 11:25:31.449 EEST [view-sdk.eregistry] RegisterService -> DEBU 006 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/core/sig/deserializer]
2021-09-30 11:25:31.449 EEST [view-sdk.eregistry] RegisterService -> DEBU 007 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/core/sig/service]
2021-09-30 11:25:31.449 EEST [view-sdk.eregistry] RegisterService -> DEBU 008 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/core/endpoint/service]
2021-09-30 11:25:31.449 EEST [view-sdk.endpoint] LoadResolvers -> INFO 009 loading resolvers
2021-09-30 11:25:31.450 EEST [view-sdk.endpoint] LoadResolvers -> INFO 00a loaded resolvers successfully, number of entries found 1
2021-09-30 11:25:31.450 EEST [view-sdk.endpoint] LoadResolvers -> INFO 00b resolver [alice,fsc.example.com][map[Listen:127.0.0.1:23004 P2P:127.0.0.1:23005 View:127.0.0.1:23004]] 2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=
2021-09-30 11:25:31.450 EEST [view-sdk.endpoint] AddResolver -> DEBU 00c adding resolver [alice,fsc.example.com,map[Listen:127.0.0.1:23004 P2P:127.0.0.1:23005 View:127.0.0.1:23004],[],2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=]
2021-09-30 11:25:31.461 EEST [view-sdk.sig] RegisterSigner -> DEBU 00d add signer for [id:2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=]
2021-09-30 11:25:31.461 EEST [view-sdk.sig] RegisterVerifier -> DEBU 00e add verifier for [2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=]
2021-09-30 11:25:31.461 EEST [view-sdk.id] loadAdminIdentities -> INFO 00f loaded admin cert at [/Users/user/fabric-smart-client/cmd/node/fsc0.example.com/msp/signcerts/cert.pem]: [%!s(<nil>)]
2021-09-30 11:25:31.461 EEST [view-sdk.id] loadAdminIdentities -> INFO 010 loaded [1] admin identities
2021-09-30 11:25:31.461 EEST [view-sdk.id] loadClientIdentities -> INFO 011 loaded [0] client identities
2021-09-30 11:25:31.461 EEST [view-sdk.eregistry] RegisterService -> DEBU 012 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/core/id/provider]
2021-09-30 11:25:31.461 EEST [view-sdk.eregistry] RegisterService -> DEBU 013 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/services/server/view/server]
2021-09-30 11:25:31.461 EEST [view-sdk.eregistry] RegisterService -> DEBU 014 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/view/core/manager/manager]
2021-09-30 11:25:31.461 EEST [view-sdk.config] GetBool -> DEBU 015 Getting bool fabric.enabled:true
2021-09-30 11:25:31.461 EEST [fabric-sdk] Install -> INFO 016 Fabric platform enabled, installing...
2021-09-30 11:25:31.461 EEST [view-sdk.eregistry] RegisterService -> DEBU 017 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/fabric/services/crypto/provider]
2021-09-30 11:25:31.461 EEST [fabric-sdk] Install -> INFO 018 Set Fabric Network Service Provider
2021-09-30 11:25:31.461 EEST [view-sdk.eregistry] RegisterService -> DEBU 019 Register Service [github.com/hyperledger-labs/fabric-smart-client/platform/fabric/core/fnsProvider]
2021-09-30 11:25:31.461 EEST [fabric-sdk.endpoint] LoadResolvers -> INFO 01a loading resolvers
2021-09-30 11:25:31.461 EEST [fabric-sdk.endpoint] LoadResolvers -> INFO 01b loaded resolvers successfully, number of entries found 0
2021-09-30 11:25:31.474 EEST [view-sdk.sig] RegisterSigner -> DEBU 01c add signer for [id:eTXUFUO6Yc46d8y7Qoi4Jgin2u67hu+iD+wfmqLLt5k=]
2021-09-30 11:25:31.474 EEST [view-sdk.sig] RegisterVerifier -> DEBU 01d add verifier for [eTXUFUO6Yc46d8y7Qoi4Jgin2u67hu+iD+wfmqLLt5k=]
2021-09-30 11:25:31.474 EEST [view-sdk.endpoint] Endpoint -> DEBU 01e endpoint for [2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=] to [2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=] with ports [map[Listen:127.0.0.1:23004 P2P:127.0.0.1:23005 View:127.0.0.1:23004]]
2021-09-30 11:25:31.474 EEST [view-sdk.endpoint] Bind -> DEBU 01f bind [eTXUFUO6Yc46d8y7Qoi4Jgin2u67hu+iD+wfmqLLt5k=] to [2j9Eqv9ObLizkSx4lLcggA7z8JxAewJc+yCC5tI9ZW4=]
2021-09-30 11:25:31.474 EEST [view-sdk.kvs] Put -> DEBU 020 put state [_default,platform.fsc.endpoint.bindingeTXUFUO6Yc46d8y7Qoi4Jgin2u67hu+iD+wfmqLLt5k=0]
2021-09-30 11:25:31.474 EEST [fabric-sdk.msp] loadExtraResolvers -> DEBU 021 Found extra identities 0
2021/09/30 11:25:31 Start triggered panic: runtime error: invalid memory address or nil pointer dereference
goroutine 1 [running]:
runtime/debug.Stack(0xc0005db860, 0x4dc7980, 0x5a83af0)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9f
github.com/hyperledger-labs/fabric-smart-client/pkg/node.(*node).Start.func1(0xc0005dbc00, 0xc0006168a0)
/Users/user/fabric-smart-client/pkg/node/node.go:76 +0x5d
panic(0x4dc7980, 0x5a83af0)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/hyperledger-labs/fabric-smart-client/platform/fabric.(*NetworkService).ProcessorManager(...)
/Users/user/fabric-smart-client/platform/fabric/fns.go:76
github.com/hyperledger-labs/fabric-smart-client/platform/fabric/sdk.(*p).Install(0xc00036aae0, 0x0, 0x0)
/Users/user/fabric-smart-client/platform/fabric/sdk/sdk.go:66 +0x49f
github.com/hyperledger-labs/fabric-smart-client/pkg/node.(*node).Start(0xc0006168a0, 0x0, 0x0)
/Users/user/fabric-smart-client/pkg/node/node.go:86 +0x111
github.com/hyperledger-labs/fabric-smart-client/node/node.serve(0x4f7893b, 0x4)
/Users/user/fabric-smart-client/node/node/start.go:66 +0x47
github.com/hyperledger-labs/fabric-smart-client/node/node.startCmd.func1(0xc0003de000, 0x5aea418, 0x0, 0x0, 0x0, 0x0)
/Users/user/fabric-smart-client/node/node/start.go:59 +0x85
github.com/spf13/cobra.(*Command).execute(0xc0003de000, 0x5aea418, 0x0, 0x0, 0xc0003de000, 0x5aea418)
/Users/user/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc0002bd340, 0x5100300, 0xc0003719b0, 0xc0004b0a70)
/Users/user/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/Users/user/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/hyperledger-labs/fabric-smart-client/node.(*node).Execute(0xc0003719b0, 0xc0004b0a70)
/Users/user/fabric-smart-client/node/node.go:80 +0x69
main.main()
/Users/user/fabric-smart-client/cmd/node/main.go:32 +0x234
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4b9e14d]
goroutine 1 [running]:
github.com/hyperledger-labs/fabric-smart-client/pkg/node.(*node).Stop(...)
/Users/user/fabric-smart-client/pkg/node/node.go:108
github.com/hyperledger-labs/fabric-smart-client/pkg/node.(*node).Start.func1(0xc0005dbc00, 0xc0006168a0)
/Users/user/fabric-smart-client/pkg/node/node.go:78 +0x16d
panic(0x4dc7980, 0x5a83af0)
/usr/local/go/src/runtime/panic.go:965 +0x1b9
github.com/hyperledger-labs/fabric-smart-client/platform/fabric.(*NetworkService).ProcessorManager(...)
/Users/user/fabric-smart-client/platform/fabric/fns.go:76
github.com/hyperledger-labs/fabric-smart-client/platform/fabric/sdk.(*p).Install(0xc00036aae0, 0x0, 0x0)
/Users/user/fabric-smart-client/platform/fabric/sdk/sdk.go:66 +0x49f
github.com/hyperledger-labs/fabric-smart-client/pkg/node.(*node).Start(0xc0006168a0, 0x521cb80, 0xc000550558)
/Users/user/fabric-smart-client/pkg/node/node.go:86 +0x111
github.com/hyperledger-labs/fabric-smart-client/node/node.serve(0x4f7893b, 0x4)
/Users/user/fabric-smart-client/node/node/start.go:66 +0x47
github.com/hyperledger-labs/fabric-smart-client/node/node.startCmd.func1(0xc0003de000, 0x5aea418, 0x0, 0x0, 0x0, 0x0)
/Users/user/fabric-smart-client/node/node/start.go:59 +0x85
github.com/spf13/cobra.(*Command).execute(0xc0003de000, 0x5aea418, 0x0, 0x0, 0xc0003de000, 0x5aea418)
/Users/user/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x472
github.com/spf13/cobra.(*Command).ExecuteC(0xc0002bd340, 0x5100300, 0xc0003719b0, 0xc0004b0a70)
/Users/user/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/Users/user/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/hyperledger-labs/fabric-smart-client/node.(*node).Execute(0xc0003719b0, 0xc0004b0a70)
/Users/user/fabric-smart-client/node/node.go:80 +0x69
main.main()
/Users/user/fabric-smart-client/cmd/node/main.go:32 +0x234
exit status 2
And here what we try do : Our |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
Hi @andrii482, Please, could you post the entire stack that you get? I need to identify the function that triggers the panic. Thanks for your feedback :) |
Beta Was this translation helpful? Give feedback.
-
I've just noticed that you are using an old commit of FSC. Please, can you try again using the latest commit |
Beta Was this translation helpful? Give feedback.
-
Aha, found the problem. It looks like there is no Fabric network defined and the issue is related to your configuration.
but it should be:
Everything shifted by two spaces. Now, the smart client should definitely fail more gracefully if no Fabric network configuration is found. Please, let me know if this interpretation is correct and sorry for the late reply :( |
Beta Was this translation helpful? Give feedback.
-
Actually, I'm not sure. Is there a way you can send me the entire package with the keys, configuration files, and so on? I can then test it locally. |
Beta Was this translation helpful? Give feedback.
-
how do you execute the FSC node? Do you use the |
Beta Was this translation helpful? Give feedback.
-
@andrii482 , please, use this commit |
Beta Was this translation helpful? Give feedback.
@andrii482 , please, use this commit
0a9560bb92a5575783b80183c9385817edf7f366
. It should give us back a better error message. Thanks again for your support to improve FSC :)