sourcerer-io / sourcerer-app

🦄 Sourcerer app makes a visual profile from your GitHub and git repositories.
https://sourcerer.io/start
MIT License
6.73k stars 281 forks source link

Error while hashing: Protocol message end-group tag did not match expected tag. #502

Open reuben opened 5 years ago

reuben commented 5 years ago

Ran into this while trying to hash https://github.com/mozilla/DeepSpeech/

I added some debugging code and the problem seems to be that libraries_meta.pb points to a cpp.tensor-flow.pb classifier which does not exist in the server:

[i] Downloading cpp.tensor-flow classifier.
[i] Downloading classifier from https://storage.googleapis.com/sourcerer-app/library-models/v2/cpp/cpp.tensor-flow.pb.
[i] Finished downloading cpp.tensor-flow classifier.
[i] Loading cpp.tensor-flow evaluator.
[e] Hashing error: Protocol message end-group tag did not match expected tag.

Trying to download that URL directly shows a XML error about the file not existing. I'm assuming the code then tries to parse a protobuf out of the XML error message and causes the error.

reuben commented 5 years ago

After manually patching the code to replace cpp.tensor-flow with cpp.tensorflow I ran into the same problem but this time with boost.Program_Options: https://storage.googleapis.com/sourcerer-app/library-models/v2/cpp/cpp.boost-program_options.pb

anatolystansler commented 5 years ago

Hi @reuben. Based on your other issues I can guess that during app building you had an issue with protobuf generator. Protocol message end-group tag did not match expected tag. error usually means that something is wrong with protobuf models. Try to rebuild them again.

reuben commented 5 years ago

How do I rebuild the protobufs? I ran into this problem with a release version of the app, installed via curl -s https://sourcerer.io/app/install | bash, the only reason why I modified the code was to try and figure out what was going on.

reuben commented 5 years ago

And yes, something is wrong with the protobuf, it's trying to download a protobuf from https://storage.googleapis.com/sourcerer-app/library-models/v2/cpp/cpp.tensor-flow.pb and getting a 404 error. Instead of giving up, it tries to parse the contents of the 404 error page.

sergey48k commented 5 years ago

@yaronskaya did we lose a classifier from production? maybe it's a versioning issue?

yaronskaya commented 5 years ago

@reuben Could you please rebuild app again? Issue with cpp.tensorflow should be fixed now.

reuben commented 5 years ago

@yaronskaya successfully got past the cpp.tensorflow problem, now getting a similar error with cpp.boost-program_options:

[i] Downloading cpp.boost-program_options classifier.
[i] Finished downloading cpp.boost-program_options classifier.
[i] Loading cpp.boost-program_options evaluator.
[e] Hashing error: Protocol message end-group tag did not match expected tag.
yaronskaya commented 5 years ago

@reuben it should work now. Hopefully you won't get this error again.