Skip to content

Provide error message if process file is unavailable due to permissions for teleport start#24924

Merged
stevenGravy merged 3 commits intomasterfrom
stevenGravy/filepermissionsproc
Sep 21, 2023
Merged

Provide error message if process file is unavailable due to permissions for teleport start#24924
stevenGravy merged 3 commits intomasterfrom
stevenGravy/filepermissionsproc

Conversation

@stevenGravy
Copy link
Copy Markdown
Contributor

@stevenGravy stevenGravy commented Apr 20, 2023

Provides information when unable to access sqllite.db path. Due to load order this stopped the effectiveness of the messages
on permissions done in #10044.

current error

2023-04-20T14:17:14-04:00             INFO Starting Teleport v14.0.0-dev with a config file located at "teleport.yaml" common/teleport.go:548
ERROR: initialization failed
mkdir data/proc: permission denied

to

2023-04-20T14:16:22-04:00             INFO Starting Teleport v14.0.0-dev with a config file located at "teleport.yaml" common/teleport.go:548
ERROR: Teleport does not have permission to write to /var/lib/teleport/proc/sqlite.db
initialization failed
mkdir data/proc: permission denied

Comment thread lib/backend/lite/lite.go Outdated
stevenGravy and others added 2 commits September 21, 2023 13:51
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
@stevenGravy stevenGravy added this pull request to the merge queue Sep 21, 2023
Merged via the queue into master with commit 2778be9 Sep 21, 2023
@stevenGravy stevenGravy deleted the stevenGravy/filepermissionsproc branch September 21, 2023 20:25
@public-teleport-github-review-bot
Copy link
Copy Markdown

@stevenGravy See the table below for backport results.

Branch Result
branch/v12 Create PR
branch/v13 Create PR
branch/v14 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants