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

/var/log/juicefs.log permission denied. #1851

Closed
zhoucheng361 opened this issue Apr 21, 2022 · 4 comments · Fixed by #1869
Closed

/var/log/juicefs.log permission denied. #1851

zhoucheng361 opened this issue Apr 21, 2022 · 4 comments · Fixed by #1869
Labels
kind/bug Something isn't working

Comments

@zhoucheng361
Copy link
Contributor

What happened:
run juicefs with non-root user, will show this error:

2022/04/21 02:48:42.565676 juicefs[7575] : open log file /var/log/juicefs.log: open /var/log/juicefs.log: permission denied [mount_unix.go:83]

https://github.com/juicedata/juicefs/runs/6105515257?check_suite_focus=true

What you expected to happen:
should not permission denied.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

  • JuiceFS version (use juicefs --version) or Hadoop Java SDK version:
  • Cloud provider or hardware configuration running JuiceFS:
  • OS (e.g cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Object storage (cloud provider and region, or self maintained):
  • Metadata engine info (version, cloud provider managed or self maintained):
  • Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage):
  • Others:
@zhoucheng361 zhoucheng361 added the kind/bug Something isn't working label Apr 21, 2022
@SandyXSD
Copy link
Contributor

It's because the user running JuiceFS doesn't have write permission in /var/log. Add --log <log_file> to use a permitted file, e.g. /tmp/juicefs.log

@SandyXSD SandyXSD reopened this Apr 22, 2022
@SandyXSD
Copy link
Contributor

Better change the default log path when user is not root.

@zhoucheng361
Copy link
Contributor Author

@zhoucheng361 zhoucheng361 reopened this Apr 24, 2022
@zhoucheng361
Copy link
Contributor Author

it is fixed in latest client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants