timeoff-management-application icon indicating copy to clipboard operation
timeoff-management-application copied to clipboard

Crash using LDAP

Open vitas opened this issue 6 years ago • 2 comments

I have configured LDAP auth what works fine, but the app crashes after few minutes without any error in UI. Strange as configuration is correct and user can login and use the app

events.js:165 throw er; // Unhandled 'error' event ^

Error: read ECONNRESET at TCP.onread (net.js:602:25) Emitted 'error' event at: at LdapAuth._handleError (/opt/sonar/timeoff-management/node_modules/ldapauth-fork/lib/ldapauth.js:171:8) at Client.emit (events.js:180:13) at Socket.onSocketError (/opt/sonar/timeoff-management/node_modules/ldapjs/lib/client/client.js:1169:12) at Socket.emit (events.js:180:13) at emitErrorNT (internal/streams/destroy.js:64:8) at process._tickCallback (internal/process/next_tick.js:178:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: node bin/wwww npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

vitas avatar Feb 15 '19 16:02 vitas

this happens if AD closes connection and the app tries to delete the session

vitas avatar Feb 18 '19 14:02 vitas

hi @vitas, to mitigate the issue one can use node bin/wwww_cluster so app runs as cluster of processes rather then single one, and eash failing one is restrted automatically.

vpp avatar Feb 18 '19 15:02 vpp