svn을 통해 관리되는 서버에 접속 실패되는 이슈가 발생하여 해결방안을 정리하였습니다.
- Error 내용 (Server SSL certificate verification failed)
svn: E230001: Server SSL certificate verification failed: certificate issued for a different hostname, issuer is not trusted
- 시도한 방법
svn list {svn 주소}
{svn 주소}에 domain과 port가 있는 경우 port까지 추가하여 명령어를 실행 하면 될 줄 알았지만 해결되지 않고 다른 에러 확인.
ex)
- svn list https://thewayhj.tistory.com:443 -> does not support the http/dav protocol 에러 발생.
- Error 내용 ( {server} does not support the http/dav protocol)
The server at '${server}' does not support the HTTP/DAV protocol.
해당 이슈는 Totoise SVN version이 1.11 이상일 때 발생한다고 합니다.
해결 하기 위해선 version 을 1.11 보다 낮은 버전으로 다운받아 재설치하면 해결된다고 하였지만
downgrade 하고 싶지 않아 다른 방법을 찾아보기로 하였습니다.
구글링을 통해 svn repository 별로 각각 인증서를 추가해줘야한다고 하여 {svn 주소}에 repository까지 포함된 경로를 입력하여 시도하였습니다.
- 시도한 방법
svn list {repository까지 포함된 svn 주소}
ex.
- svn list https://thewayhj.tistory.com:443/manage/newpost > 이런식으로 URL 전체를 입력해야 해결됨.
{repository까지 포함된 svn 주소}가 포함된 svn list 명령어 입력 후 정상적으로 svn에는 연결이 되었지만,
이전에 있던 소스가 있어서 그런지 svn switch error - is not the same repository 에러 발생.
is not the same repository 에러는 svn에서 제공하는 명령어 중 switch 나 relocate 명령어를 통해 해결이 가능하다고 하지만
해당 명령어가 어떻게 동작하는지 확인을 하지 못해 급한대로 local에 있는 svn 디렉토리 삭제 후 다시 checkout을 통해
정상적으로 접근하는 부분을 확인하였습니다.
is not the same repository 에러는 아래 stackoverflow를 통해 svn switch / relocate 명령어를 통해 해결 하면 좋을 것 같습니다.
https://stackoverflow.com/questions/925698/svn-switch-error-is-not-the-same-repository
참고 사이트
https://groups.google.com/g/scmmanager/c/2iRdYELyyWQ
https://stackoverflow.com/questions/53129732/did-github-shut-down-its-support-for-subversion-clients
https://stackoverflow.com/questions/925698/svn-switch-error-is-not-the-same-repository