Defect #12852
closedRedmine Restart
Added by Debendra Kandel almost 13 years ago. Updated almost 13 years ago.
0%
Description
I have Redmine 2.2.0 in CentOS 6.5. I downloaded a plugin and need to restart Redmine to use that plugin. I found the PID of the process by ps ux. I killed Rails process. Now my problem is I can't get it to start. When I try rails s I get following message:
[~/redmine]# rails s
=> Booting WEBrick
=> Rails 3.2.10 application starting in production on h-t-t-p-://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.10/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
Exiting
I am not good at Linux, please can someone help me to restart Redmine?
Updated by Daniel Felix almost 13 years ago
Please try it without Plugin to ensure that this is a Redmine error.
Btw. try to reboot your whole apache. If your sure it's proper configured, this shouldn't be a problem.
Use /sbin/service httpd restart
Updated by Debendra Kandel almost 13 years ago
I tried to remove plugin, restart apache still same problem exists. When i check process rails is not running.
thanks for your reply.
Updated by Debendra Kandel almost 13 years ago
Below is my complete list of error:
root@vps01 [~/redmine]# rails s
=> Booting WEBrick
=> Rails 3.2.10 application starting in production on http://0.0.0.0:3000
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.10/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Access denied for user 'peace_reduse'@'localhost' (using password: YES) (Mysql2::Error)
from /usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/model_schema.rb:308:in `clear_cache!'
from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.10/lib/active_record/railtie.rb:97:in `block (2 levels) in <class:Railtie>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.10/lib/active_support/callbacks.rb:418:in `_run__669719650778072213__prepare__1903596676135925628__callbacks'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.10/lib/active_support/callbacks.rb:405:in `__run_callback'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.10/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.10/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.10/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.10/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/initializable.rb:54:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/application.rb:136:in `initialize!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /root/redmine/config/environment.rb:14:in `<top (required)>'
from /root/redmine/config.ru:4:in `require'
from /root/redmine/config.ru:4:in `block in <main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /root/redmine/config.ru:1:in `new'
from /root/redmine/config.ru:1:in `<main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/commands/server.rb:46:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/commands/server.rb:70:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/commands.rb:50:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.10/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Updated by Daniel Felix almost 13 years ago
Debendra Kandel wrote:
/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Access denied for user 'peace_reduse'@'localhost' (using password: YES) (Mysql2::Error)
Have you seen this?
Seems to be your database configuration or mysql-server.
Updated by Debendra Kandel almost 13 years ago
- Status changed from New to Resolved
I changed adapter: mysql to mysql2 and it worked.
Thanks for your support.
Updated by Daniel Felix almost 13 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid
No problemo.
I'm closing this and setting it to invalid, cause this wasn't a Redmine related bug.