Content
[SOLVED] Urgent: upgrade process fail (version 3.0) and I can't access the work packages
Added by Douglas Leonardo almost 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)
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 )
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
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.
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)
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
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’
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.)
Thanks Robin, I managed to solve.
Hi Douglas,
great to hear!
Have fun with OpenProject 4.0! :)
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:
Is there a way to fix this? Thanks in advance!