Gitlab.com FTPS deploy to site not working for top-level domain overwite *only* (works for new directories)

First of all; If I look at your logs you seem to be having some SSL/TLS issues.

Second; Have a look here: Gitlab-ci issue

It seems like the -R option of lftp isn’t always working that well.