trim-freecodecamp-rooms cron failing
trim-freecodecamp-rooms
cron is failing because https://gitter.im/FreeCodeCamp/FreeCodeCamp no longer exists.
PagerDuty alert: https://gitter.pagerduty.com/incidents/P54SRPD
webapp-01: Cron "/usr/local/bin/trim-freecodecamp-rooms" failed with 5 Apr 11:00:03 - opening socket: ws://cube.prod.gitter:1080/1.0/event/put Connecting to redis at '10.0.1.137' port '6379' Cronlock cronlock.42c655cfff4e4daa1feb849d8b3c93f5 was already acquired but expired 3559s ago ERROR IS[TypeError: Cannot read property 'id' of null]
ERROR IS TypeError: Cannot read property 'id' of null
at handleRoom (/opt/gitter/gitter-webapp/scripts/utils/auto-remove-from-room.js:55:62)
at tryCatcher (/opt/gitter/gitter-webapp/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/gitter/gitter-webapp/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/opt/gitter/gitter-webapp/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/opt/gitter/gitter-webapp/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/opt/gitter/gitter-webapp/node_modules/bluebird/js/release/promise.js:6
Solution
-
Remove FreeCodeCamp/FreeCodeCamp
fromtrim-freecodecamp-rooms
-
Update webapp/scripts/utils/auto-remove-from-room.js
to handle non-existent rooms and output log warning
Edited by Eric Eastwood