Redmine Upgrade from 1.x -> 2.x failed with "Cannot start Ruby on Rails application"
Added by Martin Eckart over 11 years ago
Hello,
first our system:
Ubuntu Linux 12.04.3
Rails 3.2.13
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
mysql Ver 14.14 Distrib 5.5.32, for debian-linux-gnu (x86_64) using readline 6.2
We're running several php tools: redmine, kimai, sugarcrm on this server. kimai and sugar are still running, webmin too. Only Redmine isn't working anymore :(
then our poblem:
I tried to upgrade from 1.1.2 to the new version 2.3.2 using this HowTo: http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
It failed after trying "rake generate_secret_token" - Rake wasn't working. I found a solution wo installe bundler and upgrading gem to 1.8
Now the Redmine Website says:
Cannot start Ruby on Rails application The directory "/opt" does not appear to be a valid Ruby on Rails application root.
Solution tried: http://stackoverflow.com/questions/10676871/not-a-valid-directory-didnt-found-the-answer-on-the-net
New Problem: Redmine Site doesnt answer - Kimai Site said Ruby (Rack) application could not started
So I changed "DocumentRoot /var/www/YOUR_APP_NAME/public" back to "DocumentRoot /var/www/"
And again:
Cannot start Ruby on Rails application The directory "/opt" does not appear to be a valid Ruby on Rails application root.
If I try to run
RAILS_ENV=production script/about: Datei oder Verzeichnis nicht gefunden (cannot find file or folder)
I need a solution either: backup the old version and runnig it, or fix the problem. I tried to switch back the folder to the old version, but it's the same error.