환경
mac yosemiti 10.10.1
jenkins설치 파일로 설치함.(brew나 톰캣으로 설치하지 않음)
현상
launchdaemon으로 등록되어 있어서 자동으로 실행이된다(컴터 켤때마다)
근데 갑자기 페이지를 띄울수 없다고 나온다.
ERR_CONNECTION_REFUSED브라우져에서 이런 에러를 내보낸다. ㅡㅡ;
추적
각종로그를 봤다.
1.jenkins 로그 /var/log/jenkins/jenkins.log
Dec 17 00:30:00 Mac-mini newsyslog[3784]: logfile turned over
딸랑 이로그 하나다.
어제 작업한 로그인데.
아무 정보도 얻을수 없어서 다른 로그를 분석햇다.
2.system.log /var/log/system.log
com.apple.xpc.launchd[1] (org.jenkins-ci[965]): Service could not initialize: 14B25: xpcproxy + 14045 [1344][1016C726-9ACF-3A24-9C51-A279F5C6B167]: 0xd
뭔가 하나가 뜨긴떴다.
근데 뭔지 모르겠다.
구글로 검색해본결과
http://stackoverflow.com/questions/26483089/launchd-is-not-starting-jenkins-server-on-os-x-yosemite
스택오버플로어에 자세히 나와있다.
shutdown하거나 systemerror가 있을때 로그에 기록해야 하는데 퍼미션이 문제라고 한다.
그래서 퍼미션을 고쳐주면 된다.
해결
Ensure you have Java installed. The 10.10 installer, at least in my case, removed Apple's Java 6. The installed java must satisfy the
/usr/bin/java*
links. These point to/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands
. When installing Oracle Java you need the JDK not the JRE to meet this requirement.chown jenkins /var/log/jenkins/jenkins.log
Make sure
/var/log/jenkins
is owned by jenkins and searchable by anyone (mode 755). It will likely already be in this state.Edit the file
/etc/newsyslog.d/jenkins.conf
, changing/var/log/jenkins/jenkins.log 644 3 * $D0 J
to
/var/log/jenkins/jenkins.log jenkins:jenkins 644 3 * $D0 J
This ensures that new log files created during nightly log rotation are owned by jenkins. If you do not do this, you will need to repeat step 2 every day.
'젠킨스' 카테고리의 다른 글
젠킨스 외부호출 (1) | 2015.07.15 |
---|---|
jenkins에서 xcode 빌드하기 (0) | 2014.12.18 |
젠킨스에서 바이너리 파일 모을때 readme.md 작성해주기 (0) | 2014.12.18 |
젠킨스 xcode 연동하기 (0) | 2014.12.15 |
mac에서 jenkins 업그레이드하기 (0) | 2014.12.14 |