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

Role fails when run inside Linux Container (lxc): Failed to reload sysctl: sysctl: setting key "vm.overcommit_memory": Read-only file system #241

Open
NHGmaniac opened this issue Jun 15, 2020 · 3 comments

Comments

@NHGmaniac
Copy link

Inside Linux Containers it is not possible to modify Kernel Parameters.
Issue seems to be this task, a quick fix would be adding ignore_errors: true to the task.

- name: enable overcommit in sysctl
sysctl:
name: vm.overcommit_memory
value: "1"
state: present
reload: yes
ignoreerrors: yes
when: redis_travis_ci is not defined

@Migsi
Copy link

Migsi commented Oct 29, 2020

This should be fixed by my merge request. Hope @DavidWittman merges this soon.

@siavashsardari
Copy link

I had the same issue but disabling overcommit_memory did not resolve the issue.I just uploaded a PR
and also you should disable the protected_mode.

@TopheC
Copy link

TopheC commented Jan 21, 2021

In LXC container in Proxmox same issue happen. PR from @siavashsardari seems to be a good solution.

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

4 participants