Forum Bugs

Broken Pipe - with Litespeed/Production - problem and fix

colindensem
HI,

We've been testing prince and really like how it's changed our pdf generation.

Ok so we put our dev code into production on an ubuntu dapper box and it failed to generate the pdf's. I should say at this point I'm using the princley plugin and view helper to generate the pdf's. Ok so the broken pipe, I think it's a litespeed thing, but in effect because msttcorefonts are missing the pipe is broken so no pdf comes out. Using debug on the cmd line is ok, apart from the

Fontconfig warning: no <cachedir> elements found. Check configuration.
Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
Fontconfig warning: adding <cachedir>~/.fontconfig</cachedir>


So after enabling multiverse, updating then installing the fonts it's all working.

For reference as I'm in a rush (goes live in < 48 hours) here are some links with other possible and maybe better approaches than using rubys IO.popen, they are untested by me.

Hope this helps somebody else soon.

If it's a bug, then it's only because it needs multiverse package, maybe not an issue beyond dapper.
colindensem