Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Debian Stretch

Debian Stretch

Added by Oswaldo Saumet almost 8 years ago

Hi there,

I’m trying to install openproject in Debian Stretch, but as far as I see, is not possible yet. Is there a way to do it?

Thank you in advance,

Best regards,


Replies (19)

RE: Debian Stretch - Added by Rodolfo Fortes almost 8 years ago

Same here… I guess only manual installation is available now, unfortunately.

RE: Debian Stretch - Added by Oliver Günther almost 8 years ago

Hi everyone,

we will likely support Debian Stretch in the near future. As we ship packages through the packager.io service, we require and pay for their services to enable new distributions. This is why we support (and pay for) a very specific set of distributions.

If you require Stretch support right now, please contact us at sales@openproject.com. We will prioritize support for distributions if a new enterprise customers requires it.

Best,
Oliver

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

Hi,

Manual installation fails too, anyhow, I could solve the problem by the moment installing the docker version. Thank you very much for your quick response.

Best regards.

RE: Debian Stretch - Added by Oliver Günther almost 8 years ago

Hi Oswaldo,

could you post the error output during your manual installation here?

Best,
Oliver

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

Hi Oliver,

Yes sure.. The problem comes when you try to build ruby 2.3 on stretch with the command “rbenv install 2.3.0”…

