The Right Fix

by John Samuel Anderson last modified Jan 15, 2009 01:56 AM
Determining the correct course of action to solve this problem.

Possible Fixes

We've identified and located the problem.  In this case, there are two possible solutions.

Simply delete the file

First, we need to know where this .layout file came from.  After searching with both find and grep, I can't find anything interesting in the codebase.  (Once I excluded names like "plone.app.layout" and a lot of CSS files, that is.)

The contents of the file is simply one word: "lawn".  I'm guessing it's not terribly important.  Still, perhaps I should check with the server admins, in case their scripts are responsible.

Patch the blobstorage package to handle unexpected files and folders

 Arguably, there shouldn't be any weird files or folders in the blobstorage base directory.  (Other than tmp, that is.)  However, in the real world, there might just be.  Some other time, I might do this.  For now, that's enough debugging. :)

Problem Solved!

After deleting the errant file, I was able to run the pack operation again.  This time, it completed without any problems.

Cleanup

When you are finished debugging, don't forget to:

  • remove Pdb set_trace() statements
  • return your buildout to the previous (unsimplified) configuration
  • cleanup any other mess you may have made along the way