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

OpenJDK Client VM warning: INFO: os::commit_memory #6

Closed
tschaffter opened this issue Aug 14, 2020 · 0 comments
Closed

OpenJDK Client VM warning: INFO: os::commit_memory #6

tschaffter opened this issue Aug 14, 2020 · 0 comments

Comments

@tschaffter
Copy link
Owner

If SELinux is enabled and its mode is set to enforcing, the controller should
have failed to start. A look at /var/log/messages should reveal the following
error:

OpenJDK Client VM warning: INFO: os::commit_memory(0xb31ab000, 163840, 1) failed; error='Permission denied' (errno=13)

The command sudo audit2allow -w -a can be used to translates the SELinux audit
messages into a description of why the access was denied.

The current solution is to enable the boolean allow_execmem. This solution is
probably too permissive and should ideally be more restrictive, for example by
targetting a single Java program.

sudo setsebool -P allow_execmem 1
getsebool -a | grep allow_execmem  # should be "on"

Restart the container (docker restart unifi-controller) and then check its logs
to check that the controller has successfully started (docker logs unifi-controller).

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

1 participant