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.
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.
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.
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.
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)
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
Replies (19)
Same here… I guess only manual installation is available now, unfortunately.
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
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.
Hi Oswaldo,
could you post the error output during your manual installation here?
Best,
Oliver
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,
BTW, herein find attached the complete log.
Cheers.
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.
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
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.
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
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
OK.. I’m gonna proceed.
Hi Oliver,
Pull request has been created.
Cheers
Hi Oswaldo,
I can’t seem to see the PR on https://github.com/opf/openproject/pulls, can you try again?
Best,
Oliver
Hi Oliver
Sorry for my late reply..
Ok let me double check.
I’ll keep u posted.
Cheers
Hi Oliver
Sorry for my late reply..
Ok let me double check.
I’ll keep u posted.
Cheers
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: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?
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”
Thank you, it works.
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.