Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: network is not specified in docker compose file #5961

Open
1 task done
hmmftg opened this issue Nov 6, 2024 · 11 comments
Open
1 task done

[bug]: network is not specified in docker compose file #5961

hmmftg opened this issue Nov 6, 2024 · 11 comments
Assignees
Labels
🐛bug Something isn't working

Comments

@hmmftg
Copy link

hmmftg commented Nov 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

running docker-compose or setup.sh fails with problems like:

docker compose problem https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz

I was forced to manually add network: host to all build entries folowing this SO

Steps to reproduce

run setup.sh or docker compose -f docker-compose-local.yml up -d

Environment

Production

Browser

None

Variant

Self-hosted

Version

v0.23.1

@hmmftg hmmftg added the 🐛bug Something isn't working label Nov 6, 2024
@pushya22 pushya22 assigned akshat5302 and unassigned vihar and pushya22 Nov 6, 2024
@akshat5302
Copy link
Collaborator

@hmmftg

docker-compose-local.yml already has network dev_env.

Please share more details about the issue you are facing.

Add more details to this issue

  • OS / CPU Arch
  • Output of docker network ls
  • Logs from docker compose up command

@hmmftg
Copy link
Author

hmmftg commented Nov 6, 2024

@akshat5302

os: linux RHEL8 amd64

output of docker network ls:

NETWORK ID     NAME            DRIVER    SCOPE
39249392567b   bridge          bridge    local
c283d1cbbe09   host            host      local
aa4af6e9cb14   none            null      local
d29c801213fc   plane_dev_env   bridge    local

output of ./setup.sh[docker-compose up has same result]:

--------------------------------------------
 ____  _                          ///////// 
