在mac osx 10.8上作为守护进程运行时,Buildbot失败

时间:2015-06-29 23:52:42

标签: macos daemon launchd buildbot

我已经建立了一个buildlave来管理我房间里的小苹果电脑上的mac osx构建。一切顺利安装,在我知道之前,我的苹果服务器开始在最初的几个版本中完成,没有任何问题。

看到一切都完美无瑕,我根据本指南将buildslave添加为守护进程: http://trac.buildbot.net/wiki/UsingLaunchd

一次重启并$ sudo launchctl start ch.pixelcloud.game.lightship之后,它就停止了工作。我注意到当我通过SSH启动buildslave并关闭我的SSH连接时它也会停止工作。

经过一些谷歌搜索后,我发现当启动进程的用户注销时,程序会丢失一些常用功能(在本例中为DNS查找)。我似乎已经通过在DNS服务器列表中添加8.8.8.8来解决这个问题,但现在我遇到了另一个问题,我不能在我的生活中找出导致它的原因。

这是buildbot的web界面中的错误输出:

git --version
in dir /Users/thecomet/buildbot/slaves/lightship/basedir/test-macosx-i686-applebloom/build (timeout 1200 secs)
watching logfiles {}
argv: ['git', '--version']
environment:
  HOME=/Users/thecomet
  LOGNAME=thecomet
  PATH=/usr/bin:/bin:/usr/sbin:/sbin
  PWD=/Users/thecomet/buildbot/slaves/lightship/basedir/test-macosx-i686-applebloom/build
  SHELL=/bin/zsh
  TMPDIR=/var/folders/zS/zSzxVZUsHyOdGytmqY0aUE+++TM/-Tmp-/
  USER=thecomet
  __CF_USER_TEXT_ENCODING=0x1F6:0:0
using PTY: False
Upon execvpe git ['git', '--version'] in environment id 4320746024
:Traceback (most recent call last):
  File "/Users/thecomet/buildbot/slaves/lightship/lightship/lib/python2.7/site-packages/twisted/internet/process.py", line 424, in _fork
environment)
  File "/Users/thecomet/buildbot/slaves/lightship/lightship/lib/python2.7/site-packages/twisted/internet/process.py", line 502, in _execChild
os.execvpe(executable, args, environment)
  File "/Users/thecomet/buildbot/slaves/lightship/lightship/bin/../lib/python2.7/os.py", line 355, in execvpe
_execvpe(file, args, env)
  File "/Users/thecomet/buildbot/slaves/lightship/lightship/bin/../lib/python2.7/os.py", line 382, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
program finished with exit code 1
elapsedTime=0.012076

Slave twistd.log:

2015-06-30 01:41:03+0200 [Broker,client]  startCommand:shell [id 761]
2015-06-30 01:41:03+0200 [Broker,client] RunProcess._startCommand
2015-06-30 01:41:03+0200 [Broker,client]  git --version
2015-06-30 01:41:03+0200 [Broker,client]   in dir /Users/thecomet/buildbot/slaves/lightship/basedir/test-macosx-i686-applebloom/build (timeout 1200 secs)
2015-06-30 01:41:03+0200 [Broker,client]   watching logfiles {}
2015-06-30 01:41:03+0200 [Broker,client]   argv: ['git', '--version']
2015-06-30 01:41:03+0200 [Broker,client]  environment: {'SHELL': '/bin/zsh', '__CF_USER_TEXT_ENCODING': '0x1F6:0:0', 'PWD': '/Users/thecomet/buildbot/slaves/lightship/basedir/test-macosx-i686-applebloom/build', 'LOGNAME': 'thecomet', 'USER': 'thecomet', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/Users/thecomet', 'TMPDIR': '/var/folders/zS/zSzxVZUsHyOdGytmqY0aUE+++TM/-Tmp-/'}
2015-06-30 01:41:03+0200 [Broker,client]   using PTY: False
2015-06-30 01:41:03+0200 [-] command finished with signal None, exit code 1, elapsedTime: 0.012076
2015-06-30 01:41:03+0200 [-] SlaveBuilder.commandComplete <buildslave.commands.shell.SlaveShellCommand instance at 0x10186c1b8>

Master twistd.log:

2015-06-30 01:41:19+0200 [-] <Build test-macosx-i686-applebloom>.startBuild
2015-06-30 01:41:19+0200 [-] [Contact] Builder <buildbot.status.builder.BuilderStatus instance at 0x7fdc28bb3368> with tags None started
2015-06-30 01:41:19+0200 [-] <RemoteShellCommand '['git', '--version']'>: RemoteCommand.run [761]
2015-06-30 01:41:19+0200 [-] command '['git', '--version']' in dir 'build'
2015-06-30 01:41:19+0200 [Broker,42,(ip removed)] <RemoteShellCommand '['git', '--version']'> rc=1
2015-06-30 01:41:19+0200 [-] Source step failed while running command <RemoteShellCommand '['git', '--version']'>
2015-06-30 01:41:19+0200 [-] releaseLocks(<buildbot.steps.source.git.Git object at 0x7fdbf56f2810>): []

我可以确认目录是否存在。为什么我会收到此错误?

如果相关的话,这是构建文件的$ uname -a

Darwin applebloom 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

我正在使用Buildslave版本0.8.12和Twisted版本15.2.1。

0 个答案:

没有答案