Translate

[Redmine] BitNami Redmine Stack 서비스 구동 시 Thin_redmine 서비스만 Stopped 되는 문제



증상

BitNami Redmine Stack 프로그램에서 'Start All' 버튼을 클릭 시
Thin_redmine
Thin_redmine2
두개의 서비스만 Running 에서 몇 초 지나면 Stopped 로 상태가 변하는 증상




Redmine 접속 시 다음과 같이 화면이 보여진다.








방법

콘솔에서 Thin_redmine 을 직접 띄워서 로그를 보면 원인을 알 수가 있다.

1. Use BitNami Redmine Stack 을 실행한다.


2. 아래와 같이 redmine 을 기동시킨다.


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Bitnami\redmine-2.2.0-0>cd apps\redmine\htdocs

C:\Bitnami\redmine-2.2.0-0\apps\redmine\htdocs>bundle exec thin start -e production -p 3001 --prefix /redmine




PS.
bundle exec thin start -e production -p 3001 --prefix /redmine
위의 명령어를 입력 시 GUI 툴에서 Thin_redmine 을 구동시킨 것과 같다.
정상적으로 명령어가 수행 시 프롬프트가 나타나지 않으며 Redmine 웹페이지에 정상적으로 접속이 가능하다.









다음과 같은 경우가 있다.

1. DB 연결에 문제가 있는경우
  (Redmine 을 백업&복구 시키는 경우에 mysqldump 를 이용했다면 발생할 수 있다.)
  (DB접속 계정의 패스워드가 틀렸을 것이다.)


C:\Bitnami\redmine-2.2.0-0\apps\redmine\htdocs>bundle exec thin start -e production -p 3001 --prefix /redmine
>> Using rack adapter
C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/client.rb:44:in `connect': Access denied for user 'bitnami'@'localhost' (using password: YES) (Mysql2::Error)
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/client.rb:44:in `initialize'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/model_schema.rb:308:in `clear_cache!'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.9/lib/active_record/railtie.rb:97:in `block (2 levels) in <class:Railtie>'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:418:in `_run__347369653__prepare__704607500__callbacks'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `instance_exec'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `run'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `each'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `run_initializers'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:136:in `initialize!'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from C:/Bitnami/redmine-2.2.0-0/apps/redmine/htdocs/config/environment.rb:14:in `<top (required)>'
        from C:/Bitnami/redmine-2.2.0-0/apps/redmine/htdocs/config.ru:3:in `require'
        from C:/Bitnami/redmine-2.2.0-0/apps/redmine/htdocs/config.ru:3:in `block in <main>'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
        from C:/Bitnami/redmine-2.2.0-0/apps/redmine/htdocs/config.ru:1:in `new'
        from C:/Bitnami/redmine-2.2.0-0/apps/redmine/htdocs/config.ru:1:in `<main>'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in `eval'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in `load'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:45:in `for'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:169:in `load_adapter'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:73:in `start'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
        from C:/Bitnami/redmine-2.2.0-0/ruby/lib/ruby/gems/1.9.1/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
        from C:/Bitnami/redmine-2.2.0-0/ruby/bin/thin:23:in `load'
        from C:/Bitnami/redmine-2.2.0-0/ruby/bin/thin:23:in `<main>'

C:\Bitnami\redmine-2.2.0-0\apps\redmine\htdocs>





2. 특정 번들(모듈)을 찾을 수 없는경우
  (bundle install 명령어로 설치 및 복구)


C:\Bitnami\redmine-2.2.0-0\apps\redmine\htdocs>bundle exec thin start -e product
ion -p 3001 --prefix /redmine
[31mCould not find vpim-0.695 in any of the sources [0m
[33mRun `bundle install` to install missing gems. [0m

C:\Bitnami\redmine-2.2.0-0\apps\redmine\htdocs>bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/.........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.9)
Using builder (3.0.0)
Using activemodel (3.2.9)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.2.1)
Using actionpack (3.2.9)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.9)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.9)
Using activeresource (3.2.9)
Using coderay (1.0.6)
Using daemons (1.1.8)
Using eventmachine (1.0.0)
Using rack-ssl (1.3.2)
Using json (1.7.5)
Using rdoc (3.12)
Using thor (0.15.4)
Using railties (3.2.9)
Using jquery-rails (2.0.3)
Using mysql2 (0.3.11)
Using net-ldap (0.3.1)
Using ruby-openid (2.1.8)
Using rack-openid (1.3.1)
Using bundler (1.2.1)
Using rails (3.2.9)
Using rmagick (2.13.1)
Using thin (1.3.1)
Installing vpim (0.695)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem
is installed.

C:\Bitnami\redmine-2.2.0-0\apps\redmine\htdocs>




참조: http://180bpm.tistory.com/97



연관글
[Redmine] BitNami Redmine Stack - 2.2.0-0 백업 및 복구
[Redmine] 이전 버전의 BitNami Redmine Stack


댓글