Strange problem with disk tray

I have a bit of a strange problem with the optical drive. When closed, it says opening. And when you open it, it closes immediately. But when I detach the tray from the optical driver, then I works fine. And when It reattach the tray, the problem returns. I cant figure it out. Any help?

crwdns2893858:0crwdne2893858:0 crwdns2893862:0crwdne2893862:0

crwdns2894050:0crwdne2894050:0

crwdns2889612:0crwdne2889612:0 0
crwdns2892346:0crwdne2892346:0