OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Issues with QuickStart

Open wkhudgins92 opened this issue 8 months ago • 17 comments

Affected module QuickStart example Docker Compose, found here.

Describe the bug I found two issues.

First, the line OIDC_CUSTOM_PARAMETERS: ${OIDC_CUSTOM_PARAMS:-{}} appears to be fragile because it uses Compose interpolation with the default value that itself contains curly braces. In my setup, that ended up producing invalid OpenMetaData config (customParams: {}}) and caused the server to fail parsing openmetadata.yaml. Replacing it with the literal string OIDC_CUSTOM_PARAMS: "{}" fixed the issue. I think the literal form is safer for the quickstart because it avoids brace-parsing ambiguity in Compose-compatible runtimes, which should improve portability not just for Podman but across Docker compose versions as well. Further, for the quickstart people will almost always be using the default value, so supporting supplying custom OIDC parameters is likely not needed for quickstart.

Second, I noticed a likely minor typo in the Quickstart documentation itself. Under "Stop and Start" and "Cleanup" the docker compose commands are provided without the -f flag, which is present in the earlier docker compose commands. When dealing with the postgres version, the docker compose file is not named compose.yml, docker-compose.yml, or container-compose.yml, thus the -f flag is required for docker compose commands. For example, the quickstart guide says to run docker compose down, but that doesn't work. What is actually required is docker compose -f docker-compose-postgres.yml down.

To Reproduce

My setup:

  • MacOS Sequoia 15.5
  • podman 5.6.1
  • podman-compose 1.5.0
  • I'm using podman instead of docker, but docker --version returns 5.6.1.

Following the instructions in the quickstart guide:

mkdir openmetadata-docker && cd openmetadata-docker
curl -sL -o docker-compose.yml https://github.com/open-metadata/OpenMetadata/releases/download/1.12.0-release/docker-compose.yml

curl -sL -o docker-compose-postgres.yml https://github.com/open-metadata/OpenMetadata/releases/download/1.12.0-release/docker-compose-postgres.yml
docker compose -f docker-compose.yml up --detach

It doesn't matter if MySQL or Postgres version of quickstart is used, the error will be the same. The RDBMS, elasticsearch, and ingestion containers will spin up and continue running, but the main server and execute-migrate-all will both crash with a Malformed YAML at line: . . . customParams: {}} error. I posted about this on Slack, here.

Expected behavior I expected the migration and main server contains to run propery.

Version:

  • OS: MacOS Sequoia 15.5
  • Python version: 3.13.7
  • OpenMetadata version: 1.12
  • OpenMetadata Ingestion package version: N/A

Additional context I realize Docker is the preferred path, but this minor fix enables the quickstart to succeed in Podman, which is great for organizations in which Docker is not an option.

wkhudgins92 avatar Mar 25 '26 18:03 wkhudgins92

@PubChimps Can I work on it?

takitajwar17 avatar Apr 02 '26 08:04 takitajwar17

Can I work on this @PubChimps

adishchowdhury avatar Apr 02 '26 17:04 adishchowdhury

I am working on this now @fredrik

Esvanth avatar Apr 03 '26 09:04 Esvanth

French Signup Form Translations (#25711): Added specific first-name and last-name translation keys to en-us.json and fr-fr.json. Updated the BasicSignup component to use these keys, resolving the incorrect "Nom de Premier" phrasing in French. Release Announcement Fix (#26859): Changed the "What's New" prompt text to "What's new in this release" for better clarity and updated the corresponding test.

Esvanth avatar Apr 03 '26 10:04 Esvanth

Hi @harshach Sir, my PR #26965 fixes this issue. Could you please assign this issue to me? Thanks!

RajdeepKushwaha5 avatar Apr 03 '26 20:04 RajdeepKushwaha5

Hi @wkhudgins92! I'd like to look into this — could you assign it to me? Thanks!

david-mamani avatar Apr 09 '26 02:04 david-mamani

I am working on this now @fredrik

Glad to hear it, @Esvanth

fredrik avatar Apr 09 '26 07:04 fredrik

@fredrik can you assign it to me?

Esvanth avatar Apr 09 '26 07:04 Esvanth

No, I'm afraid not @Esvanth. I am not working on this project and I am not sure why you tagged me in the first place. šŸ˜„

fredrik avatar Apr 09 '26 08:04 fredrik

@wkhudgins92 @PubChimps can you assign it to me?

Esvanth avatar Apr 09 '26 08:04 Esvanth

Hi @pmbrull @harshach šŸ‘‹

Submitted a fix in PR #27217

Root cause: OIDC_CUSTOM_PARAMS: ${OIDC_CUSTOM_PARAMS:-{}} — the {} default conflicts with Compose variable interpolation syntax, producing malformed YAML (customParams: {}}) and crashing the server on startup.

Fix: Wrapped in double quotes across all 8 Docker Compose files (16 occurrences total) — Compose still performs variable substitution inside quoted strings so env var override continues to work correctly.

1 clean commit. 8 files. 16 lines changed. Nothing else touched.

mohitjeswani01 avatar Apr 09 '26 21:04 mohitjeswani01

Hi! I'd like to work on this — I can address both issues in a single PR.

Fix 1 — OIDC brace parsing:
Replace OIDC_CUSTOM_PARAMETERS: ${OIDC_CUSTOM_PARAMS:-{}} with the literal OIDC_CUSTOM_PARAMETERS: "{}" across all affected compose files (docker-compose.yml and docker-compose-postgres.yml). The variable substitution with {} as the default is fragile across Compose runtimes and the quickstart never needs dynamic OIDC params anyway.

Fix 2 — Docs missing -f flag:
Update the QuickStart documentation's "Stop and Start" and "Cleanup" sections to include -f docker-compose-postgres.yml in the commands for the Postgres variant, since that filename isn't a Docker Compose default.

Both are low-risk, isolated changes. Could I be assigned? I'll have a PR ready quickly.

pooja-bhavani avatar Apr 13 '26 18:04 pooja-bhavani

Hi @wkhudgins92.

I would like work on the issue. Please Assign.

zizfsl avatar Apr 14 '26 10:04 zizfsl

Hi @wkhudgins92 , is this issue still open to work on? I’d like to contribute if no one is actively working on it.

Amans2002 avatar Apr 15 '26 16:04 Amans2002

I'd like to work on this

Uche44 avatar Apr 15 '26 20:04 Uche44

Hi @wkhudgins92 , I'd like to work on this. I'll replace the fragile ${OIDC_CUSTOM_PARAMS:-{}} interpolation with a literal "{}" in the docker-compose files, and add the missing -f flag to the docker compose down commands in the QuickStart docs. Can you assign this to me?

DivyDeshmukh avatar Apr 15 '26 20:04 DivyDeshmukh

This issue has been assigned, please do not submit new code fixing this unless otherwise noted, thank you!

PubChimps avatar Apr 16 '26 00:04 PubChimps