Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chmod: cannot access '/var/lib/docker/volumes/sentry-self-hosted_sentry-zookeeper-log/_data #3030

Closed
etlam opened this issue May 7, 2024 · 4 comments · Fixed by #3039
Closed

Comments

@etlam
Copy link

etlam commented May 7, 2024

Self-Hosted Version

24.4.2

CPU Architecture

x86_64

Docker Version

24.0.7

Docker Compose Version

2.21.0

Steps to Reproduce

  1. Create .env.custom
  2. Change COMPOSE_PROJECT_NAME to any other value than the default value sentry-self-hosted
  3. Run sudo ./install.sh --skip-user-creation --no-report-self-hosted-issues

Expected Result

Checking volume permissions for kafka and zookepper does not fail.
Located in this file: https://github.com/getsentry/self-hosted/blame/1c72fbe6120444ac232df0dae242cd5af40b38df/install/update-docker-volume-permissions.sh

Actual Result

Ensuring Kafka and Zookeeper volumes have correct permissions ...
chmod: cannot access '/var/lib/docker/volumes/sentry-zookeeper/_data': Permission denied
chmod: cannot access '/var/lib/docker/volumes/sentry-kafka/_data': Permission denied
chmod: cannot access '/var/lib/docker/volumes/sentry-self-hosted_sentry-zookeeper-log/_data': Permission denied
WARNING: Error when setting appropriate permissions for zookeeper, kafka, and zookeeper log docker volumes. This may corrupt your self-hosted install. See https://github.com/confluentinc/kafka-images/issues/127 for context on why this was added.

Problem:

Event ID

No response

@azaslavsky
Copy link
Contributor

Just out of curiosity: what is the use case for doing this? I agree that we've been a bit sloppy about hard coding vs using this variable appropriately, it'd be nice to know what sorts of applications folks are using this for.

@etlam
Copy link
Author

etlam commented May 10, 2024

Just out of curiosity: what is the use case for doing this? I agree that we've been a bit sloppy about hard coding vs using this variable appropriately, it'd be nice to know what sorts of applications folks are using this for.

For example to run multiple sentry instances on one host machine using a reverse proxy in front.
On the other hand the variable is set in the .env and there is no comment not to change it, so why not?

@hubertdeng123
Copy link
Member

I've put a PR up here: #3039

This should fix the issue

@hubertdeng123
Copy link
Member

Although, I believe sentry-zookeeper and sentry-kafka volume names should not change when the compose project name is changed. Is this accurate for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants