You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
grpc: received message larger than max (4564294 vs. 4194304) #1539
edit this file /buildkit/client/client.go in line 33 with this , it is ok .
// New returns a new buildkit client. Address can be empty for the system-default address.
func New(ctx context.Context, address string, opts ...ClientOpt) (*Client, error) {
gopts := []grpc.DialOption{
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(defaults.DefaultMaxRecvMsgSize)),
grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(defaults.DefaultMaxSendMsgSize)),
}
...
Can you test with master buildkit/buildctl with --debug set in buildctl. You should get a better trace. I wonder if maven is producing so much logs that it overflows the object. And maybe the logs are not newline-separated causing them to pile up in a single object. In first case, we might need to drop logs as pulling 5MB of logs in this case unnecessarily slows down build. For the second one we should have a hard limit on log size.
If that is the case it looks partly as maven error as well. Buildkit is not enabling tty when calling maven so it shouldn't repeatedly split out the ansi codes.
Setting it as a parameter seems wrong solution. If it is too small we should set a bigger value. But bigger values are indicator that something else is wrong.
Setting it as a parameter seems wrong solution. If it is too small we should set a bigger value. But bigger values are indicator that something else is wrong.
Can you test with master buildkit/buildctl with --debug set in buildctl. You should get a better trace. I wonder if maven is producing so much logs that it overflows the object. And maybe the logs are not newline-separated causing them to pile up in a single object. In first case, we might need to drop logs as pulling 5MB of logs in this case unnecessarily slows down build. For the second one we should have a hard limit on log size.
If that is the case it looks partly as maven error as well. Buildkit is not enabling tty when calling maven so it shouldn't repeatedly split out the ansi codes.
hi,i try build in my local pc, build without error ,Please help me ,what can i do ?
Activity
tonistiigi commentedon Jun 23, 2020
This output is not from buildkit afaics.
We can increase grpc message size but we would need to understand what request is hitting the limit and in what condition.
nlg521 commentedon Jun 24, 2020
this is a maven projecct ,the compile output is
nlg521 commentedon Jun 24, 2020
edit this file
/buildkit/client/client.goin line 33 with this , it is ok .Can it be set as a parameter ?
tonistiigi commentedon Jun 24, 2020
Can you test with master buildkit/buildctl with
--debugset in buildctl. You should get a better trace. I wonder if maven is producing so much logs that it overflows the object. And maybe the logs are not newline-separated causing them to pile up in a single object. In first case, we might need to drop logs as pulling 5MB of logs in this case unnecessarily slows down build. For the second one we should have a hard limit on log size.If that is the case it looks partly as maven error as well. Buildkit is not enabling tty when calling maven so it shouldn't repeatedly split out the ansi codes.
nlg521 commentedon Jun 24, 2020
but ,Encountered another problem, It seems that the connection timed out ,how can i set ?
tonistiigi commentedon Jun 24, 2020
Setting it as a parameter seems wrong solution. If it is too small we should set a bigger value. But bigger values are indicator that something else is wrong.
nlg521 commentedon Jun 24, 2020
yes it set with --debug ,but can't see any better trace.
$ buildctl --debug --addr kube-pod://buildkitd-76d67f4686-cvjqc build --opt override-copy-image=j-hub.jd.com/turbo/dockerfile-copy:v0.1.
9 --frontend dockerfile.v0 --local context=. --local dockerfile=.
DEBU[0000] commandconn: starting kubectl with [--context= --namespace= exec --container= -i buildkitd-76d67f4686-cvjqc -- buildctl dial-std
io]
[+] Building 0.0s (0/0)
DEBU[0000] unimplemented call: SetReadDeadline(0001-01-01 00:00:00 +0000 UTC)
[+] Building 1.3s (11/37)
tonistiigi commentedon Jun 24, 2020
Using master
buildctlandmoby/buildkit:masterimage should show you a better stacktrace when the error happens.nlg521 commentedon Jun 24, 2020
i kow ,i kow ,this is not a goog idea .
nlg521 commentedon Jun 24, 2020
using this
moby/buildkit:masterin k8s , stacktrace can‘t seeapiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: buildkitd
name: buildkitd
spec:
replicas: 1
selector:
matchLabels:
app: buildkitd
template:
metadata:
labels:
app: buildkitd
spec:
containers:
- name: buildkitd
image: moby/buildkit:master
nlg521 commentedon Jun 24, 2020
@tonistiigi
hi,i try build in my local pc, build without error ,Please help me ,what can i do ?