Debugging proto file already registered issue (health.proto)

107 views
Skip to first unread message

Ashish Tripathi

unread,
Aug 20, 2024, 7:18:04 PM8/20/24
to Protocol Buffers
Hi,
   I am currently encountering an issue where the build reports a failure with the message: "File already exists in database: health.proto." This error seems to suggest that the health.proto file is being registered multiple times, possibly by different libraries. (error snippet below)
File already exists in database: health.proto CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
To address this, I am wondering if there is any gRPC environment variable or other mechanism that can be utilized to determine which libraries are registering this proto file. Identifying the source of the conflict would greatly assist in resolving the issue.

For e,g, something like this (pseudocode)
panic: proto: file "error.proto" is already registered
previously from: "goa.design/goa/v3/grpc/pb"
currently from: "github.com/googleapis/gax-go/v2/apierror/internal/proto"

Any guidance or recommendations you could provide would be greatly appreciated.

Thank you,
Ashish

Daz Wilkin

unread,
Aug 21, 2024, 2:58:25 PM8/21/24
to Protocol Buffers
I think this is a Tensorflow problem and you may be better placed asking in those forums.

To my knowledge, the regular protocol buffer tools don't use a a database. 

Reply all
Reply to author
Forward
0 new messages