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

cannot determine user id for 'ntp', does the user exist on this system? #247

Open
randyrue opened this issue May 2, 2024 · 1 comment
Open

Comments

@randyrue
Copy link

randyrue commented May 2, 2024

Looks like for Ubuntu 24.04 LTS server the ntp service runs as the user "ntpsec" instead of the previous "ntp"

Running handlers: [2024-05-02T15:03:04+00:00] ERROR: Running exception handlers Running handlers complete [2024-05-02T15:03:04+00:00] ERROR: Exception handlers complete Infra Phase failed. 0 resources updated in 06 seconds [2024-05-02T15:03:04+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2024-05-02T15:03:04+00:00] FATAL: --------------------------------------------------------------------------------------- [2024-05-02T15:03:04+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT [2024-05-02T15:03:04+00:00] FATAL: --------------------------------------------------------------------------------------- [2024-05-02T15:03:04+00:00] FATAL: Chef::Exceptions::UserIDNotFound: directory[/var/lib/ntp] (ntp::default line 71) had an error: Chef::Exceptions::UserIDNotFound: cannot determine user id for 'ntp', does the user exist on this system?

@rurku
Copy link

rurku commented May 29, 2024

Indeed, looks like not only the user changed but also some of the paths
My temporary workaround is setting these attributes

"ntp": {
  "var_owner": "ntpsec",
  "var_group": "ntpsec",
  "conffile": "/etc/ntpsec/ntp.conf",
  "varlibdir": "/var/lib/ntpsec",
  "statsdir": "/var/log/ntpsec/"
},

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