0xelouardi

Postmortem

Ayoub ElOuardi
Table of Contents

dead horse

Issue Summary #

Shortly after deploying a new feature to our recently launched Ruby on Rails site, we encountered a significant issue. Five minutes post-deployment, users began reporting that they were unable to sign in or sign up to our platform. This was unexpected, as the feature had been thoroughly tested and worked flawlessly in our development environments. We received a total of 127 complaints via email, which was alarming given the importance of user retention for our newly launched platform. Determined to resolve the issue promptly, we cloned the repository from GitBug and attempted to set up the site locally. To our surprise, the site failed to start. The root cause was quickly identified: we had neglected to update the project requirements. The site was down from 9:55 AM GMT+1 to 11:20 AM GMT+1 today.


Timeline #


Root Cause And Resolution #

The problem stemmed from using an outdated version of the bcrypt gem, which was incompatible with the hash generation method we employed. This incompatibility caused the gem to reject valid hashes stored in our database. Winus resolved the issue by updating the bcrypt gem to a newer version in the Gemfile.lock and reinstalling the necessary gems, which restored full functionality to the site.


Corrective And Preventative Measures #