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

Better error description for "Failed to set up mount namespacing: No such file or directory" #12974

Closed
kokizzu opened this issue Jul 6, 2019 · 2 comments

Comments

@kokizzu
Copy link

kokizzu commented Jul 6, 2019

Is your feature request related to a problem? Please describe.
Always frustrated when writing service file but it didn't show which file/directory that does not exists.

example:

InaccessiblePaths=/some/typo /bunch/other/directory
ReadWriteDirectories=/some/non/existent/directory /bunch/other/directory
ReadOnlyPaths=/some/other/typo /bunch/other/paths
ProtectHome=true
ProtectSystem=full

Describe the solution you'd like
Show which rule that causes the error (at least the path/directory), instead of just Failed to set up mount namespacing: No such file or directory

Describe alternatives you've considered
I've tried to set Environment=SYSTEMD_LOG_LEVEL=debug on service file or LogLevel=info on /etc/systemd/system.conf but it doesn't help much, the same unhelpful error "no such file or directory" without mentioning which directory/path that causes the error

@yuwata
Copy link
Member

yuwata commented Jul 10, 2019

Please try systemd-analyze log-level debug.

@poettering
Copy link
Member

This has been reworked in 7cc5ef5 already (which is going to be part of the next release). Let's consider this closed, hence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants