Tracked down a bug in a call to MongoDB that failed to ever return. It was trying to remove an index and the call never finished.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
console.log("Checking Environment...");
|
||||
|
||||
if(!process.env.MONGO_URL) {
|
||||
console.log("Must provide the MONGO_URL environment variable point to the district central's main database. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
console.error("Must provide the MONGO_URL environment variable point to the district central's main database. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
if(!process.env.MONGO_URL2) {
|
||||
console.log("Must provide the MONGO_URL2 environment variable pointing to the chromebook data collection dataset. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
console.error("Must provide the MONGO_URL2 environment variable pointing to the chromebook data collection dataset. Should be of the format: `mongodb://localhost:27017/DatabaseName` or `mongodb://user_name:password@host.domain.com,host2.domain.com,host3.domain.com/DatabaseName?replicaSet=set_name`.")
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
@@ -12,8 +14,8 @@ try {
|
||||
let settings = Assets.getText('settings.json');
|
||||
}
|
||||
catch(e) {
|
||||
console.log("Must have a /private/settings.json file with the following format:");
|
||||
console.log(`
|
||||
console.error("Must have a /private/settings.json file with the following format:");
|
||||
console.error(`
|
||||
{
|
||||
"google": {
|
||||
"clientId": "xxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
|
||||
@@ -29,4 +31,6 @@ catch(e) {
|
||||
|
||||
`);
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("Environment Checking Complete.")
|
||||
@@ -1,6 +1,8 @@
|
||||
import {MongoInternals} from 'meteor/mongo';
|
||||
import {Meteor} from 'meteor/meteor';
|
||||
|
||||
console.log("Setting up data collection database connection...");
|
||||
|
||||
let uri = process.env.MONGO_URL2; //"mongodb://localhost:27017/avusd_data_collection";
|
||||
//uri = "mongodb://localhost:27017/avusd_data_collection";
|
||||
//console.log(uri);
|
||||
@@ -11,3 +13,5 @@ Meteor.Records = collection;
|
||||
|
||||
// let results = collection.find({deviceId: "1e3e99ef-adf4-4aa2-8784-205bc60f0ce3"}).fetch();
|
||||
// console.log(results);
|
||||
|
||||
console.log("Database connection setup.")
|
||||
@@ -4,6 +4,8 @@
|
||||
* Loads the information from the /private/settings.json file.
|
||||
*/
|
||||
|
||||
console.log("Setting up Google OAuth...");
|
||||
|
||||
try {
|
||||
let settings = Assets.getText('settings.json');
|
||||
|
||||
@@ -48,3 +50,5 @@ ServiceConfiguration.configurations.upsert(
|
||||
}
|
||||
);
|
||||
*/
|
||||
|
||||
console.log("Finished OAuth setup.")
|
||||
@@ -3,6 +3,8 @@ import winston from "winston";
|
||||
import moment from "moment";
|
||||
import _ from 'underscore';
|
||||
|
||||
// console.log("Setting up logging....");
|
||||
|
||||
let production = (process.env.NODE_ENV === "production");
|
||||
let logPath = process.env.LOG_PATH;
|
||||
|
||||
@@ -88,3 +90,5 @@ console.warn = function(d) {
|
||||
console.error = function(e) {
|
||||
logger.log("error", e.stack || e);
|
||||
}
|
||||
|
||||
// console.log("Logger setup.");
|
||||
Reference in New Issue
Block a user