trudesk ticketing system stoped working suddenly
11/23 07:18:15 [3112] - �[32minfo�[39m: trudesk v1.0.2 Copyright (C) 2014-2018 Chris Brame
11/23 07:18:15 [3112] - �[32minfo�[39m:
11/23 07:18:15 [3112] - �[32minfo�[39m: Running in: development
11/23 07:18:15 [3112] - �[32minfo�[39m: Server Time: Fri Nov 23 2018 07:18:15 GMT+0000 (Coordinated Universal Time)
11/23 07:18:16 [3112] - �[32minfo�[39m: Connected to MongoDB
11/23 07:18:19 [3112] - �[32minfo�[39m: TruDesk is now listening on port: 8118
11/23 07:18:19 [3112] - �[32minfo�[39m: SocketServer Running
11/23 07:18:20 [3112] - �[34mdebug�[39m: Checking Default Settings...
11/23 07:18:20 [3112] - �[34mdebug�[39m: Timezone set to America/New_York
TypeError: Cannot read property '_id' of undefined
at C:Program FilesiCuboidtrudesk-mastersrcsettingsdefaults.js:109:33
at C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibmodel.js:4451:16
at model.Query.(anonymous function).call (C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibquery.js:3606:7)
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:315:21
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:135:16
at args.(anonymous function) (C:USERSICUBOIDAPPDATAROAMINGNPMnode_modulespm2node_modulesevent-loop-inspectorindex.js:138:29)
at process._tickCallback (internal/process/next_tick.js:112:11)`
i am using trudesk node js web application.
its using mongo db as database.i installed in my local its working .but in server on running the app i am getting this error
node.js pm2
add a comment |
11/23 07:18:15 [3112] - �[32minfo�[39m: trudesk v1.0.2 Copyright (C) 2014-2018 Chris Brame
11/23 07:18:15 [3112] - �[32minfo�[39m:
11/23 07:18:15 [3112] - �[32minfo�[39m: Running in: development
11/23 07:18:15 [3112] - �[32minfo�[39m: Server Time: Fri Nov 23 2018 07:18:15 GMT+0000 (Coordinated Universal Time)
11/23 07:18:16 [3112] - �[32minfo�[39m: Connected to MongoDB
11/23 07:18:19 [3112] - �[32minfo�[39m: TruDesk is now listening on port: 8118
11/23 07:18:19 [3112] - �[32minfo�[39m: SocketServer Running
11/23 07:18:20 [3112] - �[34mdebug�[39m: Checking Default Settings...
11/23 07:18:20 [3112] - �[34mdebug�[39m: Timezone set to America/New_York
TypeError: Cannot read property '_id' of undefined
at C:Program FilesiCuboidtrudesk-mastersrcsettingsdefaults.js:109:33
at C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibmodel.js:4451:16
at model.Query.(anonymous function).call (C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibquery.js:3606:7)
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:315:21
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:135:16
at args.(anonymous function) (C:USERSICUBOIDAPPDATAROAMINGNPMnode_modulespm2node_modulesevent-loop-inspectorindex.js:138:29)
at process._tickCallback (internal/process/next_tick.js:112:11)`
i am using trudesk node js web application.
its using mongo db as database.i installed in my local its working .but in server on running the app i am getting this error
node.js pm2
add a comment |
11/23 07:18:15 [3112] - �[32minfo�[39m: trudesk v1.0.2 Copyright (C) 2014-2018 Chris Brame
11/23 07:18:15 [3112] - �[32minfo�[39m:
11/23 07:18:15 [3112] - �[32minfo�[39m: Running in: development
11/23 07:18:15 [3112] - �[32minfo�[39m: Server Time: Fri Nov 23 2018 07:18:15 GMT+0000 (Coordinated Universal Time)
11/23 07:18:16 [3112] - �[32minfo�[39m: Connected to MongoDB
11/23 07:18:19 [3112] - �[32minfo�[39m: TruDesk is now listening on port: 8118
11/23 07:18:19 [3112] - �[32minfo�[39m: SocketServer Running
11/23 07:18:20 [3112] - �[34mdebug�[39m: Checking Default Settings...
11/23 07:18:20 [3112] - �[34mdebug�[39m: Timezone set to America/New_York
TypeError: Cannot read property '_id' of undefined
at C:Program FilesiCuboidtrudesk-mastersrcsettingsdefaults.js:109:33
at C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibmodel.js:4451:16
at model.Query.(anonymous function).call (C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibquery.js:3606:7)
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:315:21
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:135:16
at args.(anonymous function) (C:USERSICUBOIDAPPDATAROAMINGNPMnode_modulespm2node_modulesevent-loop-inspectorindex.js:138:29)
at process._tickCallback (internal/process/next_tick.js:112:11)`
i am using trudesk node js web application.
its using mongo db as database.i installed in my local its working .but in server on running the app i am getting this error
node.js pm2
11/23 07:18:15 [3112] - �[32minfo�[39m: trudesk v1.0.2 Copyright (C) 2014-2018 Chris Brame
11/23 07:18:15 [3112] - �[32minfo�[39m:
11/23 07:18:15 [3112] - �[32minfo�[39m: Running in: development
11/23 07:18:15 [3112] - �[32minfo�[39m: Server Time: Fri Nov 23 2018 07:18:15 GMT+0000 (Coordinated Universal Time)
11/23 07:18:16 [3112] - �[32minfo�[39m: Connected to MongoDB
11/23 07:18:19 [3112] - �[32minfo�[39m: TruDesk is now listening on port: 8118
11/23 07:18:19 [3112] - �[32minfo�[39m: SocketServer Running
11/23 07:18:20 [3112] - �[34mdebug�[39m: Checking Default Settings...
11/23 07:18:20 [3112] - �[34mdebug�[39m: Timezone set to America/New_York
TypeError: Cannot read property '_id' of undefined
at C:Program FilesiCuboidtrudesk-mastersrcsettingsdefaults.js:109:33
at C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibmodel.js:4451:16
at model.Query.(anonymous function).call (C:Program FilesiCuboidtrudesk-masternode_modulesmongooselibquery.js:3606:7)
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:315:21
at C:Program FilesiCuboidtrudesk-masternode_moduleskareemindex.js:135:16
at args.(anonymous function) (C:USERSICUBOIDAPPDATAROAMINGNPMnode_modulespm2node_modulesevent-loop-inspectorindex.js:138:29)
at process._tickCallback (internal/process/next_tick.js:112:11)`
i am using trudesk node js web application.
its using mongo db as database.i installed in my local its working .but in server on running the app i am getting this error
node.js pm2
node.js pm2
asked Nov 23 '18 at 11:05
ebkebk
307
307
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I ran into this issue a while ago when I was messing around with the database. I got around it by validating the object that's referenced in srcsettingsdefaults.js at line 109 (according to the error above and the github repo at this time).
You can see the issue in code, where type._id is referenced. You need to confirm that type is an object and that _id is a string. Starting at line 107:
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
Change that so validation of the object happens before the object's keys are referenced:
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
add a comment |
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
Although this is a valid check, the return is not calling the callback
thus preventing the default script from completing an exiting correctly. Also _id
may not always read as a string and the value
is of Mixed type.
if (!_.isObject(type) || _.isUndefined(type._id)) return callback('Invalid Type. Skipping.')
I've added the above check to the codebase. The reference function is called if it detects the default ticket type setting is not present. This should only occur on the first startup unless manually removing/updating documents from MongoDB.
add a comment |
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445511%2ftrudesk-ticketing-system-stoped-working-suddenly%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I ran into this issue a while ago when I was messing around with the database. I got around it by validating the object that's referenced in srcsettingsdefaults.js at line 109 (according to the error above and the github repo at this time).
You can see the issue in code, where type._id is referenced. You need to confirm that type is an object and that _id is a string. Starting at line 107:
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
Change that so validation of the object happens before the object's keys are referenced:
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
add a comment |
I ran into this issue a while ago when I was messing around with the database. I got around it by validating the object that's referenced in srcsettingsdefaults.js at line 109 (according to the error above and the github repo at this time).
You can see the issue in code, where type._id is referenced. You need to confirm that type is an object and that _id is a string. Starting at line 107:
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
Change that so validation of the object happens before the object's keys are referenced:
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
add a comment |
I ran into this issue a while ago when I was messing around with the database. I got around it by validating the object that's referenced in srcsettingsdefaults.js at line 109 (according to the error above and the github repo at this time).
You can see the issue in code, where type._id is referenced. You need to confirm that type is an object and that _id is a string. Starting at line 107:
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
Change that so validation of the object happens before the object's keys are referenced:
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
I ran into this issue a while ago when I was messing around with the database. I got around it by validating the object that's referenced in srcsettingsdefaults.js at line 109 (according to the error above and the github repo at this time).
You can see the issue in code, where type._id is referenced. You need to confirm that type is an object and that _id is a string. Starting at line 107:
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
Change that so validation of the object happens before the object's keys are referenced:
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
var defaultTicketType = new SettingsSchema({
name: 'ticket:type:default',
value: type._id
});
answered Dec 4 '18 at 19:26
jarederajjarederaj
9921017
9921017
add a comment |
add a comment |
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
Although this is a valid check, the return is not calling the callback
thus preventing the default script from completing an exiting correctly. Also _id
may not always read as a string and the value
is of Mixed type.
if (!_.isObject(type) || _.isUndefined(type._id)) return callback('Invalid Type. Skipping.')
I've added the above check to the codebase. The reference function is called if it detects the default ticket type setting is not present. This should only occur on the first startup unless manually removing/updating documents from MongoDB.
add a comment |
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
Although this is a valid check, the return is not calling the callback
thus preventing the default script from completing an exiting correctly. Also _id
may not always read as a string and the value
is of Mixed type.
if (!_.isObject(type) || _.isUndefined(type._id)) return callback('Invalid Type. Skipping.')
I've added the above check to the codebase. The reference function is called if it detects the default ticket type setting is not present. This should only occur on the first startup unless manually removing/updating documents from MongoDB.
add a comment |
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
Although this is a valid check, the return is not calling the callback
thus preventing the default script from completing an exiting correctly. Also _id
may not always read as a string and the value
is of Mixed type.
if (!_.isObject(type) || _.isUndefined(type._id)) return callback('Invalid Type. Skipping.')
I've added the above check to the codebase. The reference function is called if it detects the default ticket type setting is not present. This should only occur on the first startup unless manually removing/updating documents from MongoDB.
if (typeof type !== 'object' || typeof type._id !== 'string' ) return;
Although this is a valid check, the return is not calling the callback
thus preventing the default script from completing an exiting correctly. Also _id
may not always read as a string and the value
is of Mixed type.
if (!_.isObject(type) || _.isUndefined(type._id)) return callback('Invalid Type. Skipping.')
I've added the above check to the codebase. The reference function is called if it detects the default ticket type setting is not present. This should only occur on the first startup unless manually removing/updating documents from MongoDB.
edited Jan 30 at 21:37
answered Jan 30 at 18:57
ChrisChris
140114
140114
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445511%2ftrudesk-ticketing-system-stoped-working-suddenly%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown