-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Couldn't connect to the collab server. Please reload the page and try again #4993
Comments
me too |
me too too |
Hello. Are you running your own collab server (https://github.com/excalidraw/excalidraw-room)? If so, how are you setting up the env variables to point to your collab server? |
baiban.fans.fans |
Same here. I have the excalidraw-room/collab server at port 3002 on localhost up and running. Could you please provide instructions how to set the env vars correctly? |
Hi, I had the same issue. |
Can you tell me which file you changed? |
Same open question as @yyj1983 to @kucukkanat : |
It's been a while but I think I changed this one : https://github.com/excalidraw/excalidraw/blob/master/.env.production |
Hello, Here's my docker-compose.yml (one of them): version: "3.8"
services:
excalidraw:
image: excalidraw/excalidraw:latest
# build:
# context: .
# args:
# - NODE_ENV=development
container_name: excalidraw
ports:
- "3000:80"
restart: on-failure
stdin_open: true
healthcheck:
disable: true
environment:
NODE_ENV: development
# REACT_APP_WS_SERVER_URL: http://localhost:3002 # Doesn't work either.
REACT_APP_WS_SERVER_URL: http://excalidraw-room:3002
excalidraw-room:
image: excalidraw/excalidraw-room
environment:
# Collaboration WebSocket
PORT: 3002
ports:
- "5000:80"
- "3002:3002"
I checked the logs from the "room" service, nothing gets logged.
As a matter of fact the file does not exist, also I'm not sure why nginx is trying to access it so I'm just reporting this. I hope this helps troubleshooting this until the collaboration server gets integrated (which would be awesome!). Thanks guys! |
Any documentation about this?
If I open the URL
Appears, but no luck. Should I need to set on the proxy the collab server as well? is there any nginx example? Best. |
Just installed and having this same issue. Was there a solution posted somewhere? Seems odd that a whiteboard collaboration server can't do collaboration. |
In case someone needs this still. You need to build your own docker image with either OR change it in This is how i did it. mkdir excalidraw
cd excalidraw
git clone git clone https://github.com/excalidraw/excalidraw-room.git
git clone https://github.com/excalidraw/excalidraw.git
rm excalidraw/.dockerignore
touch docker-compose.yaml docker-compose.yaml version: "3.8"
services:
excalidraw:
build:
context: ./excalidraw
args:
- NODE_ENV=production
container_name: excalidraw
ports:
- "3000:80"
restart: on-failure
stdin_open: true
healthcheck:
disable: true
excalidraw-room:
build:
context: ./excalidraw-room
environment:
# Collaboration WebSocket
PORT: 3002
ports:
- "3002:3002" Go into Make sure that docker compose up -d --build Browse to http://127.0.0.1:3000 and start collaborating. |
Hi, tiran133. Thanks for your solution. It helps a lot. After deploying according to the way you gave me, I found that I can only access the collaboration feature on the local machine. How do I modify the configuration file section if I want to share it on a local area network in my office? @tiran133 |
Since the docker compose file exposes the ports to the host via the ports section. ports:
- "3000:80"
ports:
- "3002:80" Instead of Now you can connect to http://192.168.1.42:3000. |
@tiran133 Thanks! I will make a try. And a little question, if I changed the port of excalidraw-client from 3000 to 10000 e.t. Will this affect collaboration? |
No this should be fine as long as you only change the first part of the port in the composer file ports:
- "10000:80" If you want to change 3002 also you need to adjust the |
Thanks a lot!! @tiran133 |
@tiran133 Thank you for providing the instructions. When I follow these, however, the build fails. Can you see if I am missing something? Here is the output I get -
|
I have the same issue. Did you find any solution to this? |
@tiran133 any idea? |
@eakteam I found this PR from @JannikStreek that addresses the issue: #7502 I copied the changes to the Dockerfile from that branch into my excalidraw Dockerfile and it builds successfully. Thanks @JannikStreek! |
Thanks for your help. The build succedd but after running docker I can't connect to it in Docker is running also, here is the output of
Any idea? Thanks :) |
For everyone who is having troubles here he an awesome repository which works like a charm :) https://github.com/Nenodema/excalidraw-self-hosted-stack |
Broken link! |
So there's no way other than rebuilding the whole container? |
Hi what if i use docker network?
I also use xcaddy for proxy and i've set .env.production |
I have deployed excalidraw project, run it on my server. Then I try to share with others, I found this info, I need your help, thank you.
The text was updated successfully, but these errors were encountered: