Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Bot integration error : Failed to mmap

I am clueless as to how to fix this "Build Service error issues" when I try to integrate a Xcode bot on my OS X Server 4.0.

Everything works fine on this server, I even have another working bot on another branch of the same project.

It throws me

Bot Issue: error. Build Service Error. Issue: Failed to mmap. Could not write data: Invalid argument (-1).

Got no idea what to do...

Thanks in advance!

like image 302
olirip Avatar asked Jan 27 '15 11:01

olirip


1 Answers

This is apparently due to a bug in Xcode 6.1.1. In order to workaround, I reinstalled Xcode 6.1.

I was not able to just select another version of Xcode in the Server app, I had to completely reset the Xcode service (this will delete all your bots, you will have to recreate them):

sudo xcrun xcscontrol --reset

Before I could select Xcode 6.1 in the Server app I also had to run this command:

sudo xcrun xcscontrol --initialize

If someone feels very adventurous and would like to understand the root cause of the problem on Xcode 6.1.1, here is where the error comes from. The libgit2 binary is at /Xcode-6.1.1.app/Contents/Developer/usr/lib/libgit2.dylib

like image 133
0xced Avatar answered Sep 27 '22 18:09

0xced