Added by Michael Wilson about 9 years ago
I have inherited the task of upgrading from 2.4 and keep getting stuck at this…
$ bundle exec rake db:migrate RAILS_ENV=production
(in /var/openproject)
rake aborted!
Don’t know how to build task ‘doc/app/index.html’
/var/openproject/Rakefile:17:in `require’
(See full trace by running task with —trace)
I have tried googling but am not finding anything useful… Any help appreciated!
Replies (2)
It doesn’t seem to find a task defined by Rails2: https://github.com/opf/openproject/blob/36d04e7caa70a8079ca66516e2730dd1d621ec26/Rakefile#L17,
can’t really help you on that end any more than that.
The migration should work if you:
1. Backup your existing database.
2. Install the newest OpenProject 5.0 version (preferably as a package if you used MySQL, but it works manually as well). See this guide as a starting point
3. Point the wizard to the old database (or configure
config/database.yml
accordingly)4. The package wizard will migrate the database. It should be a linear upgrade from 2.4, although there may be other issues that arise.
Best,
Oliver
Oliver,
Thanks for the advice! I tried what you said but it looks like I probably messed up the database during a previous upgrade attempt. Although it still seems to be working from a user perspective, there are some inconsistencies that are prohibiting a smooth upgrade.
Looks like the enterprise support is quite reasonable so I think i’ll got that route and save myself a little time.
Cheers,
Michael