{"issue":{"milestone":null,"user":{"id":1233394,"login":"Lordtias","url":"https://api.github.com/users/Lordtias","avatar_url":"https://secure.gravatar.com/avatar/9ae781742ea86dcd106d29af321a122e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9ae781742ea86dcd106d29af321a122e"},"title":"Internal error.","created_at":"2011-12-15T17:23:25Z","updated_at":"2011-12-19T12:30:32Z","labels":[],"state":"open","id":2569744,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/amartel/redmine_pdf_wiki/issues/9","closed_at":null,"body":"hi Martel\r\n\r\nI couldn't test what you told me in the other issue, I had to change the Linux's distribution (I was using Fedora, and now i use Debian). The problem is that when I click 'PFD' the browser shows me this:\r\n\r\n Internal error\r\n\r\n An error occurred on the page you were trying to access.\r\n If you continue to experience problems please contact your Redmine administrator for # assistance.\r\n\r\nIf you are the Redmine administrator, check your log files for details about the error.\r\n\r\nAnd when I go to check redmine's log I get the following :\r\n\r\nActionController::MissingFile (Cannot read file /usr/share/redmine/tmp/wiki2pdf/1518sb4bu.pdf):\r\n  vendor/plugins/redmine_pdf_wiki/app/controllers/wikitopdf_controller.rb:70:in `to_pdf'\r\n  vendor/plugins/redmine_pdf_wiki/app/controllers/wikitopdf_controller.rb:10:in `export'\r\n  /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'\r\n  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'\r\n  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'\r\n  /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'\r\n  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'\r\n  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'\r\n  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'\r\n  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'\r\n  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'\r\n  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'\r\n  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'\r\n\"/usr/share/redmine/log/production.log\" 2617L, 181379C\r\n\r\nI think I have the permits  configured correctly, especially tmp's permits, and I Installed the htmltopdf using the next command: \r\n\r\naptitude install wkhtmltopdf\r\n\r\nWith this command i got  version 0.9.9.\r\nOn the other hand, the plug-in's configuration is ok.\r\n\r\nThx for the help.","number":9,"url":"https://api.github.com/repos/amartel/redmine_pdf_wiki/issues/9","comments":2,"assignee":null},"comment":{"user":{"id":1233394,"login":"Lordtias","url":"https://api.github.com/users/Lordtias","avatar_url":"https://secure.gravatar.com/avatar/9ae781742ea86dcd106d29af321a122e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9ae781742ea86dcd106d29af321a122e"},"created_at":"2011-12-19T12:30:31Z","updated_at":"2011-12-19T12:30:31Z","id":3202578,"body":"Hi.\r\n\r\n\"- The user who run wkthml2pdf (usually the web server) is not allowed to write file in the tempdir\"\r\n\r\nI have full permits for the tmp directory, and the user that uses the web server is the owner of this directory (and subdirectory).\r\n\r\ndrwxrwxrwx  9 www-data www-data 4096 dic 15 10:31 .\r\ndrwxrwxrwx 16 root     admin    4096 dic 15 12:25 ..\r\ndrwxrwxrwx  3 www-data www-data 4096 dic 12 11:53 cache\r\ndrwxrwxrwx  2 www-data www-data 4096 dic 13 13:40 passenger\r\ndrwxrwxrwx  3 www-data www-data 4096 dic 12 11:53 sessions\r\ndrwxrwxrwx  3 www-data www-data 4096 dic 12 11:53 sockets\r\ndrwxrwxrwx  6 www-data www-data 4096 dic 12 11:54 .svn\r\ndrwxrwxrwx  3 www-data www-data 4096 dic 12 11:53 test\r\ndrwxrwxrwx  2 www-data www-data 4096 dic 16 11:09 wiki2pdf\r\n\r\n\"The command line used to run wkhtml2pdf is not good. I suggest you to test it from a terminal (I'm using 0.10.0 rc2 and your version may not recognize all options...)\"\r\n\r\nI tested the command line in the console converting 'www.google.com' and i didn't have any errors.\r\nBut I'm testing if 0.10 version works, like you say.\r\n\r\n/usr/sbin/wkhtmltopdf --print-media-type --no-outline --output-format pdf --user-style-sheet /usr/share/redmine/vendor/plugins/redmine_pdf_wiki/pdf.css index.html aa.pdf\r\nLoading pages (1/6)\r\nCounting pages (2/6)                                               \r\nResolving links (4/6)                                                       \r\nLoading headers and footers (5/6)                                           \r\nPrinting pages (6/6)\r\nDone  \r\n\r\nThx for the help.\r\nKind regards.\r\n\r\nMatias.","url":"https://api.github.com/repos/amartel/redmine_pdf_wiki/issues/comments/3202578"},"action":"created"}