Error 500 on Issues
Added by lyle barras about 10 years ago
Hi,
I'm migrating an installation of Redmine from our old server set up to a new one.
I should say that I'm no Ruby or Rails expert, this is really my first look.
I have almost everything working. My problems come when I go to the issues tab and I see a 500 error.
There is data in the table.
I have tried to empty the table and just add a new issue. The create form is displayed but I get an error on submit.
My app / Info is below for reference.
Environment:
Redmine version 2.5.2.stable
Ruby version 1.9.3-p547 (2014-05-14) [x86_64-linux]
Rails version 3.2.19
Environment production
Database adapter Mysql2
SCM:
Git 1.7.1
Filesystem
Redmine plugins:
no plugin installed
Any help would be greatly appreciated.
Replies (7)
RE: Error 500 on Issues - Added by Lajish Lakshmanan about 10 years ago
Hi there,
I also encountered same issue when restored old db into 2.5.2.
I think these steps can help you somehow..
cd to htdocs folder
exceute-> ruby bin/rake db:migrate RAILS_ENV=production
After this, restart both redmine services
Regards,
Lajish Lakshmanan
RE: Error 500 on Issues - Added by lyle barras about 10 years ago
Hi,
Thanks for that.
I shall give it a try. One noob question.
How do I restart the red mine services? As I say I've never user any of this before.
Thnaks again
RE: Error 500 on Issues - Added by lyle barras about 10 years ago
Hi,
Running this command
ruby bin/rake db:migrate RAILS_ENV=production
I get this error
ruby: No such file or directory -- bin/rake (LoadError)
I hope that means something to you?
RE: Error 500 on Issues - Added by Lajish Lakshmanan about 10 years ago
Hi there,
Please do confirm whether rake file resides in mentioned folder or not. You can execute above mentioned command only in folder where 'Rakefile' exists.
Regs,
Lajish Lakshmanan
RE: Error 500 on Issues - Added by lyle barras about 10 years ago
Hi,
Yes the rake file is present.
Folder contents are below
app config CONTRIBUTING.md doc files Gemfile.lock log public README.rdoc script tmp
application config.ru db extra Gemfile lib plugins Rakefile ruby test vendor
RE: Error 500 on Issues - Added by Martin Denizet (redmine.org team member) about 10 years ago
Hi,
I suggest the following:
cd /your/path/to/redmine RAILS_ENV=production bundle exec rake db:migrate
Note that you need to have successfully run a bundle install
before migrating.
Cheers,
RE: Error 500 on Issues - Added by lyle barras about 10 years ago
That seems to have done the trick.
Thanks very much.