Pita/etherpad-lite — Issue #544: Cannot read property 'headers' of undefined - server shutdown
Author: timcolson
Created: 2012-03-09 15:15:44+00:00
State: open

This is a fresh install on Linux. DirtyDB. Service setup and started.

Log below...with additional logging added by me inside caching_middleware.js

145 function respond() {
146 req.method = old_req.method || req.method;
147 res.write = old_res.write || res.write;
148 res.end = old_res.end || res.end;
149 apiLogger.debug("TCOLSON:In the respond function...");
150 if (!(cacheKey in responseCache) ) { // Tim Colson check for hash key exists
151 //cacheKey = "TBD";
152 apiLogger.debug("TCOLSON:cacheKey("+cacheKey+") is not in responseCache");
153
154 }
155 var headers = responseCache[cacheKey].headers;

[2012-03-09 07:13:31.162] [INFO] console - Your Etherpad Lite git version is 6fd73ec
[2012-03-09 07:13:31.163] [INFO] console - Report bugs at https://github.com/Pita/etherpad-lite/issues
[2012-03-09 07:13:34.818] [INFO] console - Server is listening at 0.0.0.0:9001
[2012-03-09 07:13:34.819] [INFO] console - info - 'socket.io started'
[2012-03-09 07:13:38.100] [DEBUG] ueberDB - GET - pad:xfm52tVIYC - undefined - from database
[2012-03-09 07:13:38.118] [INFO] http - 200, GET /p/xfm52tVIYC
[2012-03-09 07:13:42.705] [DEBUG] socket.io - served static content /socket.io.js
[2012-03-09 07:13:44.310] [INFO] http - 304, HEAD /static/js/jquery.js
[2012-03-09 07:13:44.311] [INFO] http - 304, HEAD /static/js/security.js
[2012-03-09 07:13:44.311] [INFO] http - 304, HEAD /static/js/pad.js
[2012-03-09 07:13:44.311] [INFO] http - 304, HEAD /static/js/ace2_common.js
[2012-03-09 07:13:44.311] [INFO] http - 304, HEAD /static/js/pad_utils.js
[2012-03-09 07:13:44.313] [INFO] http - 304, HEAD /static/js/plugins.js
[2012-03-09 07:13:44.314] [INFO] http - 304, HEAD /static/js/undo-xpopup.js
[2012-03-09 07:13:44.314] [INFO] http - 304, HEAD /static/js/json2.js
[2012-03-09 07:13:44.314] [INFO] http - 304, HEAD /static/js/pad_cookie.js
[2012-03-09 07:13:44.314] [INFO] http - 304, HEAD /static/js/pad_editor.js
[2012-03-09 07:13:44.316] [INFO] http - 304, HEAD /static/js/pad_editbar.js
[2012-03-09 07:13:44.316] [INFO] http - 304, HEAD /static/js/pad_docbar.js
[2012-03-09 07:13:44.316] [INFO] http - 304, HEAD /static/js/pad_modals.js
[2012-03-09 07:13:44.317] [INFO] http - 304, HEAD /static/js/collab_client.js
[2012-03-09 07:13:44.318] [INFO] http - 304, HEAD /static/js/ace.js
[2012-03-09 07:13:44.319] [INFO] http - 304, HEAD /static/js/pad_userlist.js
[2012-03-09 07:13:44.319] [INFO] http - 304, HEAD /static/js/pad_impexp.js
[2012-03-09 07:13:44.319] [INFO] http - 304, HEAD /static/js/pad_savedrevs.js
[2012-03-09 07:13:44.319] [INFO] http - 304, HEAD /static/js/pad_connectionstatus.js
[2012-03-09 07:13:44.321] [INFO] http - 304, HEAD /static/js/chat.js
[2012-03-09 07:13:44.321] [INFO] http - 304, HEAD /static/js/excanvas.js
[2012-03-09 07:13:44.321] [INFO] http - 304, HEAD /static/js/farbtastic.js
[2012-03-09 07:13:44.321] [INFO] http - 304, HEAD /static/js/prefixfree.js
[2012-03-09 07:13:44.322] [INFO] http - 404, HEAD /static/js/jquery
[2012-03-09 07:13:44.323] [INFO] http - 404, HEAD /static/js/security
[2012-03-09 07:13:44.324] [INFO] http - 404, HEAD /static/js/pad
[2012-03-09 07:13:44.324] [INFO] http - 404, HEAD /static/js/ace2_common
[2012-03-09 07:13:44.324] [INFO] http - 404, HEAD /static/js/pad_utils
[2012-03-09 07:13:44.324] [INFO] http - 404, HEAD /static/js/plugins
[2012-03-09 07:13:44.326] [INFO] http - 404, HEAD /static/js/undo-xpopup
[2012-03-09 07:13:44.326] [INFO] http - 404, HEAD /static/js/json2
[2012-03-09 07:13:44.326] [INFO] http - 404, HEAD /static/js/pad_cookie
[2012-03-09 07:13:44.326] [INFO] http - 404, HEAD /static/js/pad_editor
[2012-03-09 07:13:44.327] [INFO] http - 404, HEAD /static/js/pad_editbar
[2012-03-09 07:13:44.328] [INFO] http - 404, HEAD /static/js/pad_docbar
[2012-03-09 07:13:44.328] [INFO] http - 404, HEAD /static/js/pad_modals
[2012-03-09 07:13:44.329] [INFO] http - 404, HEAD /static/js/ace
[2012-03-09 07:13:44.329] [INFO] http - 404, HEAD /static/js/collab_client
[2012-03-09 07:13:44.329] [INFO] http - 404, HEAD /static/js/pad_userlist
[2012-03-09 07:13:44.331] [INFO] http - 404, HEAD /static/js/pad_impexp
[2012-03-09 07:13:44.331] [INFO] http - 404, HEAD /static/js/pad_savedrevs
[2012-03-09 07:13:44.331] [INFO] http - 404, HEAD /static/js/pad_connectionstatus
[2012-03-09 07:13:44.331] [INFO] http - 404, HEAD /static/js/chat
[2012-03-09 07:13:44.331] [INFO] http - 404, HEAD /static/js/excanvas
[2012-03-09 07:13:44.333] [INFO] http - 404, HEAD /static/js/farbtastic
[2012-03-09 07:13:44.333] [INFO] http - 404, HEAD /static/js/prefixfree
[2012-03-09 07:13:44.334] [DEBUG] cacheing_middleware - TCOLSON:In the respond function...
[2012-03-09 07:13:44.334] [DEBUG] cacheing_middleware - TCOLSON:cacheKey(L21pbmlmaWVkL3BhZC5qcz9jYWxsYmFjaz1yZXF1aXJlLmRlZmluZQ) is not in responseCache
[2012-03-09 07:13:44.337] [ERROR] console - TypeError: Cannot read property 'headers' of undefined
at respond (/apps/share/etherpad-lite/node/utils/caching_middleware.js:155:39)
at ServerResponse. (/apps/share/etherpad-lite/node/utils/caching_middleware.js:133:48)
at /apps/share/etherpad-lite/node_modules/yajsml/server.js:384:18
at /apps/share/etherpad-lite/node_modules/yajsml/server.js:435:13
at completed (/apps/share/etherpad-lite/node_modules/yajsml/request.js:279:5)
at /apps/share/etherpad-lite/node_modules/yajsml/request.js:266:9
at IncomingMessage. (/apps/share/etherpad-lite/node_modules/yajsml/request.js:248:20)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at Socket.ondata (http.js:1150:24)
[2012-03-09 07:13:44.337] [INFO] console - graceful shutdown...
[2012-03-09 07:13:44.337] [INFO] console - db sucessfully closed.