I got the issue resolved, I was having 2 protobuf package. So I have uninstalled one and it worked fine.
Thanks, Roopan On Wednesday 27 December 2023 at 09:35:25 UTC+5:30 Kevin Chowski wrote: > Please provide some more information about what you are trying to do, and > how to reproduce your problem from scratch. Otherwise it will be hard to > provide you any help at all. For example, what code are you using? What > commands are you running? What goal are you trying to accomplish in the > first place? > > On Sunday, December 24, 2023 at 11:07:07 PM UTC-5 Roopan M wrote: > >> Hi Team, >> >> When I try to run the docker compose up, getting the below issue for one >> of the container related to proto buf extension. >> >> Please help to resolve, >> >> >> >> >> >> >> >> >> >> >> >> >> >> *service-cms-1 | panic: proto: extension number 1042 is already >> registered on message google.protobuf.FileOptionsservice-cms-1 | See >> https://protobuf.dev/reference/go/faq#namespace-conflict >> <https://protobuf.dev/reference/go/faq#namespace-conflict>service-cms-1 >> |service-cms-1 |service-cms-1 | goroutine 1 >> [running]:service-cms-1 | >> google.golang.org/protobuf/reflect/protoregistry.glob..func1({0x23c0160 >> <http://google.golang.org/protobuf/reflect/protoregistry.glob..func1(%7B0x23c0160>?, >> >> 0xc000467e20?}, {0x23c0160?, 0xc000467e20})service-cms-1 | >> >> /builder/grpc/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go:56 >> >> <http://google.golang.org/protobuf/reflect/protoregistry/registry.go:56> >> +0x1eeservice-cms-1 | >> google.golang.org/protobuf/reflect/protoregistry.(*Types).RegisterExtension(0xc00011a6f0 >> >> <http://google.golang.org/protobuf/reflect/protoregistry.(*Types).RegisterExtension(0xc00011a6f0>, >> >> {0x23f1cb0, 0x32e1920})service-cms-1 | >> >> /builder/grpc/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go:554 >> >> <http://google.golang.org/protobuf/reflect/protoregistry/registry.go:554> >> +0x2efservice-cms-1 | >> github.com/golang/protobuf/proto.RegisterExtension(.. >> <http://github.com/golang/protobuf/proto.RegisterExtension(..>.)service-cms-1 >> >> | >> /builder/grpc/vendor/github.com/golang/protobuf/proto/registry.go:279 >> <http://github.com/golang/protobuf/proto/registry.go:279>service-cms-1 >> | >> github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options.init.0() >> <http://github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options.init.0()>service-cms-1 >> >> | >> >> /builder/grpc/vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.pb.go:70 >> >> <http://github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options/annotations.pb.go:70> >> >> +0x32* >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5a668d02-cf9a-43b4-9068-1ef9364ebff0n%40googlegroups.com.
