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

[bitnami/redis-cluster] Unable to build cluster on development server , facing permission issue #30616

Open
Harsh-Sharma-1 opened this issue Nov 25, 2024 · 3 comments
Assignees
Labels
redis-cluster tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@Harsh-Sharma-1
Copy link

Harsh-Sharma-1 commented Nov 25, 2024

Name and Version

bitnami/redis-cluster 11.0.8

What architecture are you using?

None

What steps will reproduce the bug?

  1. Using the above-mentioned chart of the Redis cluster able to deploy the same in the local machine and successfully the cluster is also being created.
  2. Tried the same charts and same image on a Linux-based development server, facing the issue given below -
# Fatal: Can't initialize Background Jobs. Error message: Operation not permitted
  1. Even when trying the same image tag version [7.4.1-debian-12-r2] with some older charts versions it stocks in cluster creation and doesn't create the cluster and doesn't join its node. Pod giving error -
Readiness probe failed: cluster_state:fail

Are you using any custom parameters or values?

Not

What is the expected behavior?

A cluster should be created and the pod is in running state 1/1.

What do you see instead?

Cluster is not created

@Harsh-Sharma-1 Harsh-Sharma-1 added the tech-issues The user has a technical issue about an application label Nov 25, 2024
@github-actions github-actions bot added the triage Triage is needed label Nov 25, 2024
@carrodher
Copy link
Member

Bitnami containers are designed to operate as non-root by default. Consequently, any files or directories used by the application should be owned by the root group, as the random user (1001 by default) is a member of this root group. To ensure proper permissions, you'll need to adjust the ownership of your local directory accordingly.

For more comprehensive information about non-root containers and their significance for security, you can explore the following resources:

These references provide valuable insights into the best practices and considerations when working with non-root containers in Bitnami applications.

@Harsh-Sharma-1
Copy link
Author

I was able to resolve the permissions issue by using privileged: true.

However, my cluster is still stuck in the creation process. Although all the pods have successfully started, the cluster is not functioning properly. I am encountering the following event:

"Readiness probe failed: cluster_state:fail"

@Harsh-Sharma-1
Copy link
Author

The cluster starts successfully with the image redis-cluster:7.2.1-debian-11-r26 using both new and old Helm charts. However, it fails to start when using the latest image redis-cluster:7.4.1-debian-12-r2.

Is there any major difference between these images. which is causing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redis-cluster tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants