Friday, August 24, 2012

A Errno::EEXIST occurred, File Exists

Ran across an error after deploying a rails app to production:

A Errno::EEXIST occurred in home#index:
  File exists - ...
In the stacktrace, I noticed that it was using fileutils trying to mkdir (create a directory) for file caching. Normally this wouldn't matter, except the directory it was attempting to create was a broken symlink to a non-existent directory.

Simple Solution: Manually mkdir the directory that is being symlinked to.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. What directory did you manually create? Having the same problem.

    ReplyDelete