Skip to content

Instantly share code, notes, and snippets.

View akhilesh26's full-sized avatar

Akhilesh Kumar akhilesh26

View GitHub Profile
{
"site": {
"webservice": "http://bookbrainz.mbsandbox.org/ws",
"proxyTrust": true,
"log": "debug"
},
"musicbrainz": {
"clientID": "my_clientID",
"clientSecret": "my_clientSecret",
"callbackURL": "http://localhost:9099/cb"
(node:15055) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot set property 'mbProfile' of undefined
(node:15055) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Sat Nov 11 2017 19:20:44 GMT+0530 (IST)] ERROR TypeError: Cannot read property 'title' of undefined
at Function.formatTitle (/home/mastcoder/metabrainz/bookbrainz-site/lib/client/components/pages/revision.js:182:27)
at RevisionPage.render (/home/mastcoder/metabrainz/bookbrainz-site/lib/client/components/pages/revision.js:250:35)
at /home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-dom/lib/ReactCompositeComponent.js:793:21
at measureLifeCyclePerf (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-dom/lib/ReactCompositeComponent.js:73:12)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-dom/lib/ReactCompositeComponent.js:792:25)
at ReactCompositeComponentWrapper._renderValidatedComponent (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-dom/lib/ReactCompositeComponent.js:819:32)
at ReactCompositeComponentWrapper.performInitialMount (/home/mastcoder/meta
[Sat Nov 11 2017 21:40:31 GMT+0530 (IST)] ERROR TypeError: validate is not a function
at Function.mapStateToProps [as mapToProps] (/home/mastcoder/metabrainz/bookbrainz-site/lib/client/entity-editor/submission-section/submission-section.js:140:14)
at mapToPropsProxy (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-redux/lib/connect/wrapMapToProps.js:54:46)
at Function.detectFactoryAndVerify (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-redux/lib/connect/wrapMapToProps.js:63:19)
at mapToPropsProxy (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-redux/lib/connect/wrapMapToProps.js:54:46)
at handleFirstCall (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-redux/lib/connect/selectorFactory.js:37:18)
at pureFinalPropsSelector (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/react-redux/lib/connect/selectorFactory.js:85:81)
at Object.runComponentSelector [as run] (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/r
router.get('/reindex', auth.isAuthenticated, (req, res) => {
const {orm} = req.app.locals;
const indexPromise = new Promise((resolve) => {
// TODO: This is hacky, and we should replace it once we switch to SOLR.
const trustedUsers = ['Leftmost Cat', 'LordSputnik', 'mastcoder'];
const NO_MATCH = -1;
if (trustedUsers.indexOf(req.user.name) === NO_MATCH) {
throw new error.PermissionDeniedError(null, req);
}
[Wed Nov 15 2017 03:26:43 GMT+0530 (IST)] ERROR { Error: Request Timeout after 30000ms
at /home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:336:15
at Timeout.<anonymous> (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:365:7)
at ontimeout (timers.js:478:11)
at tryOnTimeout (timers.js:302:5)
at Timer.listOnTimeout (timers.js:262:5)
From previous event:
at Transport.defer (/home/mastcoder/metabrainz/bookbrainz-site/lib/server/helpers/search.js:132:21)
at Transport.request (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:158:18)
at exec (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/client_action.js:351:20)
[Wed Nov 29 2017 18:05:36 GMT+0530 (IST)] ERROR { InternalOAuthError: Failed to obtain access token
at Strategy.OAuth2Strategy._createOAuthError (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/passport-oauth2/lib/strategy.js:379:17)
at /home/mastcoder/metabrainz/bookbrainz-site/node_modules/passport-oauth2/lib/strategy.js:166:45
at /home/mastcoder/metabrainz/bookbrainz-site/node_modules/oauth/lib/oauth2.js:191:18
at ClientRequest.<anonymous> (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/oauth/lib/oauth2.js:162:5)
at emitOne (events.js:125:13)
at ClientRequest.emit (events.js:221:7)
at TLSSocket.socketErrorListener (_http_client.js:389:9)
at emitOne (events.js:125:13)
at TLSSocket.emit (events.js:221:7)
GET /search/reindex - - ms - -
[Tue Dec 12 2017 13:10:47 GMT+0530 (IST)] ERROR { [index_not_found_exception] no such index, with { index_uuid="-CCRY0p7TpSg1G2KoWkg_A" & index="bookbrainz" } :: {"path":"/bookbrainz","query":{},"statusCode":404,"response":"{\"error\":{\"root_cause\":[{\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"index_uuid\":\"-CCRY0p7TpSg1G2KoWkg_A\",\"index\":\"bookbrainz\"}],\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"index_uuid\":\"-CCRY0p7TpSg1G2KoWkg_A\",\"index\":\"bookbrainz\"},\"status\":404}"}
at respond (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:289:15)
at checkRespForFailure (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/transport.js:248:7)
at HttpConnector.<anonymous> (/home/mastcoder/metabrainz/bookbrainz-site/node_modules/elasticsearch/src/lib/connectors/http.js:164:7)
at IncomingMessage.wrapper (/home/mastcoder/metabrainz/bookbrainz-
GET /search/reindex - - ms - -
[Tue Dec 12 2017 14:27:03 GMT+0530 (IST)] ERROR { [index_already_exists_exception] index [bookbrainz/AGWEMXtLQjeqFLMMvQeyww] already exists, with { index_uuid="AGWEMXtLQjeqFLMMvQeyww" & index="bookbrainz" } :: {"path":"/bookbrainz","query":{},"body":"{\"mappings\":{\"_default_\":{\"properties\":{\"defaultAlias\":{\"properties\":{\"name\":{\"fields\":{\"autocomplete\":{\"analyzer\":\"edge\",\"type\":\"text\"},\"search\":{\"analyzer\":\"trigrams\",\"type\":\"text\"}},\"type\":\"text\"}},\"type\":\"object\"}}}},\"settings\":{\"analysis\":{\"analyzer\":{\"edge\":{\"filter\":[\"asciifolding\",\"lowercase\",\"edge_filter\"],\"tokenizer\":\"standard\",\"type\":\"custom\"},\"trigrams\":{\"filter\":[\"asciifolding\",\"lowercase\"],\"tokenizer\":\"trigrams\",\"type\":\"custom\"}},\"filter\":{\"edge_filter\":{\"max_gram\":20,\"min_gram\":1,\"type\":\"edge_ngram\"}},\"tokenizer\":{\"trigrams\":{\"max_gram\":3,\"min_gram\":1,\"type\":\"ngram\"}}}}}","statusCode":400,"response":"{\"error\":{\
[2017-12-12T14:24:12,522][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] create_mapping [creator]
[2017-12-12T14:24:12,528][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] update_mapping [creator]
[2017-12-12T14:24:12,779][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] update_mapping [creator]
[2017-12-12T14:24:13,109][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] update_mapping [creator]
[2017-12-12T14:24:14,639][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] update_mapping [creator]
[2017-12-12T14:24:34,688][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] update_mapping [creator]
[2017-12-12T14:24:37,858][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFOe] [bookbrainz/9NXnuA3aRqe4YZKei-Wv5Q] update_mapping [creator]
[2017-12-12T14:24:38,378][INFO ][o.e.c.m.MetaDataMappingService] [tTxLFO