Skip to content

update-users not working - fresh deploy #14849

@AMU-IT

Description

@AMU-IT

Freshly deployed on AWS EC2, when tried to ./algo update-users

Retain PKI option = y during initial setup.

To Reproduce

Steps to reproduce the behavior:

  1. Successful install of algo on AWS EC2 with retain PKI option as Y
  2. Update users section in config.cfg
  3. run ./algo update-users

Expected behavior

Users get updated according to what's in the config.cfg

Full log

uv (Python package manager) not found. Installing...
Attempting to install uv via system package manager...

Ubuntu detected. Additional trusted installation options available:

  1. pipx (official PyPI, installs ~9 packages)
    Command: sudo apt install pipx && pipx install uv

  2. snap (community-maintained by Canonical employee)
    Command: sudo snap install astral-uv --classic
    Source: https://github.com/lengau/uv-snap

  3. Continue to official installer script download

Choose installation method (1/2/3): 3

⚠️ SECURITY NOTICE ⚠️
uv is not available via system package managers on this system.
To continue, we need to download and execute an installation script from:
https://astral.sh/uv/install.sh (Linux/macOS)
https://astral.sh/uv/install.ps1 (Windows)

For maximum security, you can install uv manually instead:

  1. Visit: https://docs.astral.sh/uv/getting-started/installation/
  2. Download the binary for your platform from GitHub releases
  3. Verify checksums and install manually
  4. Then run: ./algo

Continue with script download? (y/N): y
Downloading uv installation script...
downloading uv 0.8.5 x86_64-unknown-linux-gnu

no checksums to verify
installing to /home/ubuntu/.local/bin
uv
uvx
everything's installed!
✓ uv installed successfully via official installer!
Uninstalled 1 package in 0.81ms
Installed 1 package in 3ms
[WARNING]: skipping vars_file item due to an undefined variable
Origin: /home/ubuntu/algo/users.yml:88:7

86 vars_files:
87 - config.cfg
88 - configs/{{ inventory_hostname }}/.config.yml
^ column 7

PLAY [Manage VPN Users] ************************************************************************************************

TASK [Get list of installed config files] ******************************************************************************
ok: [localhost]

TASK [Verify servers] **************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}

TASK [Build list of installed servers] *********************************************************************************
ok: [localhost]

TASK [Server address prompt] *******************************************************************************************
[ERROR]: Task failed: Finalization of task args for 'ansible.builtin.pause' failed: Error while resolving value for 'prompt': object of type 'str' has no attribute 'server'

Task failed.
Origin: /home/ubuntu/algo/users.yml:33:11

31 {% endfor %}]
32
33 - name: Server address prompt
^ column 11

<<< caused by >>>

Finalization of task args for 'ansible.builtin.pause' failed.
Origin: /home/ubuntu/algo/users.yml:34:11

32
33 - name: Server address prompt
34 pause:
^ column 11

<<< caused by >>>

Error while resolving value for 'prompt': object of type 'str' has no attribute 'server'
Origin: /home/ubuntu/algo/users.yml:35:21

33 - name: Server address prompt
34 pause:
35 prompt: |
^ column 21

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Task failed: Finalization of task args for 'ansible.builtin.pause' failed: Error while resolving value for 'prompt': object of type 'str' has no attribute 'server'"}

PLAY RECAP *************************************************************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions