nextcloud/whiteboard

NC App Configuration doesnt work

Closed this issue ยท 21 comments

When I try to connect my NC with the NC Whiteboard, it gets me this Error on the Config GUI (NC):
Failed to verify the connection: timeout

My docker-compose.yml:
version: '3.7' services: nextcloud-whiteboard-server: build: context: . dockerfile: Dockerfile ports: - 3002:3002 environment: - NEXTCLOUD_URL=http://192.168.178.189:11000 - JWT_SECRET_KEY=my_jwt_secret

  My NC Commands that have been executed:

sudo -u www-data php occ config:app:set whiteboard collabBackendUrl --value="http://192.168.178.189:3002"
sudo -u www-data php occ config:app:set whiteboard jwt_secret_key --value="my_jwt_secret"

Note:
Im running an AIO NC Setup behind an Nginx Proxy Manager, i also tried both NEXTCLOUD_URL and collabBackendUrl behind the NGM.

Can you share how you configured your reverse proxy?

@juliushaertl I Cant rn, bcs im Not Home, but when im Home , I will Send you my Config, but Its in the WebUI of Nginx Proxy Manager. And Even when I try to Not Reverse Proxy it over the local IP Address, it doesnt work.

There are two reasons the settings panel doesn't successfully verify the URL and doesn't save it.

  • There's a bug in line SettingsController, it looks for server_url coming in from the client to be saved, but the key coming in is named serverUrl.
  • In the README, it is documented that the reverse proxy config should be for location /whiteboard/, but the app doesn't use that, it uses /socket.io/ as the path.

@rawtaz Could you explain to me how I set that up in the Nginx Proxy Manager? My Config is in the Pictures.

@juliushaertl I have the COnfigs now.
image
image
image
image

Ok, in that case the public domain name should be configured as collabBackendUrl not the internal IP/port. Could you give that a try?

I did that too. It didnt work

Can you open that URL in the browser and see if you get a message like "Excalidraw collaboration server is up :)"

yup:

Excalidraw collaboration server is up :)

All right, can you tell what happens if you create a new .whiteboard file in the files app? Is it downloaded or is the opening and you see any error?

one sec

image
It ends with an Error.
Idk if thats important, but i did --skip-domain-validation=true
@juliushaertl

@egelhaus This is not a personal support chat. Please understand that @juliushaertl works during work hours and will reply when he can. Reminding him to reply isn't constructive or helpful, you have to be patient :)

Same issue here, no luck with nginx proxy manager. Server and Nextcloud instance are on the same subnet.

I tried running it on the same host with both Docker and NPM but seems to be just as broken.

The Nextcloud instance has all ports open in an effort to troubleshoot and ufw is turned off. This is installed on top of debian.

In the configuration documentation it seems to call for http instead of https, so I tried editing the Nextcloud Apache config to stop redirecting to https. Still no luck unfortunately.

Worked for me by adding the reverse proxy config into the advanced section of my Nextcloud reverse proxy config and then putting the address of my Nextcloud Server into collabBackendUrl.

Also replaced /whiteboard/ with /socket.io/

Screenshot 2024-09-18 174749

@LinoSchmidt Could you please provide your collabBackendURl with example.com and provide your Advanced Config please?

collabBackendURl should look like https://cloud.example.com

Advanced config of my reverse proxy for Nextcloud:

location /socket.io/ {
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header Host $host;
	
	proxy_pass http://$server:3002;
	
	proxy_http_version 1.1;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection "upgrade";
}

$server should be the IP address of the whiteboard server.
For me, it's the same IP as my Nextcloud server because I run both on Docker, so I set it to $server.

@LinoSchmidt Thank you, but the Beta for AIO was just releseased, and i didnt saw it, im trying to install it now, if it doesnt work, ill try this one out. But Thank you.

For evryone who had the same Problem, AIO Beta just released with the Whiteboard Feature and works very well. Here is my Start Command:

sudo docker run \ --init \ --sig-proxy=false \ --name nextcloud-aio-mastercontainer \ --restart always \ --publish 8080:8080 \ --env APACHE_PORT=11000 \ --env APACHE_IP_BINDING=0.0.0.0 \ --env SKIP_DOMAIN_VALIDATION=true \ --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \ --volume /var/run/docker.sock:/var/run/docker.sock:ro \ nextcloud/all-in-one:beta