fix(build): blockstore.db permission denied after upgrade#1179
Conversation
chore(release): update changelog and bump version to 1.5.0
WalkthroughConsolidates multiple 1.5.0-dev.* changelog entries into a single 1.5.0 release entry, updates the default version constant to "1.5.0", and adjusts Docker image user creation (tmuser UID/GID) and related packaging/notes for Alpine compatibility. Changes
Sequence Diagram(s)(omitted — changes are simple file edits and metadata/user setup; no new runtime control flow requiring a sequence diagram) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
DOCKER/Dockerfile (1)
83-83: Remove trailing whitespace.There's trailing whitespace after
klogdthat should be removed for consistency.Apply this diff:
- deluser klogd && \ + deluser klogd && \
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
CHANGELOG.md(7 hunks)DOCKER/Dockerfile(1 hunks)version/version.go(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2024-11-04T12:05:19.844Z
Learnt from: lklimek
PR: dashpay/tenderdash#973
File: .github/workflows/tests.yml:22-22
Timestamp: 2024-11-04T12:05:19.844Z
Learning: Go version 1.23.2 has been released and is valid to use in CI workflows.
Applied to files:
CHANGELOG.md
🪛 markdownlint-cli2 (0.18.1)
CHANGELOG.md
1-1: First line in a file should be a top-level heading
(MD041, first-line-heading, first-line-h1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: test_apps
- GitHub Check: test_abci_cli
- GitHub Check: Super linter
- GitHub Check: tests (04)
- GitHub Check: tests (01)
- GitHub Check: tests (02)
- GitHub Check: tests (00)
- GitHub Check: e2e-test (dashcore)
- GitHub Check: e2e-test (rotate)
- GitHub Check: golangci-lint
🔇 Additional comments (8)
version/version.go (1)
12-12: LGTM! Version bump to stable release.The update from "1.5.0-dev.3" to "1.5.0" appropriately marks the stable release.
DOCKER/Dockerfile (3)
74-76: Clear documentation of the Alpine 3.21 UID conflict.The comments effectively explain the klogd UID 100 conflict and the backwards-compatibility requirement.
81-84: Verify that removing klogd has no operational impact.The workaround deletes the system
klogduser to reclaim UID 100 for backwards compatibility. While this addresses the Alpine 3.21 conflict, ensure that:
- The klogd service is not required for container logging or kernel message handling
- The removal doesn't affect any monitoring or diagnostic capabilities
- This approach has been tested on both fresh installations and upgrades from pre-3.21 images
Consider documenting in the PR description or commit message whether klogd functionality is needed and what alternatives (if any) are in place.
79-79: Package additions appear reasonable.The added packages support Kubernetes deployment (curl, jq) and user convenience (bash). The remaining packages (gmp, libsodium-dev, libstdc++, libpcap) are likely runtime dependencies for tenderdash or the BLS library compiled in earlier stages.
CHANGELOG.md (4)
3-20: LGTM! Proper consolidation of dev releases into stable 1.5.0.The changelog entries from 1.5.0-dev.1, 1.5.0-dev.2, and 1.5.0-dev.3 have been appropriately consolidated under the 1.5.0 release header. The structure follows standard changelog conventions.
90-137: Dependency updates properly documented.The extensive list of dependency bumps reflects active maintenance and security updates. The entries follow the established format consistently.
225-287: Minor formatting cleanup in historical entries.The formatting adjustments to older version sections maintain consistency without altering historical information.
1-1: Release date is correct. Date format matches other entries and a 2025-09-24 release preceding the PR (2025-10-01) is valid.
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
DOCKER/Dockerfile(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
- GitHub Check: build
- GitHub Check: golangci-lint
- GitHub Check: tests (03)
- GitHub Check: tests (01)
- GitHub Check: tests (02)
- GitHub Check: tests (05)
- GitHub Check: e2e-test (rotate)
- GitHub Check: tests (04)
- GitHub Check: tests (00)
- GitHub Check: e2e-test (dashcore)
- GitHub Check: Build (amd64, linux)
- GitHub Check: Super linter
* chore(release): update changelog and version to 1.5.0 * fix(build): blockstore.db permission denied after upgrade * chore: remove debug
* fix(blocksync): potential deadlock in updateMonitor * build(deps): Bump docker/login-action from 3.5.0 to 3.6.0 (#1178) Bumps [docker/login-action](https://github.com/docker/login-action) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v3.5.0...v3.6.0) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 3.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(build): blockstore.db permission denied after upgrade (#1179) * chore(release): update changelog and version to 1.5.0 * fix(build): blockstore.db permission denied after upgrade * chore: remove debug --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): Bump docker/login-action from 3.5.0 to 3.6.0 (#1178) Bumps [docker/login-action](https://github.com/docker/login-action) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v3.5.0...v3.6.0) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 3.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(build): blockstore.db permission denied after upgrade (#1179) * chore(release): update changelog and version to 1.5.0 * fix(build): blockstore.db permission denied after upgrade * chore: remove debug * chore(release): update changelog and version to 1.5.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Issue being fixed or feature implemented
ERROR: failed to create node: unable to initialize blockstore: failed to initialize database: stat /tenderdash/data/blockstore.db: permission denied
Sleeping for 10 seconds as workaround for the busy port problem. See entrypoint code for details.
What was done?
Delete
klogduser to ensure we can reuse uid 100 (which was used in previous version of image)How Has This Been Tested?
On a local devnet
Breaking Changes
None
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
Bug Fixes
Build
Documentation
Chores