Problems with DocPu Plugin
Added by Vinicius Senna over 12 years ago
Hi! I ve installed redmine throught Bitnami installer and I added the DocPu plugin 0.0.3. It is working, I can generate pdfs but I got two errors that I didnt found in any other messages in this Forum. My configurations and versions are:
MacOSX 10.6.8
Redmine 1.3.2
Rails 2.3.14
MySQL 5.5.16
DocPu 0.0.3
I used BasicTeX to integrate with DocPu
The first one is in the administration test of the plugin. When I click to test makeindex binary i get this error message:
No such file or directory - makeindex.ilg
I know that this could be from the installation of the BasicTeX. But dont know how to fix it.
The second error is when I try to access the Publish menu inside the project. I get this error message:
@ActiveRecord::StatementInvalid in Doc puController#index
Mysql::Error: Table 'bitnami_redmine.doc_pu_documents' doesn't exist: SHOW FIELDS FROM `doc_pu_documents`
RAILS_ROOT: /Applications/redmine-1.3.2-0/apps/redmine
Application Trace | Framework Trace | Full Trace
Request
Parameters:
{"project_id"=>"teste"}
Show session dump
Response
Headers:
{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}@
the framework trace is this:
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `log'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:471:in `columns'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1305:in `columns'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1318:in `column_names'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1331:in `column_methods_hash'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2025:in `all_attributes_exists?'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2236:in `all?'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2025:in `each'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2025:in `all?'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2025:in `all_attributes_exists?'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1876:in `method_missing'
/Applications/redmine-1.3.2-0/apps/redmine/vendor/plugins/redmine_doc_pu/app/controllers/doc_pu_controller.rb:13:in `index'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/head.rb:9:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/methodoverride.rb:24:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/lock.rb:11:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/lock.rb:11:in `synchronize'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/lock.rb:11:in `call'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call'
/Applications/redmine-1.3.2-0/apps/redmine/config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:27:in `dispatch'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
/Applications/redmine-1.3.2-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/Applications/redmine-1.3.2-0/ruby/bin/mongrel_rails:19:in `load'
/Applications/redmine-1.3.2-0/ruby/bin/mongrel_rails:19
Thanks!
Hi I've found the solution for the second problem. I've tried to put this as a reply but I cant, Redmine says that my reply is a spam... Here is the solution I've found:
- Bitnami introduces a console to execute commands to all the redmine related programs. On the installation folder execute ./use_redmine, see it with your own eyes!. If you execute rake commands without execute the console you'll probably get a rake aborted error or rake version error.
- The DocPu tutorial doesn't mention to set the environment to add the plugin with the command rake db:migrate_plugins. But as you can see in the Redmine plugin tutorial and in the Bitnami plugin tutorial you have to set the environment, basically for Bitnami installation you have to do this:
$ cd installdir
$ ./use_redmine
$ cd apps/redmine
$ rake db:migrate:plugins RAILS_ENV=production
Hope I've helped someone with this. I still don't know how to solve the makeindex error, as I said, I'm a newbie in Redmine, Mac and LaTeX so... I don't have any clue how to solve it. If I figure it out it will be here.
Replies (1)
RE: Problems with DocPu Plugin - Added by Vinicius Senna over 12 years ago
Found solution for the second problem