fix(services): improve error message for missing locale on Linux#3071
Merged
Conversation
When embedded-postgres fails to initialize on Linux systems without en_US.UTF-8 locale, the error message is cryptic. Add a clear hint pointing users to install the missing locale. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Release OptionsSuggested: Patch ( React with an emoji to override the release type:
Current version:
|
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this contribution about?
When running
bunx decocms@lateston Linux systems without theen_US.UTF-8locale (e.g. minimal Ubuntu, Alpine, slim Docker images), embedded-postgres fails with a cryptic error: "Postgres init script exited with code 1. Please check the logs." This adds a clear error message explaining the missing locale and how to fix it.This is a known upstream issue in embedded-postgres, pending a proper fix.
How to Test
en_US.UTF-8localebunx decocms@latestas a non-root userlocale-gen en_US.UTF-8Review Checklist
Summary by cubic
Clarifies
embedded-postgresinit failures on Linux systems by detecting a missingen_US.UTF-8locale and showing a clear fix. Helps users on minimal distros and slim Docker images avoid the cryptic “init script exited with code 1” message.en_US.UTF-8locale and how to install it on Linux systems:sudo apt-get install -y locales && sudo locale-gen en_US.UTF-8, then retry.Written for commit 266eac2. Summary will update on new commits.