{"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-20T11:50:48Z","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":4,"assignee":null},"comment":{"user":{"id":324279,"login":"amartel","url":"https://api.github.com/users/amartel","avatar_url":"https://secure.gravatar.com/avatar/e17b036cc989eff2f1d0f0aa72731b81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e17b036cc989eff2f1d0f0aa72731b81"},"created_at":"2011-12-20T11:50:48Z","updated_at":"2011-12-20T11:50:48Z","id":3217865,"body":"Strange. \r\nI'm sorry because I don't have any idea too!!!\r\nCould you edit vendor/plugins/redmine_pdf_wiki/app/controllers/wikitopdf_controller.rb and insert the following new line at 70:\r\nRAILS_DEFAULT_LOGGER.error \"#{Setting.plugin_redmine_pdf_wiki['wtp_command']} --read-args-from-stdin < #{cmdname}\"\r\n\r\nThen restart you redmine application, test again and look into you production.log to see the exact command line used to run wkhtmltopdf. It may help you to find what's wrong...\r\n\r\nKind regards,\r\nArnaud","url":"https://api.github.com/repos/amartel/redmine_pdf_wiki/issues/comments/3217865"},"action":"created"}