Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

/var/run/knox missing after reboot

Highlighted

/var/run/knox missing after reboot

Hello,

I have encountered a problem after reboot.

Knox not started because /var/run/knox is missing.

Is a bug ?

 /usr/hdp/current/knox-server/bin/gateway.sh stop

==> Can't find PID dir
1 REPLY 1
Highlighted

Re: /var/run/knox missing after reboot

Super Mentor

@Clément Dumont


The "/var/run/knox" is mounted as tmpfs so it might be deleted by the operating system after host reboot. So if you find this issue in OS like RHEL7 then please try changing the "knox PID" to some other path.

Ambari UI --> Knox --> Configs --> Advanced -->  "Advanced knox-env"  --> "Knox PID dir"<br>

The "Knox PID dir" by default has a value "/var/run/knox" you can change it to something else.

Red Hat Enterprise Linux 7, the/rundirectory is a temporary file storage system (tmpfs) that bind mounts the/var/rundirectory.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/migration_planning_gui...

Don't have an account?
Coming from Hortonworks? Activate your account here