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. Manual Install failes at finishing the installation

Manual Install failes at finishing the installation

Added by mark twain about 9 years ago

Hi there,
I am trying to install openproject on my raspberry pi, using the manual installation guide.

I followed the manual installation guide [ https://www.openproject.org/open-source/download/manual-installation-guide/ ]
up to: “Finish the Installation of OpenProject”.
Up to then, everything worked more or less like expected
[I had to: npm install -g bower before i was able to use ‘npm install’ ]

Now, I am stuck here:
[openprojecthost] cd ~/openproject-ce
[openproject@host] RAILS_ENV=“production” ./bin/rake db:create
[openproject@host] RAILS_ENV=“production” ./bin/rake db:migrate
[openproject@host] RAILS_ENV=“production” ./bin/rake db:seed
[openproject@host] RAILS_ENV=“production” ./bin/rake assets:precompile@

these commands lead to:

e.g. with RAILS_ENV=“production” ./bin/rake db:create :
openproject@pi ~/openproject-ce $ RAILS_ENV=“production” ./bin/rake db:create
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — bundler/setup (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’
from /home/openproject/openproject-ce/config/boot.rb:32:in `<top (required)>’
from ./bin/rake:2:in `require_relative’
from ./bin/rake:2:in `

’

As I simply followed these instructions and got stuck, I can not get any further atm. …

Is there anyone here who can help me with this?

Thanks and best regard,
Twain!


Replies (6)

RE: Manual Install failes at finishing the installation - Added by mark twain about 9 years ago

As an little update on this, i was able to get beyond that problem, by:
@ sudo apt-get install ruby-dev@

In order to get passenger working with my nginx, withouth having to recompile nginx again,
I decided to install a stand alone passenger version*, and use nginx as a reverse proxy.
Forwarding does work with (within nginx configuration)
proxy_pass http://127.0.0.1:4000;

  • By running passenger like this:
    @ cd ~/openproject-ce@
    @ passenger start —daemonize —address 127.0.0.1 —port 4000 @

I am using a subdomain like:
op.domain.tld

which does serve the running passenger via nginx.
Sadly all i can see here does not look like openproject, but like some sort of misconfiguration :
'mysql2' database is not configured. Available: ["production", "adapter", "database", "host", "username", "password", "encoding"] (ActiveRecord::AdapterNotSpecified)

I uploaded this to pastebin, see: [ http://pastebin.com/Kb40ePHS ]

Now I am stuck again …. .
Looking forward to some help here :)

RE: Manual Install failes at finishing the installation - Added by mark twain about 9 years ago

It seems, my config/database.yml was not correct,
i changed it, according to the ‘Manual Installation guide’.

And the error messages changed!
When i go to op.domain.tld, i get:

Action Controller: Exception caught

Sprockets::FileNotFound in Homescreen#index
Showing /home/openproject/openproject-ce/app/views/layouts/base.html.erb where line #43 raised:

couldn't find file 'bundles/openproject-global'
  (in /home/openproject/openproject-ce/app/assets/stylesheets/default.css.sass:28)

Rails.root: /home/openproject/openproject-ce

So, anyone got an idea what to do next?

RE: Manual Install failes at finishing the installation - Added by Oliver Günther about 9 years ago

Did you run the remaining rake tasks after your initial database issue?

The error stems from missing precompiled assets, which are built as follows:

[openproject@host] RAILS_ENV="production" ./bin/rake assets:precompile

An unrelated side note: Is there a reason why you can’t use the packaged installation method , or are you running some unsupported distro?

Best,
Oliver

RE: Manual Install failes at finishing the installation - Added by mark twain about 9 years ago

Thanks for your answer.

I already tried that, sadly this did not help; as i said, i did everything stated by the manual, but used passenger as a stand alone version … .

I am on a Raspberry 2; there is no openproject package for this platform … .

Any ideas left?

RE: Manual Install failes at finishing the installation - Added by Oliver Günther about 9 years ago

Hey Mark,

this is definitely an issue with the webpack-based assets. Please make sure your npm/node installation works and try to check the output of the command I’ve linked you above. You may also want to manually run webpack in the frontend folder with $(npm bin)/webpack --progress.

What distro are you running on Raspberry? I must admit to have never tried that, but a debian/fedora flavor should work fine with our package.

Best,
Oliver

RE: Manual Install failes at finishing the installation - Added by mark twain about 9 years ago

Hi Oliver,

Node version:

openproject@pi ~ $ node —version
v0.12.7

And once again:

openproject@pi ~/openproject-ce $ RAILS_ENV=“production” ./bin/rake assets:precompile
/home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: key “name” is duplicated and overwritten on line 80
$(npm bin)/webpack —config webpack.config.js
sh: 1: /home/openproject/openproject-ce/frontend/node_modules/.bin/webpack: not found
rake aborted!
Command failed with status (127): [$(npm bin)/webpack —config webpack.config…]
/home/openproject/openproject-ce/lib/tasks/assets.rake:48:in `block (3 levels) in <top (required)>’
/home/openproject/openproject-ce/lib/tasks/assets.rake:47:in `chdir’
/home/openproject/openproject-ce/lib/tasks/assets.rake:47:in `block (2 levels) in <top (required)>’
Tasks: TOP => assets:precompile => assets:compile_environment => assets:webpack
(See full trace by running task with —trace)

Running “$(npm bin)/webpack —progress” results in:

openproject@pi ~/openproject-ce/frontend $ $(npm bin)/webpack —progress
-su: /home/openproject/openproject-ce/frontend/node_modules/.bin/webpack: No such file or directory

Ok, something seems to be wrong here … .

What distro are you running on Raspberry? I must admit to have never tried that, but a debian/fedora flavor should work fine with our package.

I am using Rasobian 8 which is based on Debian 8; the problem is pi’s hardware, which is not supported. (no prebuilt packages)

  • (1 - 6/6)
Loading...