deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Git clone loop

Open nmdgent-jefverme opened this issue 6 months ago • 2 comments

  • Deployer version: 7.4
  • Deployment OS: Ubuntu 18.04

Hi everyone

I ran into an issue today when I was upgrading an old project from deployer version 6 to version 7. Once the script gets to the update_code task, it gets stuck in an infinite loop:

[staging] Cloning into bare repository '/var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo'... [staging] ssh '-A' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=60' '-o' 'ControlPath=~/.ssh/[email protected]' '[email protected]' ': XXXXXXXXXXXXXXXXXXXX; bash -ls' [staging] run cd /var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo && (/usr/bin/git config --get remote.origin.url) [staging] [email protected]:newance/woonhaven.git [staging] ssh '-A' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=60' '-o' 'ControlPath=~/.ssh/[email protected]' '[email protected]' ': XXXXXXXXXXXXXXXXXXXX; bash -ls' [staging] run cd /var/www/staging.woonhavenantwerpen/wwwroot && (rm -rf /var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo) [staging] ssh '-A' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=60' '-o' 'ControlPath=~/.ssh/[email protected]' '[email protected]' ': XXXXXXXXXXXXXXXXXXXX; bash -ls' [staging] run cd /var/www/staging.woonhavenantwerpen/wwwroot && ([ -d /var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo ] || mkdir -p /var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo) [staging] ssh '-A' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=60' '-o' 'ControlPath=~/.ssh/[email protected]' '[email protected]' ': XXXXXXXXXXXXXXXXXXXX; bash -ls' [staging] run export GIT_TERMINAL_PROMPT='0' GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new'; cd /var/www/staging.woonhavenantwerpen/wwwroot && ([ -f /var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo/HEAD ] || /usr/bin/git clone --mirror [email protected]:newance/woonhaven.git /var/www/staging.woonhavenantwerpen/wwwroot/.dep/repo 2>&1)

Does anyone know what could be going wrong here?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

nmdgent-jefverme avatar Aug 26 '24 13:08 nmdgent-jefverme