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

fix: chown fail when OS create folders or files with root only permission #4428

Merged
merged 1 commit into from May 13, 2024

Conversation

tien
Copy link
Contributor

@tien tien commented Apr 30, 2024

I'm having issue with Janusgraph whenever the OS create files or folders in the Janusgraph owned directory. For example, when the system restart unexpectedly and a lost+found folder is created. The lost+found created by fsck have root only access, so chown will fail.

I don't think chown need to be recursive because files that are created & used by Janusgraph will all be created by the default user (janusgraph) anyway.

@li-boxuan
Copy link
Member

@FlorianHockmann tagging you as git blame says you are probably most familiar with this :)

Copy link
Member

@FlorianHockmann FlorianHockmann left a comment

Choose a reason for hiding this comment

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

I don't know why we had this recursive flag, but it has been like that since the very first version of our Docker images: JanusGraph/janusgraph-docker@1bb998c

But I agree that it shouldn't be needed so I'm OK with removing it.

Copy link
Member

@porunov porunov left a comment

Choose a reason for hiding this comment

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

Thank you @tien !
I left some thoughts below, but generally it LGTM.
I personally am not using JanusGraph Docker image, so I will rely more on reviews from @FlorianHockmann and @farodin91 here.

janusgraph-dist/docker/Dockerfile Outdated Show resolved Hide resolved
janusgraph-dist/docker/docker-entrypoint.sh Show resolved Hide resolved
…sion

Signed-off-by: Tiến Nguyễn Khắc <tien.nguyenkhac@icloud.com>
@janusgraph-bot janusgraph-bot added the cla: external Externally-managed CLA label May 7, 2024
@FlorianHockmann FlorianHockmann added this to the Release v1.1.0 milestone May 13, 2024
@FlorianHockmann FlorianHockmann merged commit cff9793 into JanusGraph:master May 13, 2024
109 checks passed
@FlorianHockmann
Copy link
Member

💚 All backports created successfully

Status Branch Result
v1.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docker cla: external Externally-managed CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants