mysociety / popit

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
76 stars 33 forks source link

timeouts on reindexing #753

Open mhl opened 9 years ago

mhl commented 9 years ago

Both Pombola -> PopIt mirroring jobs failed last night when it came to reindexing returning a timeout error:

+ read -r -d '' REINDEX_SCRIPT
+ true
+ node --eval 'var reIndex = require('\''popit-api'\'').reIndex;

var databaseName = process.argv[1];
console.warn("Reindexing the database: " + databaseName);

reIndex(databaseName, function(err, total) {
  if (err) {
    throw err;
  }
  console.log("Re-indexed " + total + " docs from " + databaseName);
  process.exit();
});' popit_za-new-import_20150217021309
Reindexing the database: popit_za-new-import_20150217021309

[eval]:8
    throw err;
          ^
Error: Request Timeout after 600000ms
    at null.<anonymous> (/data/vhost/popit.mysociety.org/popit/node_modules/popit-api/node_modules/elasticsearch/src/lib/transport.js:272:15)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)