rsync 데이터 동기화 오류: rsync: mkstemp 또는 rsync: delete, Permission denied

1894 단어
장면:
jekines로 자바 프로젝트를 자동으로 구축할 때 rsync -arqz 명령 사용하기 - delete $WORKSPACE/target/yonghe-console/*[email protected]: yonghe-console --exclude-from= "/mnt/exclude.list", 동기화 데이터 타임즈 오류, 생성, 삭제 모든 오류:
rsync: mkstemp "() failed: Permission denied, 권한 부여 거부
eg:
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.Initializer.class.LTZegt" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.JspContextPathView.class.Q0kBSC" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.MySessionContext.class.DgxYuM" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.MySessionListener.class.4gym7V" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.SecurityConfiguration.class.hn8KJ5" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] rsync: mkstemp "/WEB-INF/classes/com/baoding/app/.SystemProperty.class.k8Oamf" (in yonghe-console) failed: Permission denied (13)
2018/11/11 18:52:29 [19827] inflate returned -3 (21 bytes)
2018/11/11 18:52:29 [19827] rsync error: error in rsync protocol data stream (code 12) at token.c(548) [receiver=3.0.9]
2018/11/11 18:52:29 [19827] rsync: connection unexpectedly closed (181 bytes received so far) [generator]
2018/11/11 18:52:29 [19827] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9]

솔루션:
1、yonghe-console 권한 부족:chown -R work.work yonghe-console 실행 후 rsync 서비스 다시 시작
2. rsync 프로필 사용자 정보 부분의 설정이 잘못되었습니다. 예를 들어 uid=work는 u=work로 작성됩니다.
 

좋은 웹페이지 즐겨찾기