ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Windows 환경에서 Redmine 실행을 위한 환경설정 중 에러 발생시 Tip
    예전 글들/Redmine 2015. 9. 24. 15:06
    반응형
    • ImageMagick(rmagick) 빌드 실패 (bundle install 명령어 실행 중)
      1. Windows 환경에서 Redmine 설치에 필요한 gem들을 중에 rmagick build 하다 실패하여 설치를 못했다. (Redmine 설치 가이드 중 4단계에 해당함. Redmine INSTALL doc 참조)
      2. 구글링 해보니, Redmine 홈페이지에 가이드가 있었다.
        http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows
        위의 사이트의 내용대로 하면되는데,
      3. Windows용 ImageMagick은 자신의 PC 환경에 맞는 DLL을 다운 받아서 설치하면 된다.

    • Rake 명령어 실행 중 Nokogiri 로드 실패로 인한 에러 메시지
      1. rake 명령어로 데이터베이스 구성 중에 아래와 같이 에러 메시지가 발생하여 Nokogiri 를 다시 설치하였다.
      2. 에러 메시지

         D:\projects\redmine\redmine-3.1.1>rake db:migrate RAILS_ENV="production"

        rake aborted!

        NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper

        D:/projects/redmine/redmine-3.1.1/config/application.rb:5:in `<top (required)>'

        D:/projects/redmine/redmine-3.1.1/Rakefile:5:in `<top (required)>'

        LoadError: cannot load such file -- actionpack-action_caching

        D:/projects/redmine/redmine-3.1.1/config/application.rb:5:in `<top (required)>'

        D:/projects/redmine/redmine-3.1.1/Rakefile:5:in `<top (required)>'

        (See full trace by running task with --trace)

      3. 설치 방법은 아주 간단하다.
      4. ruby-2.2.2-nokogiri-1.6.6.2-x86-x64-mingw32.gem를 다운받는다.(https://github.com/paulgrant999/ruby-2.2.2-nokogiri-1.6.6.2-x86-x64-mingw32.gem)
      5. gem 파일을 다운 받은 경로가서 gem install --local nokogiri-1.6.6.2-x86-mingw32.gem(파일경로) 치면 설치된다.
      6. 그 다음에 다시 rake 명령어로 데이터베이스 구성을 하면 된다.

    • Redmine 접속 중 ERROR RuntimeError: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` 에러 메시지 함께 접속 실패
      1. 몇번의 뻘짓과 우여곡절 끝에 접속 성공 기쁜 마음으로 http://localhost:3000에 접속했으나
      2. 위의 에러 메시지와 함께 접속 실패
      3. 혹시 몰라서 redmine홈디렉토리\config 폴더의 파일들 중에 configuration.yml 에 secret_token 설정 변수가 있었다.
      4. configuration.yml을 열어
      5. 설정 전문

          # Your secret key for verifying cookie session data integrity. If you

          # change this key, all old sessions will become invalid! Make sure the

          # secret is at least 30 characters and all random, no regular words or

          # you'll be exposed to dictionary attacks.

          #

          # If you have a load-balancing Redmine cluster, you have to use the

          # same secret token on each machine.

          #secret_token: 'change it to a long random string'

      6. #secret_token: '이 부분에 30자 이상의 텍스트 아무거나 입력하면 된다.'
      7. ruby bin/rails server -e production 다시 실행하여
      8. http://localhost:3000 에 접속하면, 드디어 Redmine 화면을 볼 수 있다.


    반응형

    댓글

Designed by Tistory.