|  _ \| | __ _ _ __   ___         ///////// 
| |_) | |/ _` | '_ \ / _ \   /////    ///// 
|  __/| | (_| | | | |  __/   /////    ///// 
|_|   |_|\__,_|_| |_|\___|        ////      
                                  ////      
--------------------------------------------
Project management tool from the future
--------------------------------------------

Select a Action you want to perform:
   1) Install
   2) Start
   3) Stop
   4) Restart
   5) Upgrade
   6) View Logs
   7) Backup Data
   8) Exit

Action [2]: 1

Begin Installing Plane

Please wait while we check the availability of Docker images for the selected release (local) with X86_64 support.

X86_64 images are not available for selected release (local).
Do you want to continue with building the Docker images locally?
Continue? [y/N]: y
Syncing environment variables...
Updating custom variables...
Custom variables updated successfully
sed: -e expression #1, char 29: unknown option to `s'
sed: -e expression #1, char 55: unknown option to `s'
sed: -e expression #1, char 39: unknown option to `s'
sed: -e expression #1, char 22: unknown option to `s'
sed: -e expression #1, char 53: unknown option to `s'
Environment variables synced successfully
Building images locally...
Cloning into '/root/tmp/plane'...
remote: Enumerating objects: 4124, done.
remote: Counting objects: 100% (4124/4124), done.
remote: Compressing objects: 100% (3402/3402), done.
remote: Total 4124 (delta 851), reused 2148 (delta 484), pack-reused 0 (from 0)
Receiving objects: 100% (4124/4124), 17.58 MiB | 5.44 MiB/s, done.
Resolving deltas: 100% (851/851), done.
Updating files: 100% (3494/3494), done.
[+] Building 23.7s (27/87)                                                                                                                                                                                         
 => [myplane/plane-backend:local internal] load build definition from Dockerfile.api                                                                                                                          0.4s
 => => transferring dockerfile: 1.11kB                                                                                                                                                                        0.1s
 => [myplane/plane-space:local internal] load build definition from Dockerfile.space                                                                                                                          0.5s
 => => transferring dockerfile: 2.74kB                                                                                                                                                                        0.1s
 => [myplane/plane-proxy:local internal] load build definition from Dockerfile                                                                                                                                0.3s
 => => transferring dockerfile: 357B                                                                                                                                                                          0.1s
 => [myplane/plane-frontend:local internal] load build definition from Dockerfile.web                                                                                                                         0.4s
 => => transferring dockerfile: 3.45kB                                                                                                                                                                        0.1s
 => [myplane/plane-admin:local internal] load build definition from Dockerfile.admin                                                                                                                          0.4s
 => => transferring dockerfile: 2.81kB                                                                                                                                                                        0.0s
 => [myplane/plane-backend:local internal] load .dockerignore                                                                                                                                                 0.3s
 => => transferring context: 2B                                                                                                                                                                               0.1s
 => [myplane/plane-space:local internal] load .dockerignore                                                                                                                                                   0.1s
 => => transferring context: 248B                                                                                                                                                                             0.0s
 => [myplane/plane-proxy:local internal] load .dockerignore                                                                                                                                                   0.2s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [myplane/plane-admin:local internal] load .dockerignore                                                                                                                                                   0.1s
 => => transferring context: 248B                                                                                                                                                                             0.0s
 => [myplane/plane-frontend:local internal] load .dockerignore                                                                                                                                                0.1s
 => => transferring context: 248B                                                                                                                                                                             0.0s
 => [myplane/plane-backend:local internal] load metadata for docker.io/library/python:3.12.5-alpine                                                                                                           2.2s
 => [myplane/plane-proxy:local internal] load metadata for docker.io/library/nginx:1.25.0-alpine                                                                                                              1.1s
 => [myplane/plane-frontend:local internal] load metadata for docker.io/library/node:18-alpine                                                                                                               21.2s
 => [myplane/plane-backend:local internal] load build context                                                                                                                                                12.6s
 => => transferring context: 2.73MB                                                                                                                                                                          10.6s
 => [myplane/plane-backend:local  1/16] FROM docker.io/library/python:3.12.5-alpine@sha256:bb5d0ac04679d78a1258e7dfacdb4d9bdefe9a10480eaf9b4bb09445d076369f                                                   0.1s
 => CANCELED [myplane/plane-frontend:local internal] load build context                                                                                                                                      17.2s
 => => transferring context: 4.06MB                                                                                                                                                                          16.9s
 => [myplane/plane-proxy:local internal] load build context                                                                                                                                                   0.3s
 => => transferring context: 3.19kB                                                                                                                                                                           0.1s
 => CANCELED [myplane/plane-space:local internal] load build context                                                                                                                                         17.3s
 => => transferring context: 4.83MB                                                                                                                                                                          16.8s
 => CACHED [myplane/plane-proxy:local 1/5] FROM docker.io/library/nginx:1.25.0-alpine@sha256:2e776a66a3556f001aba13431b26e448fe8acba277bf93d2ab1a785571a46d90                                                 0.1s
 => CACHED [myplane/plane-space:local runner 1/7] FROM docker.io/library/node:18-alpine@sha256:02376a266c84acbf45bd19440e08e48b1c8b98037417334046029ab585de03e2                                               0.3s
 => CANCELED [myplane/plane-admin:local internal] load build context                                                                                                                                         17.2s
 => => transferring context: 4.13MB                                                                                                                                                                          16.6s
 => CACHED [myplane/plane-space:local runner 2/7] WORKDIR /app                                                                                                                                                0.0s
 => CACHED [myplane/plane-backend:local  2/16] WORKDIR /code                                                                                                                                                  0.0s
 => ERROR [myplane/plane-backend:local  3/16] RUN apk add --no-cache     "libpq"     "libxslt"     "nodejs-current"     "xmlsec"                                                                             16.8s
 => CANCELED [myplane/plane-frontend:local installer  2/10] RUN apk add --no-cache libc6-compat                                                                                                              19.9s
 => => # WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.20/main: temporary error (try again later)                                                                                                    
 => => # fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz                                                                                                                       
 => => # WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.20/community: temporary error (try again later)                                                                                               
 => => # ERROR: unable to select packages:                                                                                                                                                                        
 => => #   libc6-compat (no such package):                                                                                                                                                                        
 => => #     required by: world[libc6-compat]                                                                                                                                                                     
 => [myplane/plane-proxy:local 2/5] RUN rm /etc/nginx/conf.d/default.conf                                                                                                                                     6.5s
 => [myplane/plane-proxy:local 3/5] COPY nginx.conf.template /etc/nginx/nginx.conf.template                                                                                                                   1.5s
 => [myplane/plane-proxy:local 4/5] COPY ./env.sh /docker-entrypoint.sh                                                                                                                                       3.1s
 => [myplane/plane-proxy:local 5/5] RUN chmod +x /docker-entrypoint.sh                                                                                                                                        3.6s
 => [myplane/plane-proxy:local] exporting to image                                                                                                                                                            3.8s
 => => exporting layers                                                                                                                                                                                       3.8s
------
 > [myplane/plane-backend:local  3/16] RUN apk add --no-cache     "libpq"     "libxslt"     "nodejs-current"     "xmlsec":
#0 6.482 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
#0 11.40 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.20/main: temporary error (try again later)
#0 11.41 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
#0 16.38 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.20/community: temporary error (try again later)
#0 16.38 ERROR: unable to select packages:
#0 16.38   libpq (no such package):
#0 16.38     required by: world[libpq]
#0 16.38   libxslt (no such package):
#0 16.38     required by: world[libxslt]
#0 16.38   nodejs-current (no such package):
#0 16.38     required by: world[nodejs-current]
#0 16.38   xmlsec (no such package):
#0 16.38     required by: world[xmlsec]
------
failed to solve: executor failed running [/bin/sh -c apk add --no-cache     "libpq"     "libxslt"     "nodejs-current"     "xmlsec"]: exit code: 4
Build failed. Exiting...

output of wget https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz:

--2024-11-06 16:16:14--  https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
Resolving dl-cdn.alpinelinux.org (dl-cdn.alpinelinux.org)... 151.101.194.132, 151.101.66.132, 151.101.2.132, ...
Connecting to dl-cdn.alpinelinux.org (dl-cdn.alpinelinux.org)|151.101.194.132|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1847375 (1.8M) [application/octet-stream]
Saving to: ‘APKINDEX.tar.gz’

APKINDEX.tar.gz                                      100%[=====================================================================================================================>]   1.76M  2.37MB/s    in 0.7s    

2024-11-06 16:16:16 (2.37 MB/s) - ‘APKINDEX.tar.gz’ saved [1847375/1847375]

@hmmftg
Copy link
Author

hmmftg commented Nov 6, 2024

and working docker-compose.yaml [check network: host parts]:

services:
  web:
    container_name: web
    build:
      context: .
      network: host
      dockerfile: ./web/Dockerfile.web
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: node web/server.js web
    depends_on:
      - api

  admin:
    container_name: admin
    build:
      context: .
      network: host
      dockerfile: ./admin/Dockerfile.admin
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: node admin/server.js admin
    depends_on:
      - api
      - web

  space:
    container_name: space
    build:
      context: .
      network: host
      dockerfile: ./space/Dockerfile.space
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: node space/server.js space
    depends_on:
      - api
      - web

  api:
    container_name: api
    build:
      context: ./apiserver
      network: host
      dockerfile: Dockerfile.api
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: ./bin/docker-entrypoint-api.sh
    env_file:
      - ./apiserver/.env
    depends_on:
      - plane-db
      - plane-redis

  worker:
    container_name: bgworker
    build:
      context: ./apiserver
      network: host
      dockerfile: Dockerfile.api
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: ./bin/docker-entrypoint-worker.sh
    env_file:
      - ./apiserver/.env
    depends_on:
      - api
      - plane-db
      - plane-redis

  beat-worker:
    container_name: beatworker
    build:
      context: ./apiserver
      network: host
      dockerfile: Dockerfile.api
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: ./bin/docker-entrypoint-beat.sh
    env_file:
      - ./apiserver/.env
    depends_on:
      - api
      - plane-db
      - plane-redis

  migrator:
    container_name: plane-migrator
    build:
      context: ./apiserver
      network: host
      dockerfile: Dockerfile.api
      args:
        DOCKER_BUILDKIT: 1
    restart: no
    command: ./bin/docker-entrypoint-migrator.sh
    env_file:
      - ./apiserver/.env
    depends_on:
      - plane-db
      - plane-redis

  live:
    container_name: plane-live
    build:
      context: .
      network: host
      dockerfile: ./live/Dockerfile.live
      args:
        DOCKER_BUILDKIT: 1
    restart: always
    command: node live/dist/server.js

  plane-db:
    container_name: plane-db
    image: postgres:15.7-alpine
    restart: always
    command: postgres -c 'max_connections=1000'
    volumes:
      - pgdata:/var/lib/postgresql/data
    env_file:
      - .env
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_DB: ${POSTGRES_DB}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      PGDATA: /var/lib/postgresql/data

  plane-redis:
    container_name: plane-redis
    image: valkey/valkey:7.2.5-alpine
    restart: always
    volumes:
      - redisdata:/data

  plane-mq:
    container_name: plane-mq
    image: rabbitmq:3.13.6-management-alpine
    restart: always
    env_file:
      - .env
    environment:
      RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
      RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
      RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_VHOST}
    volumes:
      - rabbitmq_data:/var/lib/rabbitmq

  plane-minio:
    container_name: plane-minio
    image: minio/minio
    restart: always
    command: server /export --console-address ":9090"
    volumes:
      - uploads:/export
    environment:
      MINIO_ROOT_USER: ${AWS_ACCESS_KEY_ID}
      MINIO_ROOT_PASSWORD: ${AWS_SECRET_ACCESS_KEY}

  # Comment this if you already have a reverse proxy running
  proxy:
    container_name: proxy
    build:
      context: ./nginx
      dockerfile: Dockerfile
    restart: always
    ports:
      - ${NGINX_PORT}:80
    environment:
      FILE_SIZE_LIMIT: ${FILE_SIZE_LIMIT:-5242880}
      BUCKET_NAME: ${AWS_S3_BUCKET_NAME:-uploads}
    depends_on:
      - web
      - api
      - space
      - admin

