How to deploy Redmine in Plesk

Follow

Comments

12 comments

  • Avatar
    conformist

    Hi! A have already done all instructions but encounter an error:

    Application error

    Rails application failed to start properly

    How can I find out what went wrong?

  • Avatar
    Bulat Tsydenov

    @conformist, Hi!

    Please clarify which step you receive this error?

  • Avatar
    conformist

    @Tsydenov I'm already solve my issue. distro Debian 8.9, problem is:

    ruby 2.4.2 passenger 4.0.53 undefined symbol: rb_thread_blocking_region

    so I setup passenger from here https://www.phusionpassenger.com/library/install/apache/install/oss/jessie/ and now it works fine

  • Avatar
    Vacoi (Edited )

    Hi,

    I receive the following error when install bundle:

    • An error occurred while installing ffi (1.9.18), and Bundler cannot continue.
    • Make sure that `gem install ffi -v '1.9.18'` succeeds before bundling.
    • ERROR:rubymng:Command '['/opt/psa/admin/sbin/filemng', 'planner', 'exec', '/var/www/vhosts/planner.domain.net/httpdocs/redmine', '/bin/bash', '-l', '-c', 'bundle install --path vendor/bundle']' returned non-zero exit status 5

    Thanks.

  • Avatar
    Lev Iurev

    @Vacoi

    was `gem install ffi -v '1.9.18'` succeeds before bundling?

  • Avatar
    colori

    I got similar problem when bundle installing redmine 3.4.6.

    bundle install failed at nokogiri.

    • An error occurred while installing nokogiri (1.8.5), and Bundler cannot continue.
    • Make sure that `gem install nokogiri -v '1.8.5' --source 'https://rubygems.org/'` succeeds before bundling.

    so I input command in plesk user ssh terminal.

    my server is CentOS7 (AWS EC2), switch plesk user ('su myuser_id') after logged in default 'centos' user.

    -bash-4.2$ gem install nokogiri -v '1.8.5' --source 'https://rubygems.org/'
    ERROR: While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /opt/plesk/ruby/2.4.4/lib64/ruby/gems/2.4.0

  • Avatar
    Artyom Volov

    Hello @colori,

    I have double checked the solution from the article - I successfully installed Remine 3.4.7 using Ruby version 2.4.4.

    However, I was able to reproduce a similar error by trying to install Redmine on the server without an installed component in Tools & Settings > Updates and Upgrades > Web hosting > Tools required for building Ruby gems.

    Please check that this component is installed. In case it is not - install it and try to install Redmine again.

    In case it is already installed - please submit a request to Plesk Support using the link https://support.plesk.com/hc/.

  • Avatar
    colori (Edited )

    @Artyom

    Oh..sorry, I didn't notice first step..

    I noticed user(centos) .rbenv version is symbolic link to /opt/plesk/ruby/, manual install gem.

    $ sudo /opt/plesk/ruby/2.4.4/bin/gem install nokogiri 
    Building native extensions. This could take a while...
    Successfully installed nokogiri-1.8.5
    Parsing documentation for nokogiri-1.8.5
    Installing ri documentation for nokogiri-1.8.5
    Done installing documentation for nokogiri after 13 seconds
    1 gem installed

    As I installed "Tools required for building Ruby gems", another application will have no problem.
    Thanks !!

  • Avatar
    Artyom Volov

    Hi @colori,

    Glad to hear that the issue was resolved!

  • Avatar
    Benjamin Wiens

    I get an Error on "14.2. Insert RAILS_ENV=production db:migrate to the Task parameters field and click Run."
    Can someone Help me?

    ** Invoke db:migrate (first_time)
    ** Invoke db:load_config (first_time)
    ** Invoke environment (first_time)
    ** Execute environment
    ** Execute db:load_config
    ** Execute db:migrate
    rake aborted!
    ArgumentError: string contains null byte
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `connect'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:90:in `initialize'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:811:in `new_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:855:in `checkout_new_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:834:in `try_to_checkout_new_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:795:in `acquire_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:523:in `checkout'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:1014:in `retrieve_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_handling.rb:90:in `connection'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/railties/databases.rake:60:in `block (2 levels) in '
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in `block in execute'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in `each'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in `execute'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
    /opt/plesk/ruby/2.6.3/lib/x86_64-linux-gnu/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:194:in `invoke_with_call_chain'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:183:in `invoke'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:160:in `invoke_task'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `each'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block in top_level'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:125:in `run_with_threads'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:110:in `top_level'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:83:in `block in run'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/bin/rake:23:in `load'
    /var/www/vhosts/xxxxx/vendor/bundle/ruby/2.6.0/bin/rake:23:in `
    '
    Tasks: TOP => db:migrate
  • Avatar
    Julian Bonpland Mignaquy

    @Benjamin, I recommend reaching out to Redmine Support https://www.redmine.org/projects/redmine/boards to address this issue. If it persists afterward please open a ticket with us here https://support.plesk.com/hc/en-us/articles/213953025-How-to-get-support-directly-from-Plesk-

  • Avatar
    Benjamin Wiens

    @Julian Bonpland Mignaquy

    I know now why it didn't work. I wanted to install Redmine 4.X. The manual only works with v3.4.X.

    With Redmine 3.4.X everything worked fine 👌

Please sign in to leave a comment.

Have more questions? Submit a request