hbz / lobid-organisations

Transformation, web frontend, and API for lobid-organisations
http://lobid.org/organisations
Eclipse Public License 2.0
13 stars 3 forks source link

Organisations doesn't restart #374

Closed dr0i closed 7 years ago

dr0i commented 7 years ago

In our setup monit watches over running processes. It appears that when lobid-organisations is down AND /tmp/lobid-organisations/enriched.prod.out.json is empty (which it always seems to be when it is builded regularly (when/where?) ) the web app doesn't start. Workaround is to use the backup enriched.out.json (which is of late july thus updates are missing , see #373).

dr0i commented 7 years ago

Logs show:

Transformation output file exists, indexing only. To trigger transformation on start, delete '/tmp/lobid-organisations/enriched.prod.out.json'

It seems (not logged, just a guess) that the app is then going down because of the empty index.

However, the solution is to make enriched.prod.out.json build ok again. The cause of that failed build was that the geo-service pelias@weywot3 was not running after a reboot of weywot3. I've provided an init-start-script to start pelias automatically when the server reboots so this issue will be avoided next time.