Skip to content

docs(sdk): add file permission errors troubleshooting#237

Merged
marythought merged 5 commits into
mainfrom
feat/dspx-2479
Mar 12, 2026
Merged

docs(sdk): add file permission errors troubleshooting#237
marythought merged 5 commits into
mainfrom
feat/dspx-2479

Conversation

@marythought
Copy link
Copy Markdown
Contributor

@marythought marythought commented Mar 11, 2026

Summary

  • Adds File Permission Errors section to getting-started/managing-platform troubleshooting — covers Docker volume ownership mismatches, unreadable /etc/resolv.conf//etc/hosts, and install directory permissions. Documents the "server misbehaving" gRPC error as a common symptom.
  • Adds File Permission Errors section to sdks/troubleshooting — covers SDK-level file I/O errors with cross-reference to the platform guide
  • Adds home directory writability check to check.sh
  • Adds Linux file permission troubleshooting callout to the quickstart "Need Help?" section

Platform examples to be merged in: opentdf/platform#3141

Test plan

  • Verify surge preview renders new troubleshooting sections in both pages
  • Confirm anchor link /getting-started/managing-platform#file-permission-errors-linux resolves correctly
  • Run check.sh and confirm new home directory check appears in output

🤖 Generated with Claude Code

marythought and others added 2 commits March 11, 2026 13:48
Documents the "server misbehaving" DNS error pattern caused by
unreadable /etc/resolv.conf or /etc/hosts on Linux, Docker volume
ownership mismatches, and SDK-level file I/O permission errors.
Adds cross-reference between the two troubleshooting pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- check.sh: add home directory writability check for install directory
- quickstart: add Linux file permission troubleshooting cross-reference

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marythought marythought requested review from a team as code owners March 11, 2026 20:53
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the documentation by providing comprehensive troubleshooting guides for file permission-related issues across both the platform and SDKs. It aims to reduce user frustration by clarifying cryptic error messages, such as "server misbehaving," and offering actionable steps to diagnose and resolve common permission problems, thereby improving the overall user experience and reducing support inquiries.

Highlights

  • Documentation for Platform Troubleshooting: Added a new section to getting-started/managing-platform for troubleshooting file permission errors on Linux, covering Docker volume ownership, DNS config file readability, and install directory permissions.
  • Documentation for SDK Troubleshooting: Introduced a new section in sdks/troubleshooting to address SDK-level file I/O errors, providing common scenarios and fixes, and cross-referencing the platform guide.
  • Pre-installation Checks: Implemented a home directory writability check in check.sh to proactively identify potential installation issues related to file permissions.
  • Quickstart Guidance: Added a specific callout in the quickstart guide's "Need Help?" section to direct Linux users to the new file permission troubleshooting documentation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • docs/getting-started/managing-platform.mdx
    • Added a new "File Permission Errors (Linux)" section.
    • Detailed symptoms like "server misbehaving" and "connection reset" caused by permission issues.
    • Provided a table outlining scenarios (Docker volume ownership, /etc/hosts or /etc/resolv.conf readability, install directory writability), symptoms, and fixes.
    • Included shell commands for diagnosing and fixing permission issues.
  • docs/getting-started/quickstart.mdx
    • Inserted a callout in the "Need Help?" section specifically for Linux users encountering cryptic errors due to file permissions.
    • Linked this callout to the new "File Permission Errors (Linux)" section in managing-platform.mdx.
  • docs/sdks/troubleshooting.mdx
    • Added a new "File Permission Errors" section.
    • Described symptoms of SDK-level file I/O errors and their connection to underlying permission problems.
    • Presented common scenarios (input file readability, output directory writability, /etc/resolv.conf readability, Docker volume ownership) with symptoms and fixes.
    • Provided diagnostic bash commands for checking file and directory permissions.
    • Included a cross-reference link to the platform-level permission troubleshooting guide.
  • static/quickstart/check.sh
    • Added a new check to verify if the user's home directory is writable.
    • Printed a status message if writable or a warning if not, advising the user to check permissions.
    • Included explanatory notes about the installer creating ~/.opentdf/ and how to check permissions.
Activity
  • No human activity has occurred on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds valuable troubleshooting documentation for file permission errors, a common source of confusion for users. The changes are clear and well-structured. I've made a few suggestions to improve the consistency and clarity of the shell commands provided in the documentation and the pre-flight check script. Specifically, I've recommended standardizing the chown command to set both user and group, ensuring chmod commands cover all relevant files, and refining a diagnostic ls command for more focused output.

Comment thread docs/getting-started/managing-platform.mdx Outdated
Comment thread docs/sdks/troubleshooting.mdx Outdated
Comment thread docs/sdks/troubleshooting.mdx Outdated
Comment thread static/quickstart/check.sh Outdated
@github-actions
Copy link
Copy Markdown
Contributor

📄 Preview deployed to https://opentdf-docs-pr-237.surge.sh

marythought and others added 2 commits March 11, 2026 14:36
- Use $USER:$USER in chown commands (user + group)
- Include /etc/hosts in resolv.conf chmod fix in troubleshooting.mdx
- Use ls -ld instead of ls -la for home directory permission check

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Mary Dickson <mary.dickson@virtru.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Mary Dickson <mary.dickson@virtru.com>
@marythought marythought merged commit ed95420 into main Mar 12, 2026
11 checks passed
@marythought marythought deleted the feat/dspx-2479 branch March 12, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants