Error installing Airbyte Helm Chart version 1.2.0 on Amazon Linux

Summary

Encountered a runtime error while trying to install Airbyte Helm Chart version 1.2.0 on Amazon Linux, with a panic related to slice bounds out of range.


Question

hey guys! I’m having a problem when I try to update to 1.2.0 version (Amazon Linux)

  INFO    Using Kubernetes provider:
            Provider: kind
            Kubeconfig: /home/ec2-user/.airbyte/abctl/abctl.kubeconfig
            Context: kind-airbyte-abctl
 SUCCESS  Found Docker installation: version 25.0.6                                                                         
 SUCCESS  Existing cluster 'airbyte-abctl' found                                                                            
 SUCCESS  Cluster 'airbyte-abctl' validation complete                                                                       
  INFO    Pulling image airbyte/bootloader:1.2.0                                                                            
  INFO    Pulling image airbyte/connector-builder-server:1.2.0                                                              
  INFO    Pulling image airbyte/connector-sidecar:1.2.0                                                                     
  INFO    Pulling image airbyte/container-orchestrator:1.2.0                                                                
  INFO    Pulling image airbyte/cron:1.2.0                                                                                  
  INFO    Pulling image airbyte/mc:latest                                                                                   
  INFO    Pulling image airbyte/server:1.2.0                                                                                
  INFO    Pulling image airbyte/webapp:1.2.0                                                                                
  INFO    Pulling image airbyte/worker:1.2.0                                                                                
  INFO    Pulling image airbyte/workload-api-server:1.2.0                                                                   
  INFO    Pulling image airbyte/workload-init-container:1.2.0                                                               
  INFO    Pulling image airbyte/workload-launcher:1.2.0                                                                     
  INFO    Pulling image bitnami/kubectl:1.28.9                                                                              
  INFO    Pulling image busybox:1.35                                                                                        
  INFO    Pulling image busybox:latest                                                                                      
  INFO    Pulling image curlimages/curl:8.1.1                                                                               
  INFO    Pulling image minio/minio:RELEASE.2023-11-20T22-40-07Z                                                            
  INFO    Pulling image temporalio/auto-setup:1.23.0                                                                        
  INFO    Namespace 'airbyte-abctl' already exists                                                                          
  INFO    Persistent volume 'airbyte-minio-pv' already exists                                                               
  INFO    Persistent volume 'airbyte-volume-db' already exists                                                              
  INFO    Persistent volume claim 'airbyte-minio-pv-claim-airbyte-minio-0' already exists                                   
  INFO    Persistent volume claim 'airbyte-volume-db-airbyte-db-0' already exists                                           
 SUCCESS  Secret from '/home/ec2-user/airbyte/secrets.yaml' created or updated                                              
  INFO    Starting Helm Chart installation of 'airbyte/airbyte' (version: 1.2.0)                                            
  ERROR   Failed to install airbyte/airbyte Helm Chart                                                                      
▀  Installing 'airbyte/airbyte' (version: 1.2.0) Helm Chart (this may take several minutes) (7s)panic: runtime error: slice bounds out of range [:50] with length 0 [recovered]
        panic: runtime error: slice bounds out of range [:50] with length 0 [recovered]
        panic: runtime error: slice bounds out of range [:50] with length 0 [recovered]
        panic: runtime error: slice bounds out of range [:50] with length 0

goroutine 1 [running]:
<http://go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()|go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()>
        /home/runner/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.30.0/trace/span.go:398 +0x25
<http://go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End|go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End>(0xc0000e81a0, {0x0, 0x0, 0xc0000061c0?})
        /home/runner/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.30.0/trace/span.go:436 +0xa62
