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

NC App Configuration doesnt work #164

Closed
egelhaus opened this issue Sep 16, 2024 · 21 comments
Closed

NC App Configuration doesnt work #164

egelhaus opened this issue Sep 16, 2024 · 21 comments
Labels

Comments

@egelhaus
Copy link

egelhaus commented Sep 16, 2024

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.

@egelhaus
Copy link
Author

@juliushaertl

@juliushaertl
Copy link
Member

Can you share how you configured your reverse proxy?

@egelhaus
Copy link
Author

@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.

@rawtaz
Copy link

rawtaz commented Sep 16, 2024

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.

@egelhaus
Copy link
Author

@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

@juliushaertl
Copy link
Member

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

@egelhaus
Copy link
Author

I did that too. It didnt work

@juliushaertl
Copy link
Member

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

@egelhaus
Copy link
Author

yup:

@egelhaus
Copy link
Author

Excalidraw collaboration server is up :)

@egelhaus
Copy link
Author

@juliushaertl

@juliushaertl
Copy link
Member

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?

@egelhaus
Copy link
Author

one sec

@egelhaus
Copy link
Author

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

@rawtaz
Copy link

rawtaz commented Sep 16, 2024

@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 :)

@BADGRRL666
Copy link

BADGRRL666 commented Sep 18, 2024

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.

@LinoSchmidt
Copy link

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

@egelhaus
Copy link
Author

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

@LinoSchmidt
Copy link

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.

@egelhaus
Copy link
Author

@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.

@egelhaus
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants