Managed to answer my own question. The answer lies in the file
node_modules/keystone/lib/core/openDatabaseConnection.js. I changed this part of the file:
} else {
debug('connecting to mongo');
keystone.initDatabaseConfig();
keystone.mongoose.connect(keystone.get('mongo'), keystone.get('mongo options'));
}
So that it looks like this:
} else {
debug('connecting to mongo');
keystone.initDatabaseConfig();
keystone.mongoose.connect(keystone.get('mongo')+'?connectTimeoutMS=300000&socketTimeoutMS=300000', keystone.get('mongo options'));
}
This sets the timeout to 5 minutes. I'm not sure what it was before (probably 30 seconds from what I've read), but it fixed my problem with debugging.
I hope this helps others!
-Chris Troutner