Skip to content

Fix #187: fix redis-session.ini permission denied#752

Merged
varet80 merged 3 commits into
nextcloud:mainfrom
antoinetran:feature/issue187-fixredispermission_nextcloud7
Jul 22, 2026
Merged

Fix #187: fix redis-session.ini permission denied#752
varet80 merged 3 commits into
nextcloud:mainfrom
antoinetran:feature/issue187-fixredispermission_nextcloud7

Conversation

@antoinetran

@antoinetran antoinetran commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Description of the change

Following closure of #717 because of target branch develop deleted. This PullRequest targets main branch now.

Benefits

Possible drawbacks

Applicable issues

  • fixes #

Additional information

Checklist

@varet80
varet80 self-requested a review July 23, 2025 06:01
Comment thread charts/nextcloud/Chart.yaml Outdated
@lindhe

lindhe commented Jul 23, 2025

Copy link
Copy Markdown
Contributor
 ## Applicable issues
 
- - fixes #
+ - fixes #187

@wrenix wrenix assigned varet80 and unassigned varet80 Oct 27, 2025
@95gabor

95gabor commented Jan 6, 2026

Copy link
Copy Markdown

Thanks for your work on this! I’m also looking forward to this PR being merged.
Could you please also include the cronjob init container?

@antoinetran

Copy link
Copy Markdown
Contributor Author

Thanks for your work on this! I’m also looking forward to this PR being merged. Could you please also include the cronjob init container?

The only issue with my workaround is that it is a workaround. I created an issue aptible/supercronic#213 so that there is at least an official image so that nextcloud can rely on it.

@antoinetran

Copy link
Copy Markdown
Contributor Author

Thanks for your work on this! I’m also looking forward to this PR being merged. Could you please also include the cronjob init container?

@95gabor I think we should separate this pull request from the cron issue. Because it will take some time to have a real fix in busybox cron implementation.

@antoinetran

Copy link
Copy Markdown
Contributor Author

Anything preventing this pull request from being merged now?

@anthonymag

Copy link
Copy Markdown

Hey @antoinetran thanks for this, I have this working on mine in the meantime as an extraInitContainer.
One thing that's missing is adding the securityContext to the initContainer as well. If the redis-session.ini is created as a different user, the main nextcloud container will still get a permission denied when it tries to use it. I just hit this myself.

@antoinetran

Copy link
Copy Markdown
Contributor Author

Hey @antoinetran thanks for this, I have this working on mine in the meantime as an extraInitContainer. One thing that's missing is adding the securityContext to the initContainer as well. If the redis-session.ini is created as a different user, the main nextcloud container will still get a permission denied when it tries to use it. I just hit this myself.

Hi, thanks for the feedback! You are correct, I added the SCC and resource as configurable. The SCC will take the same as the nextcloud SCC, because it uses the same image. Also normally the default nextcloud images (apache / fpm) are as root by default, so the default SCC configuration here should work.

…and fsGroup)

Signed-off-by: antoinetran <antoinetran@users.noreply.github.com>
Signed-off-by: antoinetran <antoinetran@users.noreply.github.com>
@antoinetran
antoinetran force-pushed the feature/issue187-fixredispermission_nextcloud7 branch from 4bcbe1e to 259f42d Compare February 26, 2026 09:44
@antoinetran

Copy link
Copy Markdown
Contributor Author

Hi @varet80 , I just rebased on main and force push to get a clean history. Please feel free to comment.

@antoinetran

Copy link
Copy Markdown
Contributor Author

hi, is-there anything I can do to change the progress?

@anthonymag

Copy link
Copy Markdown

Hi @varet80 , are you or someone on the team available to review this PR?

@varet80

varet80 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Good day,
I cannot understand how this went sideways. Sorry for that.

Can you resolve conflicts, fix version and request review?
Thank you

Signed-off-by: antoinetran <antoinetran@users.noreply.github.com>
@antoinetran
antoinetran requested a review from varet80 July 22, 2026 15:59
@antoinetran

Copy link
Copy Markdown
Contributor Author

Good day, I cannot understand how this went sideways. Sorry for that.

Can you resolve conflicts, fix version and request review? Thank you

Yes no problem. I just did it.

@varet80
varet80 merged commit 668ad2e into nextcloud:main Jul 22, 2026
12 checks passed
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.

5 participants