Skip to content

docs: document Gemini CLI first-run workaround for Helm/Kubernetes and ECS installs #336

@Joseph19820124

Description

@Joseph19820124

Summary

openAB currently does not patch the Gemini CLI first-run initialization issue in the image/chart, which is the right direction since the root cause is upstream in gemini-cli.

However, new users who deploy Gemini-backed openAB can still hit this on first install and may not know how to work around it during deployment.

It would be helpful to have a dedicated issue/docs entry that explains the symptom, root cause, and supported installation-time workarounds.

Upstream issue

User-visible symptom

On first startup in ephemeral/containerized environments, Gemini CLI can fail because ~/.gemini and/or ~/.gemini/projects.json are not initialized yet.

Observed failure modes include:

  • ENOENT while saving the registry
  • SyntaxError: Unexpected end of JSON input if the file exists but is empty

What should be documented

A troubleshooting/install-time workaround section for Gemini deployments, covering:

1. ECS / Fargate workaround

Document the container command override pattern, e.g. seeding:

mkdir -p /home/node/.gemini && echo '{}' > /home/node/.gemini/projects.json && exec openab /etc/openab/config.toml

before starting openab.

2. Helm / Kubernetes workaround

Document the init-container + shared volume pattern for seeding /home/node/.gemini.

However, there is one current gap:

The chart does not appear to expose passthrough fields like:

  • extraInitContainers
  • extraVolumes
  • extraVolumeMounts

in charts/openab/templates/deployment.yaml yet.

So either:

  • the docs should wait until those chart fields exist, or
  • a small chart enhancement should land first, then docs can point users to the supported values-based workaround.

Suggested outcome

One of:

  1. Add a docs/troubleshooting section in docs/gemini.md
  2. Add a general troubleshooting note in README.md linking to docs/gemini.md
  3. Optionally add chart support for extraInitContainers / extraVolumes / extraVolumeMounts, then document the Helm values workaround

Why this matters

Even if openAB should not carry the workaround in its image, users still need a clear and discoverable installation-time path forward until the upstream Gemini CLI fix lands.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions