프로젝트 관리 - 이슈관리 로 레드마인(redmine) 을 사용하고 있다.
설치위치는 보통 /opt/redmine-2.5.1-0/ 이다. (그사이 버전업이 되었나 보다 업그레이드를 해야겠네...)
자세한 설치방법은 생략. CKeditor 플러그인을 설치하고자 한다.
플러그인 위치는 {레드마인설치위치}/apps/redmine/htdocs/plugins 이다.
# git clone https://github.com/a-ono/redmine_ckeditor.git
명령을 해주면 된다.
접속 에러가 나는 경우 zip 파일을 받아서 풀어줘도 된다.
# wget https://github.com/a-ono/redmine_ckeditor/archive/master.zip
추가로 필요한 패키지를 설치해준다.
# apt-get install imagemagick
apps/redmine/htdocs 에서
# rake redmine:plugins:migrate RAILS_ENV=production
bitnami 패키지에서는 imagemagick 를 설치하면 다음과 같은 에러가 난다.
rake aborted!
This installation of RMagick was configured with ImageMagick 6.7.5 but ImageMagick 6.7.7-10 is in use.
위 메시지는 imagemagick 를 설치하지 않으면 통과한다.
그러나 다른 문제가.
http://www.jenkins.or.kr/boards/4/topics/225?r=274 에서 언급된 문제.
plugins/redmine_ckeditor# bundle install --without development test
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...................................
Bundler could not find compatible versions for gem "mime-types":
In Gemfile:
rich (= 1.4.6) ruby depends on
mime-types (~> 1.16) ruby
rich (= 1.4.6) ruby depends on
mime-types (2.2)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rich (= 1.4.6) ruby depends on
activesupport (= 4.0.0) ruby
paperclip (~> 3.5.4) ruby depends on
activesupport (3.0.0)
다음 명령으로 새버전을 설치한다?
gem install mime-types rich paperclip activesupport kaminari htmlentities rich
비슷한 이슈가 있지만, 해결이 안된다
https://github.com/a-ono/redmine_ckeditor/issues/110
다음 명령으로 관련 패키지 설치
# bundle install --no-deployment
# bundle update 해주면 진행하다가 rmagick 쪽에서 에러가 난다
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't
install RMagick 2.13.2. Can't find Magick-config in
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.9.1
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rmagick-2.13.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/rmagick-2.13.2/ext/RMagick/gem_make.out
An error occurred while installing rmagick (2.13.2), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.
관련 패키지가 빠진 것 같다.
# apt-get install libmagickwand-devc
다시 bundle update 해서 설치해주고.
# rake redmine:plugins:migrate RAILS_ENV=production
Migrating collapsed_journals (Collapsed Journals Plugin)...
Migrating progressive_projects_list (Progressive Projects List plugin)...
Migrating redmine_agile (Redmine Agile plugin)...
Migrating redmine_ckeditor (Redmine CKEditor plugin)...
== CreateRichRichImages: migrating ===========================================
-- create_table(:rich_rich_images)
-> 0.2280s
== CreateRichRichImages: migrated (0.2292s) ==================================
== AddUriCacheToRichImage: migrating =========================================
-- add_column(:rich_rich_images, :uri_cache, :text)
-> 0.0233s
== AddUriCacheToRichImage: migrated (0.0246s) ================================
== RefactorImageToFile: migrating ============================================
-- rename_table(:rich_rich_images, :rich_rich_files)
-> 0.0043s
-- rename_column(:rich_rich_files, :image_file_name, :rich_file_file_name)
-> 0.1082s
-- rename_column(:rich_rich_files, :image_content_type, :rich_file_content_type)
-> 0.0202s
-- rename_column(:rich_rich_files, :image_file_size, :rich_file_file_size)
-> 0.0197s
-- rename_column(:rich_rich_files, :image_updated_at, :rich_file_updated_at)
-> 0.0229s
-- add_column(:rich_rich_files, :simplified_type, :string, {:default=>"file"})
-> 0.0176s
== RefactorImageToFile: migrated (0.2029s) ===================================
Migrating redmine_code_review (Redmine Code Review plugin)...
Migrating redmine_favorite_projects (Redmine Favorite Projects plugin)...
Migrating redmine_issue_checklist (Redmine Issue Checklist plugin)...
Migrating redmine_issue_history (redmine_issue_history)...
Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
Migrating redmine_sticky_messages (Redmine Sticky Messages plugin)...
Migrating sidebar_hide (Sidebar Hide Plugin)...
이제 좀 정상인 것 같다.
그래도 안되네...
apache 쪽의 로그를 살펴봤다.
App 31726 stdout:
App 31726 stdout:
[
2014-06-11 03:30:47.1599 31473/7f601e1ef700
Pool2/Implementation.cpp:883 ]: Could not spawn process for group
/opt/redmine-2.5.1-0/apps/redmine/htdocs#default: An error occured while
starting up the preloader.
in 'void
Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)'
(SmartSpawner.h:455)
in 'std::string
Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)'
(SmartSpawner.h:566)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:206)
in 'virtual Passenger::ApplicationPool2::ProcessPtr
Passenger::ApplicationPool2::SmartSpawner::spawn(const
Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:752)
in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const
Passenger::ApplicationPool2::SpawnerPtr&, const
Passenger::ApplicationPool2::Options&, unsigned int)'
(Implementation.cpp:804)
[ 2014-06-11 03:30:47.1603 31473/7f6017fff700 agents/HelperAgent/RequestHandler.h:2210 ]: [Client 23] Cannot checkout session.
Error page:
<p>It
looks like Bundler could not find a gem. Maybe you didn't install all
the gems that this application needs. To install your gems, please
run:</p>
<pre class="commands">bundle install</pre>
<p>If
that didn't work, then the problem is probably caused by your
application being run under a different environment than it's supposed
to. Please check the following:</p>
<ol>
<li>Is this app supposed to be run as the <code>daemon</code> user?</li>
<li>Is this app being run on the correct Ruby interpreter? Below you will
see which Ruby interpreter Phusion Passenger attempted to use.</li>
</ol>
<p>-------- The exception is as follows: -------</p>
Could not find rake-10.1.1 in any of the sources (Bundler::GemNotFound)
<pre>
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/spec_set.rb:92:in
`block in materialize'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/spec_set.rb:85:in `map!'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/spec_set.rb:85:in `materialize'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/definition.rb:133:in `specs'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/definition.rb:178:in `specs_for'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/definition.rb:167:in `requested_specs'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/environment.rb:18:in `requested_specs'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:13:in `setup'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler.rb:119:in `setup'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.5.3/lib/bundler/setup.rb:17:in `<top (required)>'
/opt/redmine-2.5.1-0/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
/opt/redmine-2.5.1-0/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
/opt/redmine-2.5.1-0/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/lib/phusion_passenger/loader_shared_helpers.rb:245:in
`block in run_load_path_setup_code'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/lib/phusion_passenger/loader_shared_helpers.rb:348:in
`running_bundler'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/lib/phusion_passenger/loader_shared_helpers.rb:243:in
`run_load_path_setup_code'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:100:in `preload_app'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:158:in
`<module:App>'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:29:in
`<module:PhusionPassenger>'
/opt/redmine-2.5.1-0/ruby/lib/ruby/gems/1.9.1/gems/passenger-4.0.40/helper-scripts/rack-preloader.rb:28:in
`<main>'</pre>
뭔가 되는 듯 싶더니, Passenger 가 정상 로드되지 못하는 듯 하다.
bitnami 의 실행스크립트 ./ctlscript.sh restart 로 재시작 해준다.
=> 실패. 뭔가 충돌이 나는 듯 함.
댓글을 달아 주세요
안녕하세요~ reminie 2.5.1에 ckeditor 붙이는거 혹시 성공 하셨나요?
비밀댓글입니다