OWASP/crAPI

ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"

re4sonzy opened this issue ยท 13 comments

ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"

curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml

docker-compose pull

docker-compose -f docker-compose.yml --compatibility up -d
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6013  100  6013    0     0   6919      0 --:--:-- --:--:-- --:--:--  6911
/home/hunter/.local/lib/python3.9/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"
/home/hunter/.local/lib/python3.9/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ERROR: Invalid interpolation format for "crapi-identity" option in service "services": "crapi/crapi-identity:${VERSION:-latest}"

Could you provide you os and shell info?

To simply unblock you please replace the ${VERSION:-latest} with latest

Hello, my os is Parrot Sec, shell is the default MATE terminator

OS: Ubuntu 5.13.0-51-generic
Shell: Standard one that comes with ubuntu, just called terminal.

Replacing the version with latest led to a port error on a similar line.

The docker compose is still having issues, it looks like another person (possibly a teacher) found a solution. the video is the following https://www.youtube.com/watch?v=ByW_yobA2aM.
Is there a way to have it not rely on Ubuntu 18 as the base operating system for docker?

Same issue.
OS: Ubuntu 20.04.4 LTS
Shell: 5.15.0-41-generic

Its a docker compose issue. It can be fixed by upgrading docker-compose to latest. As I fix I will add docker compose compatibility version.

I was on the latest version from the package manager, 1.25.0. After removing it and pulling directly from docker I was then on v2.8.0. crAPI did then start as expected. For anyone else running into this I used the following commands.

sudo apt-get remove docker-compose

VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')

DESTINATION=/usr/local/bin/docker-compose

sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION

sudo chmod 755 $DESTINATION

This was taken from https://stackoverflow.com/questions/49839028/how-to-upgrade-docker-compose-to-latest-version

Faced same issue and able to pull repo with above resolution steps.
Note: Even after above steps if docker-compose -v is not giving you output, then you have to copy docker-compose binary from /usr/local/bin /usr/bin/

The problem arises from the fact that the repository version of docker-compose is old.

The problem arises from the fact that the repository version of docker-compose is old.

Might be, But even after upgrading to the latest version of docker referring documentation it didn't work for me on Debian 11.

Can you please assign it to me?