Coder Social home page Coder Social logo

Comments (8)

JannikStreek avatar JannikStreek commented on June 10, 2024

Have a look at this docker compose setup, maybe it helps? https://github.com/b310-digital/excalidraw/blob/master/docker-compose.yml

from excalidraw-room.

Fofanius avatar Fofanius commented on June 10, 2024

I tried to use this docker-compose using portainer and at some point it fails.

Start of logs:

2024/01/08 10:25AM WRN github.com/portainer/portainer/pkg/libstack/compose/internal/composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" error_output=" excalidraw-room Pulling 

* pull and extract logs*

End of logs:

 1b181a7bfdfb Extracting [==================================================>]  2.751kB/2.751kB
 1b181a7bfdfb Pull complete 
 excalidraw-room Pulled 
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount624288113/Dockerfile: no such file or directory
" output="#1 [excalidraw internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s

#2 [excalidraw internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [excalidraw-storage-backend internal] load git source https://github.com/kitsteam/excalidraw-storage-backend.git#main
#3 CANCELED
"

I haven't figured out how to solve this yet.

from excalidraw-room.

JannikStreek avatar JannikStreek commented on June 10, 2024

I tried to use this docker-compose using portainer and at some point it fails.

Start of logs:

2024/01/08 10:25AM WRN github.com/portainer/portainer/pkg/libstack/compose/internal/composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" error_output=" excalidraw-room Pulling 
  • pull and extract logs*

End of logs:

 1b181a7bfdfb Extracting [==================================================>]  2.751kB/2.751kB
 1b181a7bfdfb Pull complete 
 excalidraw-room Pulled 
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount624288113/Dockerfile: no such file or directory
" output="#1 [excalidraw internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s

#2 [excalidraw internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [excalidraw-storage-backend internal] load git source https://github.com/kitsteam/excalidraw-storage-backend.git#main
#3 CANCELED
"

I haven't figured out how to solve this yet.

can you try using image: ghcr.io/kitsteam/excalidraw-storage-backend:v0.1.0 instead of

build: 
      context: https://github.com/kitsteam/excalidraw-storage-backend.git#main
      target: production

from excalidraw-room.

Fofanius avatar Fofanius commented on June 10, 2024

Still Deploymend error but with a little change at the end:

 494007c5b92c Pull complete 
 excalidraw-storage-backend Pulled 
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount483607257/Dockerfile: no such file or directory
" output="#1 [excalidraw internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s

#2 [excalidraw internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

and after reboot my homelab server

2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" error_output="failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount4186509642/Dockerfile: no such file or directory
" 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" error_output="failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount4186509642/Dockerfile: no such file or directory
" output="#1 [excalidraw internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s

#2 [excalidraw internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s
"
"

There might be some problems in my docker-compose script because I added some little changes, so I'll attach that too :

version: "3.8"

services:
  excalidraw:
    stdin_open: true
    build:
      context: .
      target: development
    container_name: excalidraw
    ports:
      - "3050:3000"
    restart: on-failure
    healthcheck:
      disable: true
    environment:
      - NODE_ENV=development
    volumes:
      - node_modules:/opt/node_app/node_modules
      - ./:/opt/node_app/
    networks:
      - excalidraw-net
      - reverse-proxy-net

  excalidraw-storage-backend:
    stdin_open: true
    image: ghcr.io/kitsteam/excalidraw-storage-backend:v0.1.0
    ports:
      - "3051:8080"
    environment:
      STORAGE_URI: redis://:${REDIS_PASSWORD}@redis:6379
      STORAGE_TTL: 2592000000
    networks:
      - excalidraw-net
      - reverse-proxy-net

  excalidraw-room:
    image: excalidraw/excalidraw-room
    ports:
      - "3052:80"
    networks:
      - excalidraw-net
      - reverse-proxy-net
  
  redis:
    image: redis
    command: redis-server --requirepass ${REDIS_PASSWORD}
    volumes:
      - redis_data:/data
    networks:
      - excalidraw-net
      - reverse-proxy-net

volumes:
  redis_data:
  node_modules:   

networks:
  excalidraw-net:
    name: excalidraw-net
    external: true
  reverse-proxy-net:
    name: reverse-proxy-net
    external: true

from excalidraw-room.

Fofanius avatar Fofanius commented on June 10, 2024

Ok, first of all there was my mistake at line 7, there is . instead of https://github.com/b310-digital/excalidraw.git#master.
But replacing didn't help ... :(

2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" error_output="failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount4186509642/Dockerfile: no such file or directory
" 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > 2024/01/08 07:02PM 2024/01/08 07:02PM WRN 2024/01/08 07:02PM 2024/01/08 07:02PM WRN composeplugin/composeplugin.go:162 > docker compose command failed | error="exit status 17" error_output="failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount4186509642/Dockerfile: no such file or directory
" output="#1 [excalidraw internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s

#2 [excalidraw internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s
"

from excalidraw-room.

Fofanius avatar Fofanius commented on June 10, 2024

Well, I managed to deploy it in Portainer with next docker-compose script:

version: "3.8"

services:
  excalidraw:
    stdin_open: true
    build:
      context: https://github.com/b310-digital/excalidraw.git#master
      target: development
    container_name: excalidraw
    ports:
      - "3000:3000"
    restart: on-failure
    healthcheck:
      disable: true
    environment:
      - NODE_ENV=development
    volumes:
      - node_modules:/opt/node_app/node_modules
      - ./:/opt/node_app/
    networks:
      - excalidraw-net
      - reverse-proxy-net

  excalidraw-storage-backend:
    stdin_open: true
    build: 
      context: https://github.com/kitsteam/excalidraw-storage-backend.git#main
      target: production
    ports:
      - "8080:8080"
    environment:
      STORAGE_URI: redis://:${REDIS_PASSWORD}@redis:6379
      STORAGE_TTL: 2592000000
    networks:
      - excalidraw-net
      - reverse-proxy-net

  excalidraw-room:
    image: excalidraw/excalidraw-room
    ports:
      - "5001:80"
    networks:
      - excalidraw-net
      - reverse-proxy-net
  
  redis:
    image: redis
    command: redis-server --requirepass ${REDIS_PASSWORD}
    volumes:
      - redis_data:/data
    networks:
      - excalidraw-net
      - reverse-proxy-net

volumes:
  redis_data:
  node_modules:   

networks:
  excalidraw-net:
    name: excalidraw-net
    external: true
  reverse-proxy-net:
    name: reverse-proxy-net
    external: true

BUT collaboration still does not work with following pop-up message: Error \n Couldn't connect to the collab server. Please reload the page and try again.

from excalidraw-room.

Fofanius avatar Fofanius commented on June 10, 2024

Have a look at this docker compose setup, maybe it helps? https://github.com/b310-digital/excalidraw/blob/master/docker-compose.yml

Even if I clone the repository completely and run docker-compose from it on my local machine, all containers seem to start, but nothing happens in them (no logs) and the ability to collaborate is still missing :(

Any ideas?

image
image

from excalidraw-room.

JannikStreek avatar JannikStreek commented on June 10, 2024

well, check the logs...docker compose logs excalidraw-storage-backend, most likely its database related, e.g. you haven't provided the .env file. A default is existing, but you need to provide your own, otherwise database stuff is missing. This is not really issue related anymore, so you can write me a mail (see commit mail) but it's not really issue related anymore ;-)

from excalidraw-room.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.