"rbenv install 2.3.0
Downloading ruby-2.3.0.tar.bz2…
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.bz2
Installing ruby-2.3.0…
^[[A
^[[B
BUILD FAILED (Debian 9.1 using ruby-build 20170726)

Inspect or clean up the working tree at /tmp/ruby-build.20170731081459.16404
Results logged to /tmp/ruby-build.20170731081459.16404.log

Last 10 log lines:
}
^
Makefile:301: fallo en las instrucciones para el objetivo ‘ossl_cipher.o’
make[2]: ***** [ossl_cipher.o] Error 1
make[2]: se sale del directorio ‘/tmp/ruby-build.20170731081459.16404/ruby-2.3.0/ext/openssl’
exts.mk:206: fallo en las instrucciones para el objetivo ‘ext/openssl/all’
make[1]: ***** [ext/openssl/all] Error 2
make[1]: se sale del directorio ‘/tmp/ruby-build.20170731081459.16404/ruby-2.3.0’
uncommon.mk:203: fallo en las instrucciones para el objetivo ‘build-ext’
make: ***** [build-ext] Error 2"

It’s in Spanish, sorry for that, but in synthesis the problem is the “ossl_cipher.o” library.

I’m pretty sure that there is a way to solve this issue, but frankly, I didn’t spend too much time researching about this… I was running out of time and for that reason I decided to use the docker version instead.

Thank you in advance,

Best regards,

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

BTW, herein find attached the complete log.

Cheers.

RE: Debian Stretch - Added by Oliver Günther almost 8 years ago

Hi Oswaldo,

We have had issues with Debian 8 and ruby 2.3. in the past, so please use ruby build to install the 2.4.1 version instead.

rbenv install 2.4.1
rbenv global 2.4.1

ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]

You may also need additional dependencies for ruby in Debian 9 that the manual installation guide (targeted at Ubuntu 14.04) does not specify.

Please help us update the manual installation guide in this case should you succeed to install on Debian 9.

Best,
Oliver

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

Hi Oliver

I tried also with version 2.4.1 without success because apparently the command “bundle install” does not work anymore with that version, at least in
Stretch. On the other hand, with version 2.4.0 I could, however there is an error with mysql dependency that does not match with stretch, because mysql was replaced entirely by mariadb in Debian 9.

I will try to research a bit later on and I’ll keep you posted if I find a solution.

Cheers.

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

Hi Oliver

FInally after several tries, I was able to install manually Openproject in Debian 9. It was really tricky but it’s working properly.

Just let me know how can I update the manual installation guide.

Cheers

RE: Debian Stretch - Added by Oliver Günther almost 8 years ago

Hi Oswaldo,

great news!
you can help us by editing the markdown file in GitHub and create a pull request from the changes.

https://github.com/opf/openproject/blob/dev/docs/installation/manual/README.md

Best,
Oliver

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

OK.. I’m gonna proceed.

RE: Debian Stretch - Added by Oswaldo Saumet almost 8 years ago

Hi Oliver,

Pull request has been created.

Cheers

RE: Debian Stretch - Added by Oliver Günther almost 8 years ago

Hi Oswaldo,

I can’t seem to see the PR on https://github.com/opf/openproject/pulls, can you try again?

Best,
Oliver

RE: Debian Stretch - Added by Oswaldo Saumet over 7 years ago

Hi Oliver

Sorry for my late reply..

Ok let me double check.

I’ll keep u posted.

Cheers

RE: Debian Stretch - Added by Oswaldo Saumet over 7 years ago

Hi Oliver

Sorry for my late reply..

Ok let me double check.

I’ll keep u posted.

Cheers

RE: Debian Stretch - Added by Nicolas Bertolissio over 7 years ago

Hi,

I’ve tried installation on stretch, but at the end of Installation of OpenProject when I run this step npm install, it returns an error:

npm WARN openproject-frontend@0.1.0 No repository field.
npm WARN openproject-frontend@0.1.0 No license field.
npm ERR! Linux 4.9.0-3-amd64
npm ERR! argv "/home/openproject/.nodenv/versions/6.9.1/bin/node" "/home/openproject/.nodenv/versions/6.9.1/bin/npm" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8@
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

see terminal.txt for full command output.

I’ve installed ruby 2.4.1 instead of 2.3.0. This is the only difference with the manual installation document.

Could someone help, please?

RE: Debian Stretch - Added by Oswaldo Saumet over 7 years ago

Hi

Herein find my notes in order to install openproject in Stretch properly. You have to make some changes…

I’m gonna create a pull request in order to upload the instruction to the wiki. I’m gonna try to do it tonight.

Cheers.

apt-get install mariadb-server default-libmysqlclient-dev

su openproject —login
bash

rbenv install 2.4.0 —-> version 2.4.1 does not work in Stretch
rbenv hash
rbenv global 2.4.0

nodenv install 8.2.1 —-> version 6.9.1 does not work in Stretch
nodenv hash
nodenv global 8.2.1

nano Gemfile (inside the openproject folder)
platforms :mri, :mingw, :x64_mingw do
group :mysql2 do
gem ‘mysql2’, ‘~> 0.4.7’ —-> modify version 0.4.4 by 0.4.7 (line 248)
end

ruby ‘~> 2.4.0’ —-> modify ruby version 2.4.1 by 2.4.0 (line 32)

../.rbenv/versions/2.4.0/bin/gem install bundler

./.rbenv/versions/2.4.0/bin/bundle install —no-deployment

./.rbenv/versions/2.4.0/bin/bundle install —deployment —without postgres sqlite development test therubyracer docker

npm install

RAILS_ENV=“production” ../.rbenv/versions/2.4.0/bin/rake db:create
RAILS_ENV=“production” ../.rbenv/versions/2.4.0/bin/rake db:migrate
RAILS_ENV=“production” ../.rbenv/versions/2.4.0/bin/rake db:seed
RAILS_ENV=“production” ../.rbenv/versions/2.4.0/bin/rake assets:precompile

RAILS_ENV=“production” LOCALE=en ../.rbenv/versions/2.4.0/bin/rake db:seed

../.rbenv/versions/2.4.0/bin/rake secret (copy the secret)

nano ~/.profile (add SECRET_KEY_BASE variable and paste the secret)

nano /config/secrets.yml (paste the secret)

../.rbenv/versions/2.4.0/bin/gem install passenger

/.rbenv/versions/2.4.0/bin/passenger-install-apache2-module

LoadModule passenger_module /home/openproject/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/passenger-5.1.7/buildout/apache2/mod_passenger.so

<IfModule mod_passenger.c>
PassengerRoot /home/openproject/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/passenger-5.1.7/
PassengerDefaultRuby /home/openproject/.rbenv/versions/2.4.0/bin/ruby

Activate apache2 module “expires”

RE: Debian Stretch - Added by Nicolas Bertolissio over 7 years ago

Thank you, it works.

RE: Debian Stretch - Added by Nicolas Bertolissio over 7 years ago

I had to add environment variables to my crontab for it to work, and the command path is also different. I don’t know if it’s the best setting (RAILS_ENV, may be enought), but it seems it works.

SHELL=/bin/bash
HOME=/home/openproject
PATH=/home/openproject/.nodenv/shims:/home/openproject/.nodenv/bin:/home/openproject/.rbenv/shims:/home/openproject/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
RAILS_ENV="production"
# m h  dom mon dow   command
*/1 * * * * cd /home/openproject/openproject-ce; /home/openproject/openproject-ce/bin/rake jobs:workoff
  • (1 - 19/19)
Loading...