volumes:
  pgdata:
  redisdata:
  uploads:
  rabbitmq_data:

@akshat5302
Copy link
Collaborator

Hey @hmmftg, are you setting up Plane locally using our pre-built images, or are you using local images you've built yourself?

Also, the steps you listed in Steps to Reproduce are meant for setting up Plane for development purposes. If you’re looking to self-host or try out Plane, please refer to the documentation here: Self-Hosting Plane - Community Edition.

@hmmftg
Copy link
Author

hmmftg commented Nov 9, 2024

I'm totally disappointed using your app, my last try was this:

--------------------------------------------
 ____  _                          ///////// 
|  _ \| | __ _ _ __   ___         ///////// 
| |_) | |/ _` | '_ \ / _ \   /////    ///// 
|  __/| | (_| | | | |  __/   /////    ///// 
|_|   |_|\__,_|_| |_|\___|        ////      
                                  ////      
--------------------------------------------
Project management tool from the future
--------------------------------------------

Select a Action you want to perform:
   1) Install
   2) Start
   3) Stop
   4) Restart
   5) Upgrade
   6) View Logs
   7) Backup Data
   8) Exit

Action [2]: 1

Begin Installing Plane

Please wait while we check the availability of Docker images for the selected release (stable) with X86_64 support. [-]  failed to configure transport: unsupported registry version
    


X86_64 images are not available for selected release (stable).

Do you want to continue with building the Docker images locally?
Continue? [y/N]: 

since it cannot download https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz and building will fail(and I dont know how to fix it) building the Docker images locally is not an option. I didn't find a solution to fix failed to configure transport: unsupported registry version either.

@hmmftg
Copy link
Author

hmmftg commented Nov 9, 2024

@akshat5302

the steps you listed in Steps to Reproduce are meant for setting up Plane for development purposes.

I tried all methods including normal installation, preview installation and building from source and all of them lead to errors

@akshat5302
Copy link
Collaborator

Hey @hmmftg could you please share the output of uname -a

@hmmftg
Copy link
Author

hmmftg commented Nov 9, 2024

@akshat5302

Linux istpay 5.15.0-206.153.7.1.el8uek.x86_64 #2 SMP Wed May 22 20:49:34 PDT 2024 x86_64 x86_64 x86_64 GNU/Linux

@akshat5302
Copy link
Collaborator

akshat5302 commented Nov 11, 2024

@hmmftg, could you please run the following command and check the output?

export CPU_ARCH=$(uname -m)
docker manifest inspect "makeplane/plane-proxy:stable" | grep "\"architecture\": \"${CPU_ARCH}\""

The output should look like this:

"architecture": "amd64"

@hmmftg
Copy link
Author

hmmftg commented Nov 12, 2024

@akshat5302

I don't know why but it says: failed to configure transport: unsupported registry version

@akshat5302
Copy link
Collaborator

It looks like there's an issue with your Docker setup. Please try reinstalling Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants