We've got 2 Magento sites, one is CE and the other is EE I can apply all of the CE site patches locally on my Mac without issue. When I try to apply the patches against the same codebase sitting on a Debian server, they fail with many "Hunk x FAILED at x" errors. I've compared the files against a vanilla Magento installation using FileMerge and there aren't any differences. This is starting with the chronologically first patch and occurs on every patch through the latest 7405 and 7616 patches. That rules out the problem being that previous patches weren't applied.


I'm not having issues applying the EE versions of these patches to our EE site in our Debian environment.

Any idea what the problem could be? At first I thought it could be the patch scripts detecting some kind of hidden line ending or character return differences that are missed/ignored on OS X. Finding that I'm not having the same issue on the EE site kind of squashes that theory.

  • Can you check if you have present in both systems the app/etc/applied.patches.list file? – MauroNigrele Jan 22 '16 at 0:21
  • I do, and I can tell which patches have been applied by running the scripts and seeing it in the output – dfran02 Jan 22 '16 at 15:49

OK just for the record, line endings were set to Windows-style. I changed line endings to Unix-style for the site and all patches applied successfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.