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. "rake db:create:all" failed by installation on ubuntu 14.04

"rake db:create:all" failed by installation on ubuntu 14.04

Added by kefeng chen almost 11 years ago

Dear all,

the command “rake db:create:all” failed as I tried to install the OpenProject in ubuntu 14.04.

the error report looks like:

(in /home/kefeng/openproject)
rake aborted!
SyntaxError: /home/kefeng/openproject/config/application.rb:131: syntax error, unexpected tLPAREN_ARG, expecting keyword_do_LAMBDA or tLAMBEG
config.assets.precompile.unshift -> (path) {
^
/home/kefeng/openproject/config/application.rb:131: syntax error, unexpected tLAMBEG, expecting keyword_end
/home/kefeng/openproject/config/application.rb:133: syntax error, unexpected ‘}’, expecting keyword_end
/home/kefeng/openproject/config/application.rb:171: syntax error, unexpected keyword_do_block, expecting keyword_end
/home/kefeng/openproject/config/application.rb:186: syntax error, unexpected keyword_end, expecting $end
/home/kefeng/openproject/Rakefile:33:in `require’
/home/kefeng/openproject/Rakefile:33:in `<top (required)>’
(See full trace by running task with —trace)

Can anybody give a hint about what was going wrong? Thank you!


Replies (4)

RE: "rake db:create:all" failed by installation on ubuntu 14.04 - Added by kefeng chen almost 11 years ago

has nobody ran into similar issue?

RE: "rake db:create:all" failed by installation on ubuntu 14.04 - Added by Brendan Dunn almost 11 years ago

Hi

Can you tell us what set of instructions you where following please.
I have not seen this error and since I am not a ruby or rail user, I cannot debug it for you, but in my experience, you have issues when you miss installation steps.

I have seen really weird error message when I have made typo’s in the config files, you could check these.

The rake db:create:all comes after you have edited the configuration.yml file and the database.yml file

Cheers
Brendan

RE: "rake db:create:all" failed by installation on ubuntu 14.04 - Added by kefeng chen almost 11 years ago

Hi Brendan,
thank u for ur reply!

I have fixed the problem by removing the space between “->” and “(path)” in “config.assets.precompile.unshift -> (path) {”.

I don’t know why but look at this:
http://ruby-journal.com/becareful-with-space-in-lambda-hash-rocket-syntax-between-ruby-1-dot-9-and-2-dot-0/

RE: "rake db:create:all" failed by installation on ubuntu 14.04 - Added by kefeng chen almost 11 years ago

It seems that i have installed a wrong version of ruby. I am using 1.9.1 by default. This should be the reason.

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