Hi community, I am facing an error in cluster run...
# flyte-support
b
Hi community, I am facing an error in cluster runs, everything runs successfully, but I cannot see or query the inputs / outputs of certain nodes. When I dig a bit deeper, I find this error:
Copy code
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.RESOURCE_EXHAUSTED
        details = "Received message larger than max (6015882 vs. 4194304)"
        debug_error_string = "UNKNOWN:Error received from peer ipv4:192.168.1.253:30080 {created_time:"2024-05-13T16:07:32.782822331+02:00", grpc_status:8, grpc_message:"Received message larger than max (6015882 vs. 4194304)"}"
Is there a way to set this limit higher and what can cause this issue? Thank you for any insight!
a
Hey @bored-needle-72209 You can try setting maxMessageSizeBytes Let us know if it helps
b
Thanks, where can I set it?
a
it would be in your Helm values file. What chart are you using, flyte-binary or flyte-core?
b
We are using flyte-binary
a
ok so that would be on
Copy code
configuration:
  inline:
    server:
      maxMessageSizeBytes: <insert-value>
b
Sorry that I didn't reply, thank your for your help, I could solve it so that I can get the data now from the dashboard, but I still can't reach the outputs by FlyteRemote locally on my machine. I tried to put this configurtation into ~/.flyte/config.yaml, but didn't work. Where should I set this configuration?
So I investigated it further and based on my knowledge the only possible way to change this parameter locally, is to put a new value directly into flytekit and open the GRPC channel after:
Copy code
options = (("grpc.max_metadata_size", 32000), ("grpc.max_receive_message_length", 10000000))
https://github.com/flyteorg/flytekit/blob/master/flytekit/clients/raw.py#L51 Can you suggest another way to change this parameter, or is this really the only option at the moment?
a
hey Peter, so to set this option on you local config file it should be like this:
Copy code
admin:
  endpoint:...
  ...
server:
  grpc:
    maxMessageSizeBytes: <insert-value>
b
hmm thanks, but still not working, are you referring to the config at ~/.flyte/config.yaml ? I have something like this, but the message size bump has no effect. admin: endpoint: <> insecure: true insecureSkipVerify: true storage: connection: endpoint: <> access-key: <> secret-key: <> server: grpc: maxMessageSizeBytes: 10000000
a
I guess that's because this is a server side setting, Do you get the same error when trying to fetch outputs with FlyteRemote?
b
Yes, same error with FlyteRemote