The deployer script locks the deployment while it is running, as to prevent multiple deploy processes to be executed at the same time. Unfortunately if one deploy process completely breaks (i.e. does not get to the unlock part) the deployment stays locked indefinitely. To remedy this situation the deployment needs to get manually unlocked.

Solve this by:

  1. logging in to the server that the deployer is deploying to
  2. go to the path that the deployer is deploying to
  3. remove .dep/deployer.lock file

You can now retry the deployment job in Gitlab.