{"action":"created","issue":{"url":"https://api.github.com/repos/node-red/node-red/issues/871","repository_url":"https://api.github.com/repos/node-red/node-red","labels_url":"https://api.github.com/repos/node-red/node-red/issues/871/labels{/name}","comments_url":"https://api.github.com/repos/node-red/node-red/issues/871/comments","events_url":"https://api.github.com/repos/node-red/node-red/issues/871/events","html_url":"https://github.com/node-red/node-red/issues/871","id":148866210,"number":871,"title":"Admin UI fails to load after upgrade","user":{"login":"TotallyInformation","id":1591850,"avatar_url":"https://avatars.githubusercontent.com/u/1591850?v=3","gravatar_id":"","url":"https://api.github.com/users/TotallyInformation","html_url":"https://github.com/TotallyInformation","followers_url":"https://api.github.com/users/TotallyInformation/followers","following_url":"https://api.github.com/users/TotallyInformation/following{/other_user}","gists_url":"https://api.github.com/users/TotallyInformation/gists{/gist_id}","starred_url":"https://api.github.com/users/TotallyInformation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TotallyInformation/subscriptions","organizations_url":"https://api.github.com/users/TotallyInformation/orgs","repos_url":"https://api.github.com/users/TotallyInformation/repos","events_url":"https://api.github.com/users/TotallyInformation/events{/privacy}","received_events_url":"https://api.github.com/users/TotallyInformation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-16T16:10:10Z","updated_at":"2016-04-16T16:31:49Z","closed_at":null,"body":"As noted in the Google group, I've now had several instances where the Admin UI fails to load after updating the node modules using npm update.\r\n\r\nThe list of nodes in the template sidebar does not load, neither do the flows themselves. Debug messages do appear & the rest of the interface works.\r\n\r\nClearly one of the node modules that is being loaded is failing but there are no obvious errors and it appears very difficult to be able to disable/delete nodes anyway, especially if they are in use.\r\n\r\nReference to the Google Group message: https://groups.google.com/forum/#!topic/node-red/AZFjgc31CGE\r\n\r\nI am seeing some errors in the browser so I'm not sure if that is pointing to the issue:\r\nIn Chrome:\r\n```\r\nNode-RED: 0.13.4\r\nred.min.js:16 Uncaught TypeError: Cannot set property 'added' of undefined\r\n   e.registerNodeType @ red.min.js:16\r\n   (anonymous function) @ VM2353:2\r\n   (anonymous function) @ vendor.js:2\r\n   m.extend.globalEval @ vendor.js:2\r\n   m.fn.extend.domManip @ vendor.js:4\r\n   m.fn.extend.append @ vendor.js:4\r\n   $.ajax.success @ red.min.js:16\r\n   j @ vendor.js:2k.fireWith @ vendor.js:2\r\n   x @ vendor.js:5\r\n   b @ vendor.js:5\r\n```\r\n\r\nAnd in IE11:\r\n```\r\nHTML1503: Unexpected start tag.\r\nred (23,1)\r\nHTML1508: Unmatched end tag.\r\nred (39,1)\r\nHTML1512: Unmatched end tag.\r\nred (44,195)\r\nSCRIPT5007: Unable to get property 'splice' of undefined or null reference\r\nvendor.js (427,426)\r\nNode-RED: 0.13.4\r\nSCRIPT5007: Unable to set property 'added' of undefined or null reference\r\nred.min.js (16,23936)\r\n```\r\n\r\nAnd the startup log (verbose):\r\n```\r\nApr 16 00:16:56 pi2 NR-Live2[16440]: Welcome to Node-RED\r\nApr 16 00:16:56 pi2 NR-Live2[16440]: ===================\r\nApr 16 00:16:56 pi2 NR-Live2[16440]: 16 Apr 00:16:56 - [info] Node-RED version: v0.13.4\r\nApr 16 00:16:56 pi2 NR-Live2[16440]: 16 Apr 00:16:56 - [info] Node.js  version: v4.4.2\r\nApr 16 00:16:56 pi2 NR-Live2[16440]: 16 Apr 00:16:56 - [info] Linux 4.1.19-v7+ arm LE\r\nApr 16 00:16:56 pi2 NR-Live2[16440]: 16 Apr 00:16:56 - [info] Loading palette nodes\r\nApr 16 00:17:16 pi2 NR-Live2[16440]: 16 Apr 00:17:16 - [info] UI started at /ui\r\nApr 16 00:17:18 pi2 NR-Live2[16440]: { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }\r\nApr 16 00:17:18 pi2 NR-Live2[16440]: js-bson: Failed to load c++ bson extension, using pure JS version\r\nApr 16 00:17:25 pi2 NR-Live2[16440]: 16 Apr 00:17:25 - [warn] ------------------------------------------\r\nApr 16 00:17:25 pi2 NR-Live2[16440]: 16 Apr 00:17:25 - [warn] [twitter] Error: Cannot find module 'request'\r\nApr 16 00:17:25 pi2 NR-Live2[16440]: 16 Apr 00:17:25 - [warn] ------------------------------------------\r\nApr 16 00:17:25 pi2 NR-Live2[16440]: 16 Apr 00:17:25 - [info] User directory : .nodered\r\nApr 16 00:17:25 pi2 NR-Live2[16440]: 16 Apr 00:17:25 - [info] Flows file : .nodered/flows_pi2.json\r\nApr 16 00:17:27 pi2 NR-Live2[16440]: 16 Apr 00:17:27 - [info] Starting flows\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:c67f9a9d.f73f58] repeat = 60000\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:ee17c8c9.3af858] repeat = 60000\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:f9b6b21.776805] repeat = 60000\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:5e86a8f6.46cdd8] repeat = 60000\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:F.Hall (03) Off 9am M-F] crontab = 00 9 * * 1,2,3,4\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:Landing (04) Off 9am Mo-Th] crontab = 00 9 * * 1,2,3,4\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:R Hall (02) Off 9am M-F] crontab = 00 9 * * 1,2,3,4\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:Tree (05) On 3pm Mo-Su] crontab = 00 15 * * *\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:Tree (05) On 1:12am Mo-Su] crontab = 12 01 * * *\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:F Hall (03) Off M-Su/1am] crontab = 00 01 * * *\r\nApr 16 00:17:29 pi2 NR-Live2[16440]: 16 Apr 00:17:29 - [info] [inject:R Hall (02) Off M-Su/1am] crontab = 00 01 * * *\r\nApr 16 00:17:30 pi2 NR-Live2[16440]: 16 Apr 00:17:30 - [info] [inject:Once an Hour] repeat = 3600000\r\nApr 16 00:17:31 pi2 NR-Live2[16440]: 16 Apr 00:17:31 - [info] Started flows\r\nApr 16 00:17:32 pi2 NR-Live2[16440]: 16 Apr 00:17:32 - [info] [rfx-lights-in:Listen to RFX: Lights] connecting to /dev/rfxtrx433e\r\nApr 16 00:17:32 pi2 NR-Live2[16440]: 16 Apr 00:17:32 - [info] serial port /dev/ttyAMA0 opened at 9600 baud 8N1\r\nApr 16 00:17:32 pi2 NR-Live2[16440]: 16 Apr 00:17:32 - [info] serial port /dev/arduino opened at 9600 baud 8N1\r\nApr 16 00:17:33 pi2 NR-Live2[16440]: 16 Apr 00:17:33 - [info] [mqtt-broker:3b2726f7.c4d8da] Connected to broker: Pi2_NR-Live@mqtt://localhost:1883\r\nApr 16 00:17:38 pi2 NR-Live2[16440]: 16 Apr 00:17:38 - [info] [rfx-lights-in:Listen to RFX: Lights] connected: Serial port /dev/rfxtrx433e\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/node-red/node-red/issues/comments/210851017","html_url":"https://github.com/node-red/node-red/issues/871#issuecomment-210851017","issue_url":"https://api.github.com/repos/node-red/node-red/issues/871","id":210851017,"user":{"login":"dceejay","id":5375409,"avatar_url":"https://avatars.githubusercontent.com/u/5375409?v=3","gravatar_id":"","url":"https://api.github.com/users/dceejay","html_url":"https://github.com/dceejay","followers_url":"https://api.github.com/users/dceejay/followers","following_url":"https://api.github.com/users/dceejay/following{/other_user}","gists_url":"https://api.github.com/users/dceejay/gists{/gist_id}","starred_url":"https://api.github.com/users/dceejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dceejay/subscriptions","organizations_url":"https://api.github.com/users/dceejay/orgs","repos_url":"https://api.github.com/users/dceejay/repos","events_url":"https://api.github.com/users/dceejay/events{/privacy}","received_events_url":"https://api.github.com/users/dceejay/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T16:31:49Z","updated_at":"2016-04-16T16:31:49Z","body":"Is there a node-red-node-twitter/node_modules/request directory under the /usr/lib/node_modules/node-red/node_modules directory?  "}}