Error with kobo-install rebuilt

ERROR: The Compose file ‘./docker-compose.maintenance.override.yml’ is invalid because:
networks.kobo-fe-network value Additional properties are not allowed (‘name’ was unexpected)
An error has occurred

I am getting this error

This is related the docker compose version, you may need to downgrade to the previous version.

1 Like

@datarange, :clap: :heart: :partying_face:

ok my docker compose version is as below

Which version should I downgrade to…Please help

For public, HTTPS servers.

version: ‘3’

services:

maintenance:
environment:
- ETA=${MAINTENANCE_ETA}
- DATE_STR=${MAINTENANCE_DATE_STR}
- DATE_ISO=${MAINTENANCE_DATE_ISO}
- EMAIL=${MAINTENANCE_EMAIL}
${USE_LETSENSCRYPT}ports:
${USE_LETSENSCRYPT} - ${NGINX_EXPOSED_PORT}:80
networks:
kobo-fe-network:
aliases:
- nginx.internal

networks:
kobo-fe-network:
external:
name: ${DOCKER_NETWORK_FRONTEND_PREFIX}_kobo-fe-network

Version 1.7 if I remember

1 Like

@Kal_Lam Please explain why this Kobo application previously supported the same higher version and now suggestion was lower version, which appears to be a bug.
kindly assist

1 Like

ERROR: The Compose file ‘./docker-compose.maintenance.override.yml’ is invalid because: networks.kobo-fe-network value Additional properties are not allowed (‘name’ was unexpected) An error has occurred I am getting this error

My current version is 3 what should I downgrade it to??? Please help

For public, HTTPS servers.

version: ‘3’

services:

maintenance:
environment:
- ETA=${MAINTENANCE_ETA}
- DATE_STR=${MAINTENANCE_DATE_STR}
- DATE_ISO=${MAINTENANCE_DATE_ISO}
- EMAIL=${MAINTENANCE_EMAIL}
${USE_LETSENSCRYPT}ports:
${USE_LETSENSCRYPT} - ${NGINX_EXPOSED_PORT}:80
networks:
kobo-fe-network:
aliases:
- nginx.internal

networks:
kobo-fe-network:
external:
name: ${DOCKER_NETWORK_FRONTEND_PREFIX}_kobo-fe-network

Hi I’m getting the same error and the earliest version of docker available on the repo is 19.03.9. I had to downgrade from 23.0.1. The only available version of docker-compose is 1.25.0-1 so I cannot downgrade it. However, I am getting the same error after downgrading. How can I downgrade to version 17?

Client: Docker Engine - Community
 Version:           19.03.9
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        9d988398e7
 Built:             Fri May 15 00:25:20 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.9
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       9d988398e7
  Built:            Fri May 15 00:23:53 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.18
  GitCommit:        2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

I think I misread datarange’s comment but the issue still remains. Docker-compose 1.25.0-1 appears to be the only version available in the repository. How can I downgrade to version 1.7?

Ok I educated myself and upgraded docker-compose. It runs the kobo-install script now.
For completeness, my process was as follows

  1. Verify docker-compose version: docker-compose --version
  2. Switch to root: sudo su
  3. Download and install docker-compose: curl -L https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-uname -s-uname -m -o /usr/local/bin/docker-compose
  4. Switch back to your user: su <your username>
  5. Run the installation script: sudo python3 run.py
1 Like

Thanks, dtrotman, this worked, and is probably the easiest and cleanest of all solutions proposed.

A few notes for anyone else who has this problem:

  • You don’t have to use curl, it works to download it via a browser, and then use
    sudo cp ${FILE} /usr/local/bin/docker-compose
    where ${FILE} is the name of the file you downloaded.
  • The “uname-s-uname -m” are not part of the file name (uname is a linux command that returns information about your system), and you don’t have to use them if you download via a browser. When you get to the download page, look through the list of files until you see one that matches your operating system and architecture.
  • You may need to click the “Show all ## assets” link at the bottom of the list to see the file you need.
1 Like

@dwight, :clap: :heart: :partying_face:

One other thing: after you copy docker-compose to /usr/local/bin/, enter the command

sudo chmod a+x /usr/local/bin/docker-compose
1 Like