{"issue":{"created_at":"2011-12-11T16:40:03Z","state":"open","updated_at":"2011-12-13T10:55:14Z","user":{"gravatar_id":"c92537aa169c058c0cf146595ef6d947","id":1025243,"url":"https://api.github.com/users/gasova","login":"gasova","avatar_url":"https://secure.gravatar.com/avatar/c92537aa169c058c0cf146595ef6d947?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"Before anything, I followed all steps but without success.\r\n\r\nI googled and found similar problems  but no working solution. Same issue with wicked_pdf \r\n\r\nI'm on Linux CentOS  5 with Rails 3.0.10 and Apache 2 with Phusion Passenger \r\n\r\nwkhtmltopdf is setup and works perfectly on the linux prompt. \r\nI'm able to generate a pdf with wkhtmltopdf http://www.google.com google.pdf without any issue.\r\n\r\nWhen I try to generate a PDF I have the error : Errno::EPIPE (Broken pipe):\r\nthe html renders well but pdf fails.\r\n\r\nCan somebody help me please? \r\n\r\nMy Full log : \r\n\r\ntarted GET \"/posts/cesur-bir-hasmin-ardindan.pdf\" for 85.105.12.197 at 2011-12-11 17:36:57 +0200\r\n  Processing by PostsController#show as HTML\r\n  Parameters: {\"id\"=>\"cesur-bir-hasmin-ardindan\"}\r\n  Post Load (2.0ms)  SELECT `posts`.* FROM `posts` WHERE `posts`.`cached_slug` = 'cesur-bir-hasmin-ardindan' LIMIT 1\r\n  Dashboard Load (0.2ms)  SELECT `dashboards`.* FROM `dashboards`\r\n  Post Load (0.3ms)  SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 248\r\n  Author Load (0.3ms)  SELECT `authors`.* FROM `authors` INNER JOIN `authorships` ON `authors`.id = `authorships`.author_id WHERE ((`authorships`.post_id = 248)) LIMIT 1\r\n  Column Load (0.2ms)  SELECT `columns`.* FROM `columns` WHERE `columns`.`id` = 16\r\n  CACHE (0.0ms)  SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 248\r\n  CACHE (0.0ms)  SELECT `authors`.* FROM `authors` INNER JOIN `authorships` ON `authors`.id = `authorships`.author_id WHERE ((`authorships`.post_id = 248)) LIMIT 1\r\n  Post Load (6.2ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 30)) ORDER BY published_at DESC LIMIT 3\r\n  CACHE (0.0ms)  SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 248\r\n  CACHE (0.0ms)  SELECT `authors`.* FROM `authors` INNER JOIN `authorships` ON `authors`.id = `authorships`.author_id WHERE ((`authorships`.post_id = 248)) LIMIT 1\r\n  SQL (0.4ms)  SELECT COUNT(*) FROM `comments` WHERE `comments`.`post_id` = 248 AND `comments`.`status` = 1\r\n  CACHE (0.0ms)  SELECT `dashboards`.* FROM `dashboards`\r\n  CACHE (0.0ms)  SELECT `dashboards`.* FROM `dashboards`\r\n  Banner Load (0.2ms)  SELECT `banners`.* FROM `banners` ORDER BY id ASC\r\n  Author Load (0.5ms)  SELECT `authors`.* FROM `authors` WHERE (id > 1) ORDER BY name ASC\r\n  Post Load (1.3ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 46)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (2.1ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 45)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.3ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 53)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.7ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 44)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.4ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 43)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.7ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 20)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.3ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 52)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.1ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 41)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.1ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 10)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.5ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 39)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.1ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 35)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.3ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 34)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.3ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 42)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (6.0ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 30)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.6ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 54)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.7ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 33)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (2.5ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 36)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.5ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 38)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.1ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 32)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.3ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 55)) ORDER BY published_at DESC LIMIT 1\r\n  Post Load (1.0ms)  SELECT `posts`.* FROM `posts` INNER JOIN `authorships` ON `posts`.id = `authorships`.post_id WHERE ((`authorships`.author_id = 37)) ORDER BY published_at DESC LIMIT 1\r\n  SQL (0.3ms)  SELECT COUNT(*) FROM `authors` WHERE (id > 1)\r\n  Category Load (0.2ms)  SELECT `categories`.* FROM `categories`\r\nRendered posts/show.html.erb within layouts/public (125.8ms)\r\nCompleted 200 OK in 130ms (Views: 82.6ms | ActiveRecord: 53.2ms)\r\n\r\nErrno::EPIPE (Broken pipe):\r\n","assignee":null,"id":2516476,"number":121,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Errno::EPIPE (Broken pipe):","html_url":"https://github.com/jdpace/PDFKit/issues/121","closed_at":null,"url":"https://api.github.com/repos/jdpace/PDFKit/issues/121","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T10:55:13Z","updated_at":"2011-12-13T10:55:13Z","user":{"gravatar_id":"c92537aa169c058c0cf146595ef6d947","id":1025243,"url":"https://api.github.com/users/gasova","login":"gasova","avatar_url":"https://secure.gravatar.com/avatar/c92537aa169c058c0cf146595ef6d947?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"No one has an idea on this ?\r\nplease help, it isn't an authentication issue because it's implemented on a plublic page without any login needed. \r\nThe binary wkhtmltopdf works great stand alone in my prompt but when called from my project, it throws Erno:EPIPE (Broken pipe) with no reason. ","id":3121573,"url":"https://api.github.com/repos/jdpace/PDFKit/issues/comments/3121573"}}