does pushing the gate closed while hitting the switch help?
the "door open" switch is activated by the lock
i would assume that if the relay is clicking, either the relay is going wonk or you're having a bit of a voltage drop.
best advice is to find the diagram and troubleshooting. relay...