Project

General

Profile

After migrating to a new server I get a 404 when trying to create New Issues

Added by Joseph VanPelt about 7 years ago

After I migrated the database and redmine to a new server, I keep getting a 404 when I try to create a New Issue.

ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-linux]
Rails 4.2.7.1
Debian 8
mysql  Ver 14.14 Distrib 5.5.53, for debian-linux-gnu (x86_64) using readline 6.3
Server version: Apache/2.4.10 (Debian)

Environment:
  Redmine version                3.3.1.stable
  Ruby version                   2.2.5-p319 (2016-04-26) [x86_64-linux]
  Rails version                  4.2.7.1
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  redmine_app__space             1.0.4
  redmine_app_timesheets         1.5.12
  redmine_dmsf                   1.5.6
  redmine_importer               0.4.1
  redmine_loader                 0.3b
  redmine_watcher_groups         1.0.1
  redmine_workload               1.0.4
  under_construction             0.0.1

Here is my redmine upgrade procedure (after copying the mysql database and installing it):

cd /var/www/
mv redmine redmine-old
wget http://www.redmine.org/releases/redmine-3.3.1.zip
unzip redmine-3.3.1.zip -d /var/www/
mv redmine-3.3.1 redmine
cp redmine-old/config/database.yml redmine/config/
cp redmine-old/config/configuration.yml redmine/config/
cp -r redmine-old/files redmine/
cp -r redmine-old/plugins redmine/
chown -R www-data:www-data /var/www/redmine
cd redmine
bundle install --without development test
bundle exec rake generate_secret_token
bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
sudo service apache2 restart

I turned on Debug mode (as follows:):

#debug mode
sudo nano /var/www/redmine/config/environments/production.rb 
#add this line:
config.log_level = :debug

#Then clear caches and restart:
cd /var/www/redmine/
rake tmp:cache:clear RAILS_ENV=production
rake tmp:sessions:clear RAILS_ENV=production
sudo service apache2 restart 

When I create a new issue, I'm not seeing any new errors, just the one below:

$tail -f log/production.log                                                                      
Starting Watcher Groups plugin for Redmine                                                                               
WatcherGroupsWatcherHelperPatch monkey-patch                                                                             
  Setting Load (0.1ms)  SELECT  `settings`.* FROM `settings` WHERE `settings`.`name` = 'plugin_redmine_app__space'  ORDER
 BY `settings`.`id` DESC LIMIT 1                                                                                         
DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: 'imp
orter'` to `controller: 'importer'`. (called from block (3 levels) in <top (required)> at (eval):3)                      
Starting Application Space plugin for Redmine                                                                            
Starting Timesheets Application                                                                                          
Starting Watcher Groups plugin for Redmine                                                                               
WatcherGroupsWatcherHelperPatch monkey-patch                                                                             
  Setting Load (0.1ms)  SELECT  `settings`.* FROM `settings` WHERE `settings`.`name` = 'plugin_redmine_app__space'  ORDER
 BY `settings`.`id` DESC LIMIT 1                                                                                         
DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: 'imp
orter'` to `controller: 'importer'`. (called from block (3 levels) in <top (required)> at (eval):3) 

Any suggestions? Thank you in advance for your help!


    (1-2/2)