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. [SOLVED] Urgent: upgrade process fail (version 3.0) and I can't access the work packages

[SOLVED] Urgent: upgrade process fail (version 3.0) and I can't access the work packages

Added by Douglas Leonardo over 10 years ago

Hi folks, during the update process I’ve got:

require ‘rails/all’… 0.830s
Bundler.require… 2.760s
$(npm bin)/webpack —config webpack.config.js
sh: 1: npm: not found
sh: 1: /webpack: not found
rake aborted!
Command failed with status (127): [$(npm bin)/webpack —config webpack.config…]
/home/openproject/openproject/lib/tasks/assets.rake:48:in `block (3 levels) in <top (required)>’
/home/openproject/openproject/lib/tasks/assets.rake:47:in `chdir’
/home/openproject/openproject/lib/tasks/assets.rake:47:in `block (2 levels) in <top (required)>’
/home/openproject/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval’
/home/openproject/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `

’
Tasks: TOP => assets:precompile => assets:compile_environment => assets:webpack
(See full trace by running task with —trace)

And now I can’t access my work packages. How to fix it ?

Thanks in advance.


Replies (10)

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Robin Wagner over 10 years ago

Hi Douglas,

from which version to which version do you try to update?
From 3.0.x to 4.0.x?
Please note that OpenProject 4.0 requires npm and bower. (You can find the required step in the update guide from 3.0 to 4.0 )

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Douglas Leonardo over 10 years ago

Hi Robin, I’m not sure. I executed the folowing commands:

git checkout Gemfile.lock
git pull
bundle install
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake assets:precompile

as stated in the forum: https://community.openproject.org/topics/1905

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Robin Wagner over 10 years ago

Hi Douglas,

could you check which branch you are on by entering git branch?
You were probably on the stable branch which by now points to OpenProject 4.0.4.

Therefore, you probably upgraded to OpenProject 4.0 which has additional requirements compared to OpenProject 3.0 (namely bower and npm).
Since the main changes in OP 4.0 relate to the work package page, it makes sense that work packages are not displayed properly.

It’s probably easiest to follow the official upgrade guide to get OpenProject properly working again.
The description in the forum is not up-to-date anymore since the release of OpenProject 4.0.

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Douglas Leonardo over 10 years ago

Thank you Robin. The output of ‘git branch’ is ‘* dev’.
In fact I was trying to get the 3.015 to create the database backup before upgrading to 4.0… should I try migrating to 4.0 ? (I’ve made some backups using mysqldump and it should be enough)

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Robin Wagner over 10 years ago

Hi Douglas,

since you made some backups this should probably be sufficient.
To install OpenProject 4.0 you need to switch to the stable branch.
The necessary steps are explained in the upgrade guide.

You should be able to simply follow the steps there.

Best,
Robin

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Douglas Leonardo over 10 years ago

Thanks Robin, I updated, now I’m just having a problem in time to list the notes, returns me this error, can help?

Errno::ENOENT (No such file or directory @ rb_sysopen - app/views/timelog/index.rabl):
app/controllers/timelog_controller.rb:74:in `block (2 levels) in index’
app/controllers/timelog_controller.rb:66:in `index’

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Robin Wagner over 10 years ago

Hi Douglas,

seems to me that your update did not work properly.
Can you please have a look if the file app/views/timelog/index.rabl exists in your OpenProject folder?
It should be there but possibly it is missing (this file did not exist in OpenProject 3.0).
And please make sure that you restart your server. (This is necessary every time you change s.th. in your OpenProject code.)

RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Douglas Leonardo over 10 years ago

Thanks Robin, I managed to solve.

RE: [SOLVED] Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Robin Wagner over 10 years ago

Hi Douglas,

great to hear!
Have fun with OpenProject 4.0! :)

RE: RE: Urgent: upgrade process fail (version 3.0) and I can't access the work packages - Added by Daniel Hügelmann about 9 years ago

Update: I entered the absolute path in the assets.rake file and the webpack command executed. I then however received several other warnings and errors. I have included the log in the attached file.

Hi,

I’m having a very similar problem when upgrading from 5.0.7 to 5.0.11:

C:/Bitnami/openproject-5.0.7-1/ruby/lib/ruby/2.1.0/dl.rb:8:in `<top (required)>’ : DL is deprecated, please use Fiddle (StandardWarning)
$(npm bin)/webpack —config webpack.config.js rake aborted!
Command failed with status (127): [$(npm bin)/webpack —config webpack.config…]
C:/Bitnami/openproject-5.0.7-1/apps/openproject/htdocs/lib/tasks/assets.rake:48: in `block (3 levels) in <top (required)>’
C:/Bitnami/openproject-5.0.7-1/apps/openproject/htdocs/lib/tasks/assets.rake:47: in `chdir’
C:/Bitnami/openproject-5.0.7-1/apps/openproject/htdocs/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)

Is there a way to fix this? Thanks in advance!

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