-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'headers' of undefined - server shutdown #544
Comments
Thanks - I gave that a try, but no luck, so I deleted the entire etherpad-lite directory and started with a fresh pull with git... now it just hangs after trying to start a new pad. FYI - above, I was trying to create a new auto-pad too, so there shouldn't be any cached content, right? 2012-Mar-09 13:25 : Update -- I tried with Firefox and Safari -- works. Chrome is the only one hangs at that spot. [etherpad-lite@workpad-in etherpad-lite]$ bin/run.sh |
I cleared the chrome cache for the past day, tried again, and it works. So the question now becomes... what is it about the client that fubar'd getting a reply from the server? [2012-03-09 12:27:49.609] [INFO] http - 200, GET /minified/pad.js?callback=require.define |
I was away from this for a bit, back now trying to setup MySQL connection (failed, says it cannot connect, so went back to the dirty/file-based DB). I've found I can reproduce this issue.
Looks to me like a null-pointer error due to an issue with Chrome not sending the expected headers. Etherpad-Lite shouldn't just die in this situation. [2012-04-13 06:48:57.029] [INFO] console - Your Etherpad Lite git version is 6fd73ec |
Aside, I assume the 404's on the HEAD requests for the directories are "normal", and I know the 304's on the files is just fine... question is -- can I set the logging so they are demoted to DEBUG instead of INFO? |
Is this still an issue? |
Well -- I have not seen the server shutdown after updating both Node (0.6.18) and etherpad-lite (git describe --tags |
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.
The text was updated successfully, but these errors were encountered: