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

Failed to verify the connection: timeout #173

Open
whahn1983 opened this issue Sep 19, 2024 · 7 comments · May be fixed by #210
Open

Failed to verify the connection: timeout #173

whahn1983 opened this issue Sep 19, 2024 · 7 comments · May be fixed by #210
Labels

Comments

@whahn1983
Copy link

In the Whiteboard administration settings, after setting up the URL and secret, receiving error "Failed to verify the connection: timeout".

Confirmed docker container for whiteboard is set up correctly with the below log:

> whiteboard@1.0.2 server:start
> node websocket_server/main.js

Using default in-memory adapter
Listening on port: 3002
Server started successfully on port 3002

From within the Nextcloud container, I can successfully get a response from the whiteboard server using curl and receive a response from the whiteboard server:

curl whiteboard:3002
Excalidraw collaboration server is up :)

I am using the same exact address from the curl command in the URL settings for the whiteboard administration.

@tinklelit

This comment has been minimized.

@juliushaertl
Copy link
Member

Please make sure that the url you are entering is also accessible in the browser. You might need to configure your webserver as a reverse proxy as described in the readme.

@tinklelit
Copy link

I added HTTPS to Whiteboard and it connected just fine

@whahn1983
Copy link
Author

If I add https the error changed to a web socket error.

@whahn1983
Copy link
Author

Please make sure that the url you are entering is also accessible in the browser. You might need to configure your webserver as a reverse proxy as described in the readme.

Ah this may be the issue however, my web server is internet facing so that now exposes whiteboard needlessly to the internet instead of just a linked network between docker containers. It would be more secure to just bundle a web server into the whiteboard container so it can be simply linked to the Nextcloud container without exposing externally.

@rafaelmr2
Copy link

I have the same problem. I create a URL with a valid https and I'm getting "Bad Gateway". If I use only docker internal "http://app:3002" I got "timeout".

@juliushaertl
Copy link
Member

I think there is some misunderstanding in how the whiteboard backend server needs to be exposed. It is required to be reachable by both the Nextcloud server itself as well as the users browser, which means that you need to expose it to the public (or internally to any user accessing Nextcloud).

Ah this may be the issue however, my web server is internet facing so that now exposes whiteboard needlessly to the internet instead of just a linked network between docker containers. It would be more secure to just bundle a web server into the whiteboard container so it can be simply linked to the Nextcloud container without exposing externally.

Bundling a webserver doesn't change anything. The whiteboard container already exposes a webserver but you need to ensure it is properly reachable not just from the Nextcloud server as mentioned above. Therefore the most straight forward way is through an existing webserver or reverse proxy as documented in the readme.

juliushaertl added a commit that referenced this issue Oct 9, 2024
Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliushaertl juliushaertl linked a pull request Oct 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants