Redmine on Tomcat plugin_assets problems... (solved)
Added by Maurizio Totti over 12 years ago
Hi all,
I have installed redmine 2.0.3 on tomcat 7.0.29 and PostrgreSQL 9.1.4 using jruby 1.6.7.2+warbler 1.3.5. The system is a debian testing "wheezy/sid" x86_64 machine.
All works fine, but in admin-->Information I find that Plugin assets directory wasn't writable!
In apache-tomcat-7.0.29/webapps/redmine the "plugin_assets" directory exists, it's owned by the tomcat user and the bits permission was set to 777.
At the link http://<redmine_server>/redmine/public_assets/README i can read the correct content of the file README in the Plugin assets directory.
I don't use any plugin (at this moment)
Why the directory was detect not writable? How I could correct this problem?
Thanks a lot
Regards
Replies (8)
RE: Redmine on Tomcat plugin_assets problems... - Added by Jean-Philippe Lang over 12 years ago
Maurizio Totti wrote:
At the link http://<redmine_server>/redmine/public_assets/README i can read the correct content of the file README in the Plugin assets directory.
It's not /redmine/public_assets
but /redmine/plugin_assets
.
RE: Redmine on Tomcat plugin_assets problems... - Added by Maurizio Totti over 12 years ago
I'm sorry, a mistake writing the post :-(
RE: Redmine on Tomcat plugin_assets problems... (solved) - Added by Maurizio Totti over 12 years ago
A little progress. Adding a line of code to dump de content of Redmine::Plugin.public_directory at the end of method info in the class AdminController in the file app/controllers/admin_controller.rb I get this log
14-ago-2012 14.27.39 org.apache.catalina.core.ApplicationContext log INFO: /home/a427137/deploy/apache-tomcat-7.0.29/webapps/redmine/WEB-INF/public/plugin_assets
The real "position" of plugin assets directory in my WAR file is redmine/WEB-INF/plugin_assets
Now I have changed a line in config/warbler.rb
# Application directories to be included in the webapp. config.dirs = %w(app config lib log vendor tmp extra plugins public/plugin_assets)
All works fine and the plugin assets directory is recognised writable.
Thanks a lot.
See you
RE: Redmine on Tomcat plugin_assets problems... (solved) - Added by Terence Mill about 12 years ago
Would you please provide us a complete instatalltion howto for "redmine 2.x on tomcat 7.x and PostrgreSQL 9.1.4 using jruby 1.6.x and warbler" on debian.
We will try to run this stack simlar but with mysql on sles11 and contribute addtional information then.
Somewhere here is a good place to write down the howto.
Tx in adavance!
RE: Redmine on Tomcat plugin_assets problems... (solved) - Added by Maurizio Totti almost 12 years ago
Hi, have you got some specific problems? Personally I have followed the instructions in HowTo_Install_Redmine_in_Apache_Tomcat. The only change was the content of config.dirs in config/warbler.rb (see this thread).
Instead of an important note was the switch of my configuration:- I have changed the DB server and now I used MySQL (sigh...) to accomplish the internal policy of my operations office (not relevant)
- I have upgrade Redmine at 2.2.0 and important, the stack. Now jRuby was at version 1.7.1 and tomcat at 7.0.34 for a "big process lock over mutex" problem in jRuby 1.6.7!!! :-(((
I recommend you my last configuration!
Regards
RE: Redmine on Tomcat plugin_assets problems... (solved) - Added by Vincent Mathon almost 12 years ago
I try to upgrade Redmine at 2.2.0 (same for 2.2.1) with jRuby 1.7.2 (I cannot find any 1.7.1 at Jruby) with TOMCAT 7.0.32.
On windows 7 I get the following exception:
org.jruby.rack.RackInitializationException: C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/lib/SVG/Graph/Graph.rb:979: can't find string "EOL" anywhere before EOF from org/jruby/RubyKernel.java:1027:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/lib/SVG/Graph/Bar.rb:1:in `(root)' from org/jruby/RubyKernel.java:1027:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/lib/SVG/Graph/Bar.rb:2:in `(root)' from org/jruby/RubyKernel.java:1027:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:359:in `require_or_load' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:313:in `depend_on' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:225:in `require_dependency' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/app/controllers/repositories_controller.rb:1:in `(root)' from org/jruby/RubyArray.java:1613:in `each' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/app/controllers/repositories_controller.rb:18:in `(root)' from org/jruby/RubyArray.java:1613:in `each' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:1:in `(root)' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:439:in `eager_load!' from org/jruby/RubyBasicObject.java:1720:in `instance_exec' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `run' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:438:in `eager_load!' from org/jruby/RubyArray.java:1613:in `each' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:436:in `eager_load!' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/application/finisher.rb:53:in `Finisher' from org/jruby/RubyBasicObject.java:1659:in `__send__' from org/jruby/RubyKernel.java:2086:in `send' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/initializable.rb:55:in `run_initializers' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `run_initializers' from org/jruby/RubyKernel.java:1027:in `require' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/application.rb:136:in `initialize!' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing' from C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/config/environment.rb:14:in `(root)' at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29) at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:655) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1628) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/lib/SVG/Graph/Graph.rb:979: can't find string "EOL" anywhere before EOF at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at ActiveSupport::Dependencies::Loadable.require(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251) at ActiveSupport::Dependencies::Loadable.load_dependency(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236) at ActiveSupport::Dependencies::Loadable.require(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251) at RUBY.(root)(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/lib/SVG/Graph/Bar.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at ActiveSupport::Dependencies::Loadable.require(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251) at ActiveSupport::Dependencies::Loadable.load_dependency(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236) at ActiveSupport::Dependencies::Loadable.require(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251) at RUBY.(root)(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/lib/SVG/Graph/Bar.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at ActiveSupport::Dependencies::Loadable.require(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251) at ActiveSupport::Dependencies::Loadable.load_dependency(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236) at ActiveSupport::Dependencies::Loadable.require(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251) at ActiveSupport::Dependencies.require_or_load(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:359) at ActiveSupport::Dependencies.depend_on(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:313) at ActiveSupport::Dependencies::Loadable.require_dependency(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:225) at RUBY.(root)(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/app/controllers/repositories_controller.rb:1) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.(root)(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/app/controllers/repositories_controller.rb:18) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.(root)(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:1) at RUBY.eager_load!(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:439) at org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1720) at Rails::Initializable::Initializer.run(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/initializable.rb:30) at RUBY.eager_load!(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:438) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.eager_load!(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/engine.rb:436) at RUBY.Finisher(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/application/finisher.rb:53) at org.jruby.RubyBasicObject.__send__(org/jruby/RubyBasicObject.java:1659) at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2086) at RUBY.run_initializers(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/initializable.rb:55) at RUBY.run_initializers(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/initializable.rb:54) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.initialize!(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/application.rb:136) at RUBY.method_missing(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/gems/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30) at RUBY.(root)(C:/usr/current/apache-tomcat-7.0.32/webapps/redmine/WEB-INF/config/environment.rb:14)
I am not a ruby developper so I don't know how to fix the SyntaxError detected.
Could you please give me a pointer for the "big process lock over mutex" problem in jRuby 1.6.7 ? (It might explain a concurrency bug I have encountered last year see #11828).
regards
Vincent
RE: Redmine on Tomcat plugin_assets problems... (solved) - Added by Maurizio Totti almost 12 years ago
I use jruby 1.7.1 only because it is in my rvm list
testruby@prometeo:~/deploy/apache-tomcat-7.0.34$ rvm list rvm rubies =* jruby-1.7.1 [ x86_64 ] ruby-1.9.3-p194 [ x86_64 ] # => - current # =* - current && default # * - default
The gemset of my testbed (unfiltered)
*** LOCAL GEMS *** actionmailer (3.2.9, 3.2.8, 3.2.6, 2.3.12) actionpack (3.2.9, 3.2.8, 3.2.6, 2.3.12) activemodel (3.2.9, 3.2.8, 3.2.6) activerecord (3.2.9, 3.2.8, 3.2.6, 2.3.12) activerecord-jdbc-adapter (1.2.2.1, 1.2.2, 0.9.7 java) activerecord-jdbcmysql-adapter (1.2.2.1, 1.2.2) activerecord-jdbcpostgresql-adapter (1.2.2.1, 1.2.2, 0.9.7 java) activerecord-jdbcsqlite3-adapter (1.2.2.1, 1.2.2) activerecord-postgresql-adapter (0.0.1) activeresource (3.2.9, 3.2.8, 3.2.6, 2.3.12) activesupport (3.2.9, 3.2.8, 3.2.6, 2.3.12) arel (3.0.2) bouncy-castle-java (1.5.0146.1) bourne (1.1.2) builder (3.1.4, 3.1.3, 3.0.0) bundler (1.2.3, 1.2.1, 1.1.5) coderay (1.0.8, 1.0.7) erubis (2.7.0) fastercsv (1.5.5) hike (1.2.1) i18n (0.6.1, 0.6.0, 0.4.2) jdbc-mysql (5.1.13) jdbc-postgres (9.1.901) jdbc-sqlite3 (3.7.2) jdbc-wrapper (0.4) journey (1.0.4) jquery-rails (2.1.4, 2.1.3, 2.0.3, 2.0.2) jruby-jars (1.7.1, 1.6.8, 1.6.7.2) jruby-launcher (1.0.15 java) jruby-openssl (0.8.2, 0.7.7) jruby-rack (1.1.12, 1.1.10, 1.1.7) json (1.7.5 java, 1.7.4 java) mail (2.5.3, 2.4.4) metaclass (0.0.1) mime-types (1.19) mocha (0.13.1, 0.12.5, 0.12.3, 0.10.5) multi_json (1.5.0, 1.3.6) net-ldap (0.3.1) pg (0.14.1, 0.14.0) polyglot (0.3.3) rack (1.4.1, 1.1.3, 1.0.1) rack-cache (1.2) rack-openid (1.3.1) rack-ssl (1.3.2) rack-test (0.6.2, 0.6.1) rails (3.2.9, 3.2.8, 3.2.6, 2.3.12) railties (3.2.9, 3.2.8, 3.2.6) rake (10.0.3, 0.9.2.2) rdoc (3.12) rmagick4j (0.3.7) ruby-openid (2.2.2, 2.2.0, 2.1.8, 2.1.4) rubygems-bundler (1.1.0, 1.0.7, 1.0.5) rubyzip (0.9.9) rvm (1.11.3.5) shoulda (3.3.2, 3.1.1, 2.11.3, 2.11.0) shoulda-context (1.0.2, 1.0.0) shoulda-matchers (1.4.2, 1.3.0, 1.2.0) sprockets (2.6.0, 2.2.2, 2.1.3) test-unit (2.5.3) thor (0.16.0, 0.15.4) tilt (1.3.3) treetop (1.4.12, 1.4.10) tzinfo (0.3.35, 0.3.33) warbler (1.3.6, 1.3.5) yaml_db (0.2.3) yard (0.8.3, 0.8.2.1)
And the content of my apache-tomcat-7.0.34/webapps/redmine/WEB-INF/lib directoty in production env
testruby@sl03uvxc:~/deploy/apache-tomcat-7.0.34/webapps/redmine/WEB-INF/lib$ vdir total 24716 -rw-r--r-- 1 testruby testruby 6277 Dec 28 11:47 diff.rb -rw-r--r-- 1 testruby testruby 65466 Dec 28 11:47 gems-gems-activerecord-jdbc-adapter-1.2.2.1-lib-arjdbc-jdbc-adapter_java.jar -rw-r--r-- 1 testruby testruby 767492 Dec 28 11:47 gems-gems-jdbc-mysql-5.1.13-lib-mysql-connector-java-5.1.13.jar -rw-r--r-- 1 testruby testruby 509746 Dec 28 11:47 gems-gems-jdbc-postgres-9.1.901-lib-postgresql-9.1-901.jdbc3.jar -rw-r--r-- 1 testruby testruby 551290 Dec 28 11:47 gems-gems-jdbc-postgres-9.1.901-lib-postgresql-9.1-901.jdbc4.jar -rw-r--r-- 1 testruby testruby 3201128 Dec 28 11:47 gems-gems-jdbc-sqlite3-3.7.2-lib-sqlite-jdbc-3.7.2.jar -rw-r--r-- 1 testruby testruby 36068 Dec 28 11:47 gems-gems-json-1.7.5-java-lib-json-ext-generator.jar -rw-r--r-- 1 testruby testruby 29085 Dec 28 11:47 gems-gems-json-1.7.5-java-lib-json-ext-parser.jar -rw-r--r-- 1 testruby testruby 282684 Dec 28 11:47 gems-gems-rmagick4j-0.3.7-lib-magick4j.jar -rw-r--r-- 1 testruby testruby 302867 Dec 28 11:47 gems-gems-rmagick4j-0.3.7-lib-svgsalamander.jar drwxr-xr-x 5 testruby testruby 4096 Dec 28 11:47 generators -rw-r--r-- 1 testruby testruby 15572157 Dec 28 11:47 jruby-core-1.7.1.jar -rw-r--r-- 1 testruby testruby 236098 Dec 28 11:47 jruby-rack-1.1.12.jar -rw-r--r-- 1 testruby testruby 3586285 Dec 28 11:47 jruby-stdlib-1.7.1.jar drwxr-xr-x 15 testruby testruby 4096 Dec 28 11:47 plugins -rw-r--r-- 1 testruby testruby 39268 Dec 28 11:47 redcloth3.rb drwxr-xr-x 10 testruby testruby 4096 Dec 28 11:47 redmine -rw-r--r-- 1 testruby testruby 15025 Dec 28 11:47 redmine.rb drwxr-xr-x 3 testruby testruby 4096 Dec 28 11:47 SVG drwxr-xr-x 2 testruby testruby 4096 Dec 28 11:47 tasks drwxr-xr-x 2 testruby testruby 4096 Dec 28 11:47 vendor
I found the reference of jruby problem solution searching on google, but I didn't saved the link (i'm sorry).
I hope my info will help you.
"Break a leg" :-)
Regards.
RE: Redmine on Tomcat plugin_assets problems... (solved) - Added by Vincent Mathon almost 12 years ago
Thanks for your help.
It seems that zip archives downloaded from http://rubyforge.org/frs/?group_id=1850 are corrupted since redmine version 2.1.4. For instance SVG/Graph.rb file has systematically an extra line break for each line.
Getting sources from redmine git repository solves my problem.
Regards
Vincent