Subversion 몇 가지 문제
1. Subversion 1.6 이 1.7 로 업그레이드 되 어 제출 오류: 'svn /!svn/me'path not found
인터넷 을 뒤 져 보 니 이런 메 시 지 를 찾 았 다.
인용 하 다.
Subversion E160013: '/svn/xxx/!svn/me' path not found* error(http://stackoverflow.com/questions/9928285/subversion-e160013-svn-xxx-svn-me-path-not-found-error)
I recently upgraded the bitnami trac stack (from 0.12.2-5 to 0.12.3) on our server and after reconfiguring all the scripts and repositories all seemed well. I was able to login and view the source code and browse through the repository using trac. I tested checking out the source code and I could browse the repository via both visualsvn and tortoise. But when it came to commiting changes made there was a problem. I got a path not found exception. Looking into the error log on the server all I could see was all get requests were fine, but posts had an incorrect url (!svn/me was appended at the end). After spending a couple of hours going through logs and configurations, since subversion was upgraded from 1.6 to 1.7, this include the new HttpV2 protocol. This protocol somehow affected access to the svn repositores, but only seems to affect posts and not gets. The way to disable the new features is by changes to the mod_dav_snv configuration locations as follows:
DAV svn
...
SVNAdvertiseV2Protocol Off
The issue was then resolved and we could check in our changes again. 이 단락 의 대 의 는 다음 과 같다.
인용 하 다.
그 는 최근 에 서버 에 있 는 Trac 를 업 그 레이 드 했 습 니 다. 버 전 라 이브 러 리 의 소스 코드 를 로그 인하 고 볼 수 있 습 니 다. 그 는 visualsvn 과 tooise 를 통 해 버 전 라 이브 러 리 checkout 을 할 수 있 지만 commiting changes 를 할 때 path not found 의 오 류 를 얻 었 습 니 다. (내 가 만난 문제 와 똑 같 습 니 다). 그 는 오류 로 그 를 보 았 습 니 다. 로그 에 있 는 모든 request 요청 이 정상 적 인 것 을 발 견 했 습 니 다. 그러나 post 요청 은 잘못된 url 을 따 랐 습 니 다. 모든 url 이 맨 끝 에 잘못 추가 되 었 습 니 다! svn / me. 그 는 로그 와 프로필 을 몇 시간 동안 보 았 습 니 다. subversion 이 1.6 에서 1.7 로 업그레이드 되 었 을 때 새로운 HttpV 2 protocol 이 포함 되 어 있 는 것 을 발 견 했 습 니 다. 이 프로 토 콜 은 영향 을 미 쳤 습 니 다.svn 버 전 라 이브 러 리 에 접근 하 였 으 나 pots 에 만 영향 을 주 었 을 뿐 gets 는 영향 을 받 지 않 았 습 니 다. 이 새로운 기능 을 사용 하지 않 는 방법 은 mod dav svn 의 로 컬 설정 을 변경 하 는 것 입 니 다. 다음 과 같 습 니 다.
DAV svn
...
SVNAdvertiseV2Protocol Off
이 방법 에 따라 제 httpd. conf 파일 을 고 친 후에 문제 도 해결 되 었 습 니 다. 이 사심 없 는 문제 공헌 자 에 게 감 사 드 립 니 다.
2. svn "cannot set LC CTYPE locale" 문제 해결
Linux 에서 svn 명령 을 실행 할 때 오류 경고 가 발생 했 습 니 다.
svn : warning : cannot set LC_CTYPE locale
svn : warning : environment variable LANG is en_US . UTF - 8
svn : warning : please check that your locale name is correct
Type ' svn help ' for usage .
해결 방법: 수정 / etc / profile:
sudo vi /etc/profile
한 줄 추가: export LC ALL = C
그리고 실행: source /etc/profile
3. php 웹 페이지 에서 exec 를 실행 합 니 다 -- svn update
&1
/var/args :
p
yes
이것 은 svn up 을 처음 실행 할 때 상호작용 으로 정 보 를 확인 하 라 고 요구 할 수 있 기 때 문 입 니 다 (예 를 들 어 svn 비밀번호 가 영구적 으로 저장 되 는 지 확인 하 는 등). 파 이 프 를 통 해 입력 해 야 합 니 다.
이상 의 쓰기 방법 은 천의무봉 이 라 고 생각 했 지만 그렇지 않 았 습 니 다. sudo 설정 정 보 는 phop 웹 페이지 에서 사용자 (저 는 apache) 가 svn 명령 을 수행 할 수 있 는 적당 한 권한 을 가 져 야 하기 때 문 입 니 다.
이 를 위해 sudo 프로필 을 수정 하고 visudo 명령 과 같은 직접 키 를 눌 러 프로필 을 편집 합 니 다.
1. 주석 기본 값 requiretty
Defaults requiretty 는 터미널 을 제어 할 필요 가 없다 는 뜻 으로 \ # Defaults requiretty 로 변경 되 었 습 니 다.
그렇지 않 으 면 sudo 가 나타 납 니 다: 죄송합니다. sudo 를 실행 하려 면 tty 가 있어 야 합 니 다.
2. 줄 추가 기본 값 visiblepw
그렇지 않 으 면 sudo: no tty present and no askpass program specified
3. apache 사용자 에 게 svn 권한 부여
예 를 들 어, 추가 줄: apache ALL = (ALL) NOPASSWD: / usr / bin / svn
주: NOPASSWD 는 명령 을 실행 할 때 apache 사용자 의 암 호 를 대화 식 으로 입력 하지 않 아 도 됩 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.