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

ntp.service: Failed to set up mount namespacing: Permission denied #186

Open
zedtux opened this issue Feb 20, 2020 · 3 comments
Open

ntp.service: Failed to set up mount namespacing: Permission denied #186

zedtux opened this issue Feb 20, 2020 · 3 comments

Comments

@zedtux
Copy link

zedtux commented Feb 20, 2020

Cookbook version

3.6.2

Chef-client version

15.8.23

Platform Details

Debian Buster

Scenario:

Deploying this cookbook fails with the following errors:

Feb 20 10:37:42 west-1 systemd[1]: Starting Network Time Service...
Feb 20 10:37:42 west-1 systemd[12502]: ntp.service: Failed to set up mount namespacing: Permission denied
Feb 20 10:37:42 west-1 systemd[12502]: ntp.service: Failed at step NAMESPACE spawning /usr/lib/ntp/ntp-systemd-wrapper: Permission denied
Feb 20 10:37:42 west-1 systemd[1]: ntp.service: Control process exited, code=exited, status=226/NAMESPACE
Feb 20 10:37:42 west-1 systemd[1]: ntp.service: Failed with result 'exit-code'.
Feb 20 10:37:42 west-1 systemd[1]: Failed to start Network Time Service.

The way I found to make it working is the following:

sed -i -e 's,PrivateTmp=true,PrivateTmp=false\nNoNewPrivileges=yes,g' /lib/systemd/system/ntp.service
systemctl daemon-reload
systemctl start

Expected Result:

Get ntp starting correctly.

Actual Result:

ntp fails to start

@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale This is marked as stale and will be closed shortly label Feb 20, 2021
@zedtux
Copy link
Author

zedtux commented Feb 20, 2021

Why do we have bots to close issues instead of having a bots reminding devs about existing issues ...🤔? It would make so much more sens actually.

@ramereth
Copy link
Contributor

@zedtux given the amount of cookbooks we maintain, it's difficult to get to all of these issues. So doing this helps us make sure when users (like you) reply, we know it's still important to deal with.

Feel free to make a PR which addresses this and we'll get it merged!

@github-actions github-actions bot removed the Stale This is marked as stale and will be closed shortly label Feb 21, 2021
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

No branches or pull requests

2 participants