Solving Open Oni Issues

Solr Fails to Spin down and Spin Up Graciously

Sometimes, users will report that search is broken in Open Oni. When this happens, it’s almost always due to the Solr pod failing to gracefully terminate and restart. When the new pod is scheduled elsewhere, it encounters a write.lock error and refuses to start. To understand the problem better, see the Arguments and WorkingDir of the exec in Rancher:

Open Oni Exec

To fix:

  1. Shell into the Solr pod

  2. rm openoni/data/index/write.lock

  3. Redeploy the pod.

Unexpected Error on Web Front End

Occasionally, you’ll see an Unexpected Error on the web frontend for OpenOni.

When this happens, you need to change the perms for djangocache to 777.

root@web-6ffcbdbf5-m95q9:/opt/openoni# chmod -R 777 /var/tmp/django_cache