Skip to content

Installation fails on Ubuntu 22.04 with cast 0.16.22 #666

@packetchef

Description

@packetchef

Install seems to be failing on indxparse, though indxparse also seems to be at least partially installed as /opt/indxparse exists. I have been able to reproduce this multiple times on both Ubuntu 22.04.

I have a fresh Ubuntu 22.04 EC2 instance:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy
$ uname -a
Linux siftworkstation 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

I have downloaded latest release of cast:

$ cast --version
cast version v0.16.22

I start an install of SIFT:

$ sudo cast install teamdfir/sift
WARN[0000] using unauthenticated github client, could result in API rate limiting
INFO[0000] checking operating system support             component=distro owner=teamdfir repo=sift-saltstack
INFO[0000] operating system is supported                 component=distro owner=teamdfir repo=sift-saltstack
INFO[0000] rendering manifest                            component=distro owner=teamdfir repo=sift-saltstack
INFO[0000] distro validated successfully                 command=install
INFO[0000] downloading archive file                      component=distro owner=teamdfir repo=sift-saltstack version=v2025.06.19
<snip>

I see some successful indxparse related installs during the process:

<snip>
INFO[0509] state completed                               component=installer duration=11316.714 state=python3-wxgtk4.0 time_begin="18:40:26.523655" time_end="18:40:37.840370"
INFO[0512] state completed                               component=installer duration=3644.543 state=/opt/indxparse time_begin="18:40:37.849801" time_end="18:40:41.494343"
INFO[0518] state completed                               component=installer duration=2754.374 state=/opt/java-idx-parser time_begin="18:40:44.083911" time_end="18:40:46.838285"
<snip>

However, install issues a warning about indxparse and ends with a "completed but has failed states" error:

WARN[2735] first failed state                            comment="One or more requisite failed: sift.python3-packages.indxparse.sift-python3-package-indxparse" component=installer run_num=72 sls=sift.python3-packages.indxparse
INFO[2735] statistics                                    component=installer failed=16 success=782 total=798
INFO[2735] salt-call completed but had failed states     component=installer
FATA[2735] salt-call completed but had failed states

I can see in saltstack.log (attached, line 916) where cast notes that indxparse may already be installed with a "Requirement already satisfied" error. I am not sure if that's an actually impactful error, but later in the log line 985 indicates there was an actual installation problem with indxparse:

TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'

saltstack.log

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