OpenJDK requires procfs

jarge11

Dabbler
Joined
Mar 13, 2014
Messages
20
Installing ELK stack on FreeNAS jail.
Elastic and Kibana work but Logstash will not start because OpenJDK requires /proc/curproc/map to be mounted, but that doesn't happen with a jail.

[2020-07-31T20:37:38,144][ERROR][org.logstash.Logstash ] java.lang.InternalError: errno: 2 error: Unable to open /proc/curproc/map

Looking for advice and suggestions please?
 

colmconn

Contributor
Joined
Jul 28, 2015
Messages
174
you probably just need to stop the jail, run this command iocage set mount_procfs=1 ${yourLogStashJailNameHere}, and then restart the jail. I had LogStash running in a jail with the property set on the the jail with no issues.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
You may also need to iocage set allow_mount_procfs=1 ${yourLogStashJailNameHere} and iocage set allow_mount=1 ${yourLogStashJailNameHere}, and set these sysctl tunables

Code:
security.jail.mount_allowed: 1
security.jail.mount_procfs_allowed: 1
security.jail.param.allow.mount.: 1
security.jail.param.allow.mount.procfs: 1
 
Top