-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Package request: Collabora Online Development Edition & Nextcloud support #218878
Comments
This would be really useful to have packaged for easy deployments. |
Agreed, especially since Hetzner's managed Nextcloud instances (Storage Share) essentially requires the user to provide their own Collabora instance (their recommendations for OnlyOffice are no longer supported on the latest Nextcloud version). |
Turns out there's some detailed documentation on the installation and configuration process, which was somewhat difficult to find from the project's website: https://sdk.collaboraonline.com/docs/installation/index.html |
There's more info on how to build it here: I started building the collabora variant of libreoffice and I'm running in to some issues with tests. It's not much so far but hopefully I can get it working in the next few weeks / months. |
Any progress? |
Progress is mostly stalled: I've managed to package it up, but the service it self doesn't work because COOL will run each user instance in a chroot environment and I've been stalled on that front. |
@EricTheMagician Any progress? |
No progress. I've been stuck on it for awhile. |
Thank you! When I have some time (perhaps next week) I can try to help :) |
This is the "Nextcloud Office" app that offers Collabora CODE integration. You still need Collabora CODE itself running somewhere but this is one step towards NixOS#218878.
This is the "Nextcloud Office" app that offers Collabora CODE integration. You still need Collabora CODE itself running somewhere but this is one step towards NixOS#218878. (cherry picked from commit 04445ac) (cherry picked from commit 373986b)
This is the "Nextcloud Office" app that offers Collabora CODE integration. You still need Collabora CODE itself running somewhere but this is one step towards NixOS#218878.
This is the "Nextcloud Office" app that offers Collabora CODE integration. You still need Collabora CODE itself running somewhere but this is one step towards NixOS#218878. (cherry picked from commit 04445ac)
Adding my +1, I'm running a Nextcloud server on a Hetzner VPS and a network mounted Storage Box. Everything works perfectly and my setup is not too complicated, however the OCI container for Collabora CODE takes up 2GB of my scarce SSD space and I assume it's not as efficient on RAM and CPU either. If I could easily add a Nix packaged alternative with 2-3 lines of configuration to my NixOS container on the VPS it could make it much leaner. |
Is it possible to compile the non-CODE version? |
@EricTheMagician Seems libreoffice-collabora and Collabora Online is already merged into nixpkgs. (CC Nextcloud maintainers @schneefux @bachp @globin @Ma27) |
Nextcloud support hasn't been implemented yet afaik. |
@dotlambda I'm not sure if there is anything needed on the nextcloud side. I haven't tried the Nextcloud Office app, but for OnlyOffice it is basically just running the server and then configuring the OnlyOffice app to point to that server. I assume it's similar for Nextcloud Office. |
I haven’t tested this package yet because I didn’t have time but I’ve been using Nextcloud office with the CODE docker image and it’s been working fine. I assume it would be a similar setup with this package. Of course it would be nice to have a one liner config for the Nextcloud server to automatically include and set up CODE. 😊 |
It may help people like me if there is nextcloud support. |
May I ask which version of CODE docker image are you using? |
I think this is my active config |
I also have a CODE docker config, https://gitlab.com/turion/enigmanix/-/blob/master/specific/manuelbaerenz/nextcloud/collabora.nix?ref_type=heads, which is copied together from blog posts. |
I actually use the CODE appimage, which I assume will be similar to the merged PR: |
Thanks for sharing this! Really appreciated, so now I am sure the package/image is not the cause of the issue in my setup. |
This is it!!! Thank you for your config!!!! The actual problem is, the official guide of collabora online nginx reverse proxy setup did NOT work well with NixOS! After directly applying the official nginx reverse proxy setting (SSL termination) into NixOS, after a In your config, the websocket proxy related settings are also applied in the EDIT: Tested solely to use the Hope this help for someone who encounter the same problem. |
I have no idea if what you mention was me working around the same problem. It has been too long ago since I configured this, so it could very well be. I don't think there is a way to influence the location block order. |
Hi everyone. I've been trying for days now to connect Collabora from the unstable channel to my Nextcloud. I've encountered multiple issues, including problems with the proxy settings. In parallel, I also set up the Docker image for testing purposes as described here (though I had to adjust the proxy configuration here as well): 1. Proxy Settings 2. Error Messages When Opening a Document (after proxy fix)
I don’t get these messages with the Docker image. So far, I haven’t been able to determine if this has any impact. 3. PDF Conversion, Downloading, and Printing Not Possible
Printing in general, as well as converting and downloading PDFs, is not possible. This works without any issues in the Docker image. Overall, the Docker image seems to work fine except for the proxy fix. There’s only one message which, to me, seems more like a Docker issue (update: fixed)
(I’m not familiar with Docker and didn’t want to change it).
Nextcloud Config
Collabora Config
Nginx Config
Can anyone confirm these issues with the pkgs or shed some light on them otherwise? |
@456634 I've been able to configure nginx with a singular I can confirm that I also see the errors about the branding files or when trying to export to PDF. Additionally, I also see some |
Hi @ambroisie , to be honest, I can’t say too much about this. Generally, I think it’s a good practice to follow the developers’ configuration guidelines initially. As I understand it, nginx respects the order of locations after "^~". Therefore, we apparently need to ensure that this order is also maintained under Nix, which we can achieve using priority. However, why the order of locations isn’t respected under Nix, I unfortunately can’t explain at this point. |
I also had to set the listening interface of collabora to loopback because it picked the wrong interface on my server by default:
Maybe that would also make for a good default setting? I'm currently trying to find out why printing is not working. I figured out at least that |
More findings: I obtained a system trace and the last thing collabora does before failing to print is trying to access "/var/lib/cool/systemplate/lo/unorc" which does not exist. The directory "/var/lib/cool/systemplate/lo" just contains a symlink called "lo" pointing to "../../../../lo" . I tried to figure out where this file is created and it should come from the Indeed, I enabled bash
The script creates the symlink twice. The second time, it figures out that the name is a directory and creates a file inside the directory instead of the file itself. |
Project description
Collaborative online document editing software. In particular, it should be possible to integrate this into a Nextcloud server. (CC Nextcloud maintainers @schneefux @bachp @globin @Ma27)
See an example where someone integrated this with Nextcloud, but Collabora in a docker container:
https://discourse.nixos.org/t/does-someone-run-nextcloud-onlyoffice/25382/2?u=turion
Ideally one could do
services.nextcloud.code.enable = true;
and there would be collabora support.Metadata
The text was updated successfully, but these errors were encountered: