{"action":"created","issue":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1220","repository_url":"https://api.github.com/repos/pencilblue/pencilblue","labels_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1220/labels{/name}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1220/comments","events_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1220/events","html_url":"https://github.com/pencilblue/pencilblue/issues/1220","id":206668572,"number":1220,"title":"uncaught Exception detected : TypeError: Cannot read property 'length' of null","user":{"login":"damo78","id":976183,"avatar_url":"https://avatars.githubusercontent.com/u/976183?v=3","gravatar_id":"","url":"https://api.github.com/users/damo78","html_url":"https://github.com/damo78","followers_url":"https://api.github.com/users/damo78/followers","following_url":"https://api.github.com/users/damo78/following{/other_user}","gists_url":"https://api.github.com/users/damo78/gists{/gist_id}","starred_url":"https://api.github.com/users/damo78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damo78/subscriptions","organizations_url":"https://api.github.com/users/damo78/orgs","repos_url":"https://api.github.com/users/damo78/repos","events_url":"https://api.github.com/users/damo78/events{/privacy}","received_events_url":"https://api.github.com/users/damo78/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-10T00:07:06Z","updated_at":"2017-02-10T00:28:25Z","closed_at":null,"body":"**Description:**\r\n(Apologies in advance, this is my first GIT issue raising)\r\nPencilBlue, which was started with node forever (sudo forever start pencilblue.js), has stopped working and will not restart.  This is on an AWS Linux instance and since it was working 2 days ago I haven't checked back until today.\r\n\r\n**Steps to Reproduce:**\r\nI cannot figure out why it stopped, but when I try to start again I get the same startup error - see log output below.\r\n\r\nI have a cloned local dev environment running the exact same code and MongoDB setup which is fully working.  It is only my AWS install that is not working.  I set this up directly on AWS and cloned to local, restoring the MongoDB to a local replica set so everything is/was completely in sync and nothing has changed.\r\n\r\n**Configuration Details:**\r\nMy app GIT repo is here:\r\nhttps://github.com/damo78/damo78\r\n\r\n`\r\nmodule.exports = {\r\n    \"siteName\": \"myApp\",\r\n    \"siteRoot\": \"myAWSHost\",\r\n    \"sitePort\": 8080,\r\n    \"logging\": {\r\n        \"level\": \"info\"\r\n    },\r\n    \"db\": {\r\n\t\"type\": \"mongo\",\r\n        \"servers\": [\r\n            \"mongodb://myMongoDBHost:27000\"\r\n        ],\r\n\t\"name\": \"clusterdb\",\r\n        \"writeConcern\": 1,\r\n        \"query_logging\": false\r\n    },\r\n    \"cache\": {\r\n\t\"fake\": true,\r\n        \"host\": \"localhost\",\r\n        \"port\": 6379\r\n    },\r\n    \"settings\": {\r\n        \"use_memory\": false,\r\n        \"use_cache\": false\r\n    },\r\n    \"templates\": {\r\n        \"use_memory\": true,\r\n        \"use_cache\": false\r\n    },\r\n    \"plugins\": {\r\n        \"caching\": {\r\n            \"use_memory\": false,\r\n            \"use_cache\": false\r\n        }\r\n    },\r\n    \"registry\": {\r\n        \"type\": \"redis\"\r\n    },\r\n    \"session\": {\r\n        \"storage\": \"mongo\"\r\n    },\r\n    \"media\": {\r\n\t\"provider\": \"mongo\",\r\n        \"max_upload_size\": 6291456\r\n    },\r\n    \"cluster\": {\r\n        \"workers\": 1,\r\n        \"self_managed\": false\r\n    },\r\n    \"multisite\": {\r\n        \"enabled\": false,\r\n        \"globalRoot\": \"http://global.localhost:8080\"\r\n    }\r\n};\r\n`\r\n\r\n**Log Output:**\r\n`\r\nforever -a start pencilblue.js \r\nwarn:    --minUptime not set. Defaulting to: 1000ms\r\nwarn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms\r\ninfo:    Forever processing file: pencilblue.js\r\n`\r\n\r\nThe above provide same log output as below in forever.log\r\n\r\n```\r\npbctrl start\r\nThe start command is deprecated. Use `npm start` instead.\r\nOverride file [/home/ec2-user/myApp/config.js] will be applied.\r\n2017-02-09T23:45:05.474Z - info: [M] SystemStartup: Log Level is: info\r\n2017-02-09T23:45:48.640Z - info: [M] PencilBlue: Ensuring indices...\r\n2017-02-09T23:45:48.887Z - error: [M] System[M]: uncaught Exception detected : TypeError: Cannot read property 'length' of null\r\n    at Function.Util.getTasks (/home/ec2-user/myApp/include/util.js:162:30)\r\n    at /home/ec2-user/myApp/include/dao/db_manager.js:312:34\r\n    at handleCallback (/home/ec2-user/myApp/node_modules/mongodb/lib/utils.js:95:56)\r\n    at /home/ec2-user/myApp/node_modules/mongodb/lib/db.js:916:28\r\n    at handleCallback (/home/ec2-user/myApp/node_modules/mongodb/lib/utils.js:95:56)\r\n    at /home/ec2-user/myApp/node_modules/mongodb/lib/cursor.js:849:22\r\n    at handleCallback (/home/ec2-user/myApp/node_modules/mongodb-core/lib/cursor.js:171:5)\r\n    at /home/ec2-user/myApp/node_modules/mongodb-core/lib/cursor.js:586:22\r\n    at queryCallback (/home/ec2-user/myApp/node_modules/mongodb-core/lib/cursor.js:212:16)\r\n    at /home/ec2-user/myApp/node_modules/mongodb-core/lib/connection/pool.js:455:18\r\n2017-02-09T23:45:49.214Z - info: [M] System[M]: Shutdown complete\r\nSuccessfully kicked off PencilBlue\r\n```\r\n\r\nPencilBlue Version: \r\n0.3.1\r\n(edit: I cannot seem to find a way to upgrade to a new version, if available, or what versions are available)\r\n\r\nNode.js Version:\r\n7.5.0\r\n\r\nEnvironment Description:\r\nAWS linux\r\nMongoDB 3.4.2"},"comment":{"url":"https://api.github.com/repos/pencilblue/pencilblue/issues/comments/278821373","html_url":"https://github.com/pencilblue/pencilblue/issues/1220#issuecomment-278821373","issue_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/1220","id":278821373,"user":{"login":"brianhyder","id":3628887,"avatar_url":"https://avatars.githubusercontent.com/u/3628887?v=3","gravatar_id":"","url":"https://api.github.com/users/brianhyder","html_url":"https://github.com/brianhyder","followers_url":"https://api.github.com/users/brianhyder/followers","following_url":"https://api.github.com/users/brianhyder/following{/other_user}","gists_url":"https://api.github.com/users/brianhyder/gists{/gist_id}","starred_url":"https://api.github.com/users/brianhyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianhyder/subscriptions","organizations_url":"https://api.github.com/users/brianhyder/orgs","repos_url":"https://api.github.com/users/brianhyder/repos","events_url":"https://api.github.com/users/brianhyder/events{/privacy}","received_events_url":"https://api.github.com/users/brianhyder/received_events","type":"User","site_admin":false},"created_at":"2017-02-10T00:28:25Z","updated_at":"2017-02-10T00:28:25Z","body":"Also, thank you for taking the time to follow the guidelines for submitting issues. It really does make it easier to provide support. So a big thank you for reporting your issue! "}}
{"actor":{"display_login":"brianhyder"}}