Skip to content

docker run -d -p 8080:80 nextcloud:23 with all default options but still getting a non working CODE server #1659

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

Closed
Utopiah opened this issue Dec 15, 2021 · 6 comments
Labels
integration: office Integration with Office/Collabora/CODE/OnlyOffice/etc question

Comments

@Utopiah
Copy link

Utopiah commented Dec 15, 2021

Hi,

I run my own NextCloud instances on my local machine for testing and on my server. Unfortunately I can't manage to get collaborative editing. I noticed with the recent Hub II announcement that there is now NextCloud Office. I thought I would try again.

I ran the most simple example, namely docker run -d -p 8080:80 nextcloud:23, connect to it via http://localhost:8080, create my admin login and accept the suggest services, which seems to include CODE. I let the process end and everything seems to work.

Unfortunately I can't edit rich documents and when I head to http://localhost:8080/settings/admin/richdocuments I get Could not establish connection to the Collabora Online server., cf below :

image

So at this point I'm a bit confused. When few months ago I tried the same setup with docker-compose I thought that maybe I missed something. Here though, as it seems to be all included and managed, I fail to see what I could have done wrong.

I checked the browser console, even tried another browser (but as it is server side I don't see how it could be related) and the container logs but can't see anything special, no error.

I noticed #1164 but opened another issue as that seems related to another setup relying on compose.

@Utopiah
Copy link
Author

Utopiah commented Dec 23, 2021

Do these requirements from Collabora Online still apply?

  • A subdomain or a second domain that the Collabora Online server can run on
  • An Apache server with some enabled modules (NGINX instructions in a blog here)
  • A valid SSL certificate for the domain that Collabora Online should run on
  • A valid SSL certificate for your Nextcloud

Because if so then I imagine a default subdomain is being used. It also means without properly configuring the reverse proxy to provide certificates for 2 subdomains it will not work, despite the installation instruction not mentioning this.

@J0WI
Copy link
Contributor

J0WI commented Feb 2, 2022

I'd not recommend to run Collabora in the same container as Nextcloud. #630 might be useful for you.

@Utopiah
Copy link
Author

Utopiah commented Feb 3, 2022

Thanks, I might try again. I specifically tried version 23 because of the integration / bundling because before, via compose, it also didn't work for me. Everything starts properly yet when it's time to use Collabora, unable to connect. I imagine there is some reverse proxy parameter I might miss. It's a shame that somehow default settings for this don't "just" work.

@bertin0
Copy link

bertin0 commented Apr 25, 2022

I see everywhere that you use a separate domain for collabora, but nobody explains why/if this is mandatory, as the collabora server is on another port anyways. Any clue?

@tribut
Copy link

tribut commented May 23, 2023

I've left some comments what you need to do in order to get the built-in CODE server to run at #1896 (comment)

@joshtrichards joshtrichards added integration: office Integration with Office/Collabora/CODE/OnlyOffice/etc question labels Oct 23, 2023
@joshtrichards
Copy link
Member

Unfortunately I can't edit rich documents and when I head to http://localhost:8080/settings/admin/richdocuments I get Could not establish connection to the Collabora Online server.,
[...]
I checked the browser console, even tried another browser (but as it is server side I don't see how it could be related) and the container logs but can't see anything special, no error.

The place to look to troubleshoot this sort of situation would be your nextcloud.log not the container log.

Since you were using a non-default port, you may have simply encountered this (which would have been in your Nextcloud log):

ConnectException cURL error 7: Failed to connect to localhost port 8080 after 0 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:8080/custom_apps/richdocumentscode/proxy.php?req=/hosting/capabilities

The reason is because localhost means different things from your container's perspective than it does from your host's perspective. The only port reachable within the container would be :80 not :8080.

To follow-up on this, I suggest the help forum (https://help.nextcloud.com) and/or if there seems to be a bug in the activation process for richdocuments, open an issue in that repo (https://githubt.com/nextcloud/richdocuments)

Do these requirements from Collabora Online still apply?

Those requirements apply mostly for install methods other than the Built-in one.

I'm going to close this, since this isn't an image specific matter and there's nothing here to be done about this.

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: office Integration with Office/Collabora/CODE/OnlyOffice/etc question
Projects
None yet
Development

No branches or pull requests

5 participants