panic({0x2046720?, 0xc001820150?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/panic.go:785 +0x132
<http://go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()|go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()>
        /home/runner/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.30.0/trace/span.go:398 +0x25
<http://go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End|go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End>(0xc0000e9380, {0x0, 0x0, 0xc0000061c0?})
        /home/runner/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.30.0/trace/span.go:436 +0xa62
panic({0x2046720?, 0xc001820150?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/panic.go:785 +0x132
<http://go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()|go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.deferwrap1()>
        /home/runner/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.30.0/trace/span.go:398 +0x25
<http://go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End|go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End>(0xc000cf31e0, {0x0, 0x0, 0xc000730d50?})
        /home/runner/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.30.0/trace/span.go:436 +0xa62
panic({0x2046720?, 0xc001820150?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/panic.go:785 +0x132
<http://github.com/airbytehq/abctl/internal/cmd/local/local.(*Command).diagnoseAirbyteChartFailure(0xc000238160|github.com/airbytehq/abctl/internal/cmd/local/local.(*Command).diagnoseAirbyteChartFailure(0xc000238160>, {0x24f2138, 0xc001096690}, {0x24d2c20, 0xc0022f2340})
        /home/runner/work/abctl/abctl/internal/cmd/local/local/install.go:335 +0x625
<http://github.com/airbytehq/abctl/internal/cmd/local/local.(*Command).Install(0xc000238160|github.com/airbytehq/abctl/internal/cmd/local/local.(*Command).Install(0xc000238160>, {0x24f2138?, 0xc0006567b0?}, 0xc000692d00)
        /home/runner/work/abctl/abctl/internal/cmd/local/local/install.go:256 +0x19ef
<http://github.com/airbytehq/abctl/internal/cmd/local.(*InstallCmd).Run.func1()|github.com/airbytehq/abctl/internal/cmd/local.(*InstallCmd).Run.func1()>
        /home/runner/work/abctl/abctl/internal/cmd/local/local_install.go:170 +0x87f
<http://github.com/airbytehq/abctl/internal/telemetry.(*SegmentClient).Wrap|github.com/airbytehq/abctl/internal/telemetry.(*SegmentClient).Wrap>(0xc00045e140, {0x24f2138, 0xc0006567b0}, {0x219e77e, 0x7}, 0xc0006fd480)
        /home/runner/work/abctl/abctl/internal/telemetry/segment.go:97 +0xbc
<http://github.com/airbytehq/abctl/internal/cmd/local.(*InstallCmd).Run(0xc0002fa660|github.com/airbytehq/abctl/internal/cmd/local.(*InstallCmd).Run(0xc0002fa660>, {0x24f2138?, 0xc0006563c0?}, {{0x219b1ca, 0x4}, {0x21a796e, 0xd}, {0x21b06d5, 0x12}, {0xc00005ecf0, ...}}, ...)
        /home/runner/work/abctl/abctl/internal/cmd/local/local_install.go:110 +0x412
reflect.Value.call({0x1eac0a0?, 0xc0002fa660?, 0x2197900?}, {0x219b1d2, 0x4}, {0xc000129020, 0x3, 0x4?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/reflect/value.go:581 +0xca6
reflect.Value.Call({0x1eac0a0?, 0xc0002fa660?, 0xc000539a78?}, {0xc000129020?, 0x2197900?, 0xc0005399b8?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/reflect/value.go:365 +0xb9
<http://github.com/alecthomas/kong.callFunction({0x1eac0a0|github.com/alecthomas/kong.callFunction({0x1eac0a0>?, 0xc0002fa660?, 0xc000539bd0?}, 0xc000656480)
        /home/runner/go/pkg/mod/github.com/alecthomas/kong@v1.2.1/callbacks.go:98 +0x45a
<http://github.com/alecthomas/kong.(*Context).RunNode(0xc000126180|github.com/alecthomas/kong.(*Context).RunNode(0xc000126180>, 0xc0005442d0, {0x0, 0x0, 0x2511690?})
        /home/runner/go/pkg/mod/github.com/alecthomas/kong@v1.2.1/context.go:798 +0x7ee
<http://github.com/alecthomas/kong.(*Context).Run(0xc000641860|github.com/alecthomas/kong.(*Context).Run(0xc000641860>?, {0x0?, 0xc0004a13c8?, 0x13?})
        /home/runner/go/pkg/mod/github.com/alecthomas/kong@v1.2.1/context.go:823 +0x132
main.run.func2({0x24f22f8, 0xc000149400})
        /home/runner/work/abctl/abctl/main.go:69 +0x46a
main.run()
        /home/runner/work/abctl/abctl/main.go:72 +0x231
main.main()
        /home/runner/work/abctl/abctl/main.go:22 +0x13```

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1731431624102329) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["error", "installing", "airbyte", "helm-chart", "1.2.0", "amazon-linux", "runtime-error", "slice-bounds"]
</sub>

I’ll fix that. We’re not being safe about this slice: https://github.com/airbytehq/abctl/blob/main/internal/cmd/local/local/install.go#L335

Release v0.22.0 is out: https://github.com/airbytehq/abctl/releases/tag/v0.22.0

perfect! it worked ok, thanks a lot!!!

Thanks for reporting it!