Try to have the turtle setup like this
[turtle] [air] [jungle log]
and use this code to test:
if turtle.place() == true then
sleep(300)
turtle.dig()
else then
print("error placing the coco beans!")
end
Remember put the coco beans in the first slot of the turtle.