프로젝트

일반

사용자정보

Redmine 저장소 선택 시 "Redmine 500 error"가 발생합니다.

박 민수이(가) 2019-03-27에 추가

1. 증상 설명

기존에 Redmine과 SVN을 연동해서 사용하고 있었습니다. SVN 로그와 변동사항을 쉽게 체크하기 위한 용도입니다.

그러나 대용량의 파일을 SVN Commit 한 이후 '저장소' 메뉴를 통해 SVN 기록에 접근할 수 없게 되었습니다.

혹시나 몰라서 해당 PC를 재부팅하고 서비스를 다시 시작해봤지만 여전히 저장소 메뉴를 통해 SVN에 접근이 안됩니다.

Redmine에서 '저장소' 메뉴를 클릭하면 (3)에 명시된 내용이 출력됩니다.

 

2. 사용 환경

  • CentOS Linux release 7.5.1804 
  • redmine-3.4.6
  • mysql  Ver 15.1 Distrib 5.5.56-MariaDB

 

3. 참고 자료

웹 페이지 내용

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

 

 

production.log 내용

Started GET "/projects/myproject/repository" for 192.xxx.xxx.xxx at 2019-03-27 11:04:28 +0900
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"myproject"}
  Current user: mspark (id=1)
Completed 500 Internal Server Error in 27556ms (ActiveRecord: 3613.3ms)

ActiveRecord::StatementInvalid (Mysql2::Error: MySQL client is not connected: ROLLBACK):
  app/models/repository/subversion.rb:71:in `block in fetch_changesets'
  app/models/repository/subversion.rb:70:in `reverse_each'
  app/models/repository/subversion.rb:70:in `fetch_changesets'
  app/controllers/repositories_controller.rb:86:in `show'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

 

도움이 필요합니다 ㅠㅠ.


답글 (2)

RE: Redmine 저장소 선택 시 "Redmine 500 error"가 발생합니다. - 커뮤니티 관리자이(가) 2019-03-29에 추가

에러 로그를 보면 Mysql2::Error: MySQL client is not connected로 나와서 DB contection 문제로 보여 집니다.

다만 다른 메뉴를 클릭했을 때는 정상적으로 나온다면 말씀하신 저장소가 대용량인 관계로 계속 돌다가 타임아웃으로 인해 커넥션이 끊긴 것일 수도 있습니다.

혹시 이 부분이 문제라고 하면 DB timout 설정을 늘려 주셔야 할 것 같습니다.

RE: Redmine 저장소 선택 시 "Redmine 500 error"가 발생합니다. - 박 민수이(가) 2019-04-03에 추가

답변 감사드립니다.

바로 이전에 COMMIT한 데이터 규모가 크기 때문에 발생한 것으로 확인되었습니다.

    (1-2/2)
    클립보드 이미지 추가 (최대 크기: 500 MB)