Content Deep Dive
Ably Debugging Tales - A Mystery in Elixir
Blog post from Ably
Post Details
Company
Date Published
Author
Simon Woolf
Word Count
1,422
Language
English
Hacker News Points
-
Source URL
Summary
In this story, a misbehaving Elixir application was causing an internal server error instead of a 404 not found error in production. The issue was traced back to the logger crashing due to an undefined inspect function when called with an empty list. After further investigation and help from the Elixir community, it was discovered that the problem stemmed from a maintenance script cleaning up files in /tmp, which marked certain BEAM files as deleted if they had not yet been loaded by the Erlang VM at the time of cleanup. The fix involved moving the OverlayFS upper directories out of /tmp to prevent this issue.