Hey,
I’ve run through the help docs and all works fine locally but facing an issue deploying. I’ve provisioned on Vultr with the following spec in spin.yml:
Vultr
- name: vultr_1c_1gb_ubuntu2404
provider: vultr
profile_config:
region: lhr
plan: vc2-1c-1gb
os: “Ubuntu 24.04 LTS x64”
backups: true
But running spin deploy
gives me the following error:
Successfully built ‘127.0.0.1:5080/dockerfile:20250127220709’ from ‘Dockerfile’…
Getting deployment host information for “production”…
PLAY [Prepare CI environment.] *******************************************************************************************************************************
TASK [Display failure if required variables are not set.] ****************************************************************************************************
skipping: [localhost] => (item=spin_environment)
skipping: [localhost] => (item=spin_ci_folder)
skipping: [localhost]
TASK [Add hosts from manager_servers group to managers group if it exists] ***********************************************************************************
skipping: [localhost]
TASK [Validate inventory groups exist] ***********************************************************************************************************************
skipping: [localhost]
TASK [Set fact of full path to CI folder] ********************************************************************************************************************
ok: [localhost]
TASK [Set PRODUCTION_SSH_REMOTE_HOSTNAME with first manager host] ********************************************************************************************
ok: [localhost]
TASK [Set AUTHORIZED_KEYS file with sudo users’ SSH keys] ****************************************************************************************************
ok: [localhost]
PLAY [Update deploy user authorized keys.] *******************************************************************************************************************
PLAY RECAP ***************************************************************************************************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0
Authorized keys loaded and exported as AUTHORIZED_KEYS
Deploying to Swarm Manager: XXX.XXX.XXX.XXX
Creating SSH tunnel to Docker registry…
Enter passphrase for key ‘/Users/XXXXXXX/.ssh/id_ed25519’:
SSH tunnel created successfully
Tunnel details:
Local port: 5080
Remote host: XXX.XXX.XXX.XXX
Remote port: 5080
SSH user: deploy
SSH port: 22
The tunnel will forward connections from the remote port 5080 to 127.0.0.1:5080
Deploying Docker stack…
Deploying Docker stack with compose files: docker-compose.yml docker-compose.prod.yml on XXX.XXX.XXX.XXX…
unknown flag: --detach
See ‘docker stack deploy --help’.
Failure detected. Cleaning up local services…
Stopping local Docker registry…
Local Docker registry stopped.
Stopping local SSH tunnel…
Local SSH tunnel stopped.