Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote plugin fail #3488

Closed
mingzaily opened this issue Nov 22, 2024 · 7 comments
Closed

remote plugin fail #3488

mingzaily opened this issue Nov 22, 2024 · 7 comments

Comments

@mingzaily
Copy link

GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)

No response

What's up?

Everything was normal until today, but an error was reported today

Failure: unimplemented: unary response has zero messages for https://buf.build/buf.alpha.registry.v1alpha1.CodeGenerationService/GenerateCode
This version of the buf CLI may require APIs that have not yet been deployed to https://buf.build
To resolve this failure, you can either:
- Try using an older version of the buf CLI
- Contact the site admin for https://buf.build to upgrade the instance

Our yaml file

version: v1
managed:
  enabled: true

plugins:
  - plugin: buf.build/protocolbuffers/go:v1.33.0
    out: apis-go
    opt: paths=source_relative
  - plugin: buf.build/grpc/go:v1.4.0 
    out: apis-go
    opt: paths=source_relative,require_unimplemented_servers=false
  - plugin: buf.build/bufbuild/validate-go:v1.0.4
    out: apis-go
    opt: paths=source_relative
  - plugin: go-http # kartos local plugin
    out: apis-go
    opt:
      - paths=source_relative
@ddeath
Copy link

ddeath commented Nov 22, 2024

We are getting timeouts as well when trying to generate code.

DEBUG	buf.alpha.registry.v1alpha1.CodeGenerationService/GenerateCode	{"duration": "1m59.96543675s", "status": "Error", "net.peer.name": "buf.build", "rpc.system": "connect_rpc", "rpc.service": "buf.alpha.registry.v1alpha1.CodeGenerationService", "rpc.method": "GenerateCode", "rpc.connect_rpc.error_code": "deadline_exceeded", "message.type": "SENT", "message.id": 1, "message.uncompressed_size": 296111, "message.type": "RECEIVED", "message.id": 1, "message.uncompressed_size": 0}
DEBUG	command	{"duration": "2m0.005140417s", "status": "Unset"}
Failure: context deadline exceeded

Why is code generation depending on CodeGenerationService? I would expect that it happens locally on machine so if I have dependencies cached locally it will work even without connection 🤔

@mingzaily
Copy link
Author

mingzaily commented Nov 22, 2024

We are getting timeouts as well when trying to generate code.我们在尝试生成代码时也遇到了超时问题。

DEBUG	buf.alpha.registry.v1alpha1.CodeGenerationService/GenerateCode	{"duration": "1m59.96543675s", "status": "Error", "net.peer.name": "buf.build", "rpc.system": "connect_rpc", "rpc.service": "buf.alpha.registry.v1alpha1.CodeGenerationService", "rpc.method": "GenerateCode", "rpc.connect_rpc.error_code": "deadline_exceeded", "message.type": "SENT", "message.id": 1, "message.uncompressed_size": 296111, "message.type": "RECEIVED", "message.id": 1, "message.uncompressed_size": 0}
DEBUG	command	{"duration": "2m0.005140417s", "status": "Unset"}
Failure: context deadline exceeded

Why is code generation depending on CodeGenerationService? I would expect that it happens locally on machine so if I have dependencies cached locally it will work even without connection 🤔为什么代码生成依赖于 CodeGenerationService?我本以为它会在本地机器上执行,如果我已经本地缓存了依赖项,即使没有连接也能工作 🤔

Yes, same question, even with the agent
In debug mode

DEBUG   buf.alpha.registry.v1alpha1.CodeGenerationService/GenerateCode  {"duration": "7.778765709s", "status": "Unset", "net.peer.name": "buf.build", "rpc.system": "connect_rpc", "rpc.service": "buf.alpha.registry.v1alpha1.CodeGenerationService", "rpc.method": "GenerateCode", "message.type": "SENT", "message.id": 1, "message.uncompressed_size": 2566174, "message.type": "RECEIVED", "message.id": 1, "message.uncompressed_size": 26110715}
DEBUG   command {"duration": "8.135314125s", "status": "Unset"}

@ddeath
Copy link

ddeath commented Nov 22, 2024

Buf people confirmed on slack that they see the issue.

we are aware of the issue and working on determining the cause at the moment, will update the status page.

@Juneezee
Copy link
Contributor

We are experiencing the same issue too.

buf generate --debug
DEBUG	buffetch termination found	{"curDirPath": "home/jun/Desktop/tux", "path": "home/jun/Desktop/tux"}
DEBUG	buffetch termination found	{"curDirPath": ".", "path": "."}
DEBUG	targeting workspace based on v2 buf.yaml	{"subDirPath": "."}
DEBUG	github.com/bufbuild/buf/private/buf/bufworkspace.(*workspaceProvider).getWorkspaceForBucketBufYAMLV2	{"duration": "22.419µs"}
DEBUG	github.com/bufbuild/buf/private/buf/bufctl.(*controller).getWorkspaceForSourceRef	{"duration": "385.385µs"}
DEBUG	module data store dir read write bucket	{"moduleFullName": "buf.build/googleapis/googleapis", "commitID": "e7f8d366f5264595bcc4cd4139af9973", "dirPath": "b5/buf.build/googleapis/googleapis/e7f8d366f5264595bcc4cd4139af9973"}
DEBUG	module data store get module.yaml	{"moduleFullName": "buf.build/googleapis/googleapis", "commitID": "e7f8d366f5264595bcc4cd4139af9973", "found": true}
DEBUG	github.com/bufbuild/buf/private/bufpkg/bufimage.BuildImage	{"duration": "38.747038ms"}
Failure: the server hosted at that remote is unavailable

@mingzaily
Copy link
Author

Buf people confirmed on slack that they see the issue.

we are aware of the issue and working on determining the cause at the moment, will update the status page.

Can you provide a slack link? I want to follow. Thanks!

@ddeath
Copy link

ddeath commented Nov 22, 2024

Can you provide a slack link? I want to follow. Thanks!

https://bufbuild.slack.com/archives/CRZ680FUH/p1732249389249809

@unmultimedio
Copy link
Member

Thank you all for the report. We have implemented a fix, the system looks healthy now, we keep monitoring the code generation service.

Here is a link to the incident in our status page: https://www.bufstatus.com/cm3s95tid00cdej4ouynppm6s

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

No branches or pull requests

4 participants