검색

레이블이 subversion인 게시물을 표시합니다. 모든 게시물 표시
레이블이 subversion인 게시물을 표시합니다. 모든 게시물 표시

2021년 3월 12일

MacOS 에서 SVN 사용중 cleanup 가 동작하지 않을때

맥에서 SVN 사용하는 경우에 아래와 같이 오류가 발생하면서 업데이트를 받지 못하는 경우가 있다. 대부분이 업데이트(up)를 진행중 통신오류가 발생하여 중지되는 경우에 발생되는 것 같다. 

svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

svn: E155004: 작업사본 '/Volumes/EXTERNAL/DOCS'을(를) 잠궜습니다.

svn: E155004: 경로('/Volumes/EXTERNAL/DOCS')는 이미 잠겨 있습니다

업데이트를 계속하기 위하여 cleanup 를 해보지만 아래  오류가 발생되어 진행이 불가하게 된다. 


 svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

 svn: E155004: 작업사본 '/Volumes/EXTERNAL/DOCS'을(를) 잠궜습니다.

 svn: E155004: 경로('/Volumes/EXTERNAL/DOCS')는 이미 잠겨 있습니다


구글 검색을 해보면 대부분이 .svn/wc.db 수정하여 해결했다고 하지만 이경우에 해당하는 방법은 아닌것 같다.

What should I do when 'svn cleanup' fails?

이문제는 아래 방법으로 해결이 가능했다. 


① 아래 명령을 실행하여 파일 플래그 값을 변경한다. 

chflags -R nouchg .svn


② 다음으로 cleanup 실행하고 업데이트를 진행하면 된다.

svn cleanup 

svn up .


2020년 9월 16일

CentOS 7.x 에서 subversion 1.8 사용하기

Subversion 서버에서 소스를 가져와서 실행할 수 있도록 리눅스 기반 개발서버를 구성하여 사용하고 있다. 서버의 Subversion 버전이 업그레이드 되면서 클라이언트에 해당하는 개발 서버 역시 svn 도구의 업그레이드가 필요하게 되었다. 문제는 개발 서버에 설치된 리눅스 CentOS 7.x 버전에서는 subversion 1.7.x 버전이 Yum 설치를 통하여 지원되는 최신 버전이라는 점이다. (1.8 이상을 설치해야 한다.)

svn: E155021: This client is too old to work with the working copy at
'/app/webapps/xxx' (format 31).
You need to get a newer Subversion client. For more details, see
  http://subversion.apache.org/faq.html#working-copy-format-change
  


yum update subversion 명령을 사용하여 업데이트를 진행하였으나 1.7.14-14.el7 이 지원되는 최신 버전이다. 구글 검색을 해보니 Subversion 1.8.x 설치를 위하여 새로운 Yum repository 를 추가하고 설치하면 된는 것 같다. 

① 새로운 파일 /etc/yum.repos.d/wandisco-svn.repo 만들고 아래 내용을 추가한다.

#vi /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0

② 설치된 subversion 를 제거하고 다시 설치한다.

yum remove subversion*
yum clean all
yum install subversion

마지막으로 설치가 끝나면  svn --version 명령을 사용하여 버전을 확인한다.

# svn --version

svn, version 1.8.19 (r1800620)
   compiled Aug 11 2017, 09:34:52 on x86_64-redhat-linux-gnu

Copyright (C) 2017 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.8
  - handles 'http' scheme
  - handles 'https' scheme



참고자료