ERROR: Version in "./docker-compose.yml" is unsupported

Hi all,

I’m trying to install the kobotoolbox on:
Linux devel 4.15.0-76-generic #86~16.04.1-Ubuntu SMP Mon Jan 20 11:02:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I’m using the simplified kobo-install script from https://github.com/kobotoolbox/kobo-install.

After using default settings for all the configuration (except the smtp server part) I get:

Cloning into '/home/develadmin/Programs/kobo-docker'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 3218 (delta 33), reused 36 (delta 18), pack-reused 3163
Receiving objects: 100% (3218/3218), 2.15 MiB | 2.45 MiB/s, done.
Resolving deltas: 100% (1991/1991), done.
Checking connectivity... done.
Already on 'master'
From https://github.com/kobotoolbox/kobo-docker
 * branch            master     -> FETCH_HEAD
init-letsencrypt.sh: line 26: -s: command not found
init-letsencrypt.sh: line 27: -s: command not found
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
An error has occurred

Does anybody have an idea on what I’m doing wrong?

Thanks a bunch!

Hello @chrisfoes,

I’ve just tested with default options and I didn’t get your error.
KoBoInstall has been successfully tested on Ubuntu and Debian. I can tell for other distros.

I used:

  • Ubuntu 18.04 LTS (fresh install on AWS)
  • Docker version 19.03.5, build 633a0ea838
  • Docker compose version 1.25.3, build d4d1b42b
  • KoBoInstall Version: a61b14c

Are you sure /bin/bash is available and in your $PATH

1 Like

I have updated docker and docker-compose and tried again, with defaults.

docker version

Client: Docker Engine - Community
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        633a0ea838
 Built:             Wed Nov 13 07:50:12 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       633a0ea838
  Built:            Wed Nov 13 07:48:43 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

docker-compose version

docker-compose version 1.8.0, build unknown
docker-py version: 1.9.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016

And yes /bin/bash is in my $PATH variable.

Same result.

I also get the error, if I try the workstation installation.

Can you tell me which (exact) version & name of distro you use?

Of my operating system?

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.6 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Can you try to update your version of docker-compose to latest one?
It seems to complain about the version of the yml file.

1 Like

The message init-letsencrypt.sh: line 27: -s: command not found makes me think that curl is missing.
Moreover, in latest version of nginx-certbot, curl command is run at line 31. Would you try to update nginx-certbot at the latest commit.

1 Like

Thanks, for the advice I will try as soon as I get back to work. I’m on sick leave for a few more weeks…

1 Like