Nextcloud 21 with Collabora & HPB
HTML-код
- Опубликовано: 25 авг 2024
- Want a self-hosted alternative to cloud storage and document editing? Follow this tutorial to install Nextcloud 21, set up the Collabora Online office suite, and add the high-performance backend for less load on your server.
(Editorial note: the "high-performance backend" I'm referring to in this video, also known as "client push" or "notify push," is for Nextcloud Files. The unrelated high-performance backend for Nextcloud Talk is not covered here.)
Find all of the commands in text form here: nerdonthestree...
See a behind-the-scenes outtake with additional explanation of my /etc/hosts and Apache configuration here: nerdonthestree...
Need a server? Try one of these providers:
linode.nots.co
digitalocean.n...
vultr.nots.co
Need a domain name? Try hover.nots.co.
---
Join the Nerd Club: nerdclub.nots.co
Official website: nerdonthestree...
Discord server: discord.nots.co
Subreddit: / nerdonthestreet
Facebook page: / nerdonthestreet
Twitter feed: / nots_network
E-Mail: jacob@nerdonthestreet.com
Server management services: managedby.nots.co
Jacob, came for the Serval review you did years ago, stayed for the install guide. Never change man, you're a gem.
Thank you very much! We have added your video to our how-to playlist!
I searched long and hard for a video that did nextcloud and collabora without using a docker image. Very straightforward and thorough.
Your Nextcloud installation videos have been an enormous help to me over the years. Thank you!
Dude, what a great explanation for setting this up. I'm gonna get rid of my actual nextcloud install and redo it the debian way. Keep going
Perfect timing Jacob! Been meaning to install nextcloud on my server for a while now
I learned a lot from this video. I've been a Nextcloud user for years and this answered a lot of questions that I could not find on the web. I just completed an installation but now plan to wipe it and follow your tutorial. Thank you so much.
That it absolutely brilliant tutorial. I wish my teachers had such ability to share knowledge. Thank you Jacob for your awesome job.
This is great.
Couple notes... for ubuntu 22 you need to open the firewall
sudo ufw allow OpenSSH
sudo ufw allow in "Apache Full"
sudo ufw enable
and if you're using arm based processors (common on oracle cloud) you're stuck with Collabora built in code - ARM64 (as far as I can tell).
Hi Jacob. You really tell the subjects very well. I followed very tightly. Thanks for your effort. and we are waiting for the sequel videos.
I have literally been trying to figure my environment up for the last 3 days (spent more than 40 hours). My setup is native linux packages with nginx (not apache) but oh my god I just watched your video and I managed to set up my environment properly finally. Thank you so much!!!!!
Thank you very much for teaching such an installation in such detail. I am very happy for your patience and willingness to help make this installation with such detail and dexterity. Greetings from Brazil to you! Very successful !!!
This was a great video! I am new to Nextcloud and currently running it on Truenas Scale as a Truecharts App. I do love how configurable it is doing it as an native app as you demonstrated. The Truecharts version is very restrictive with regard to configuration. I need to explore more on some of your other videos.
Great tutorial as always, thank you so much Jacob.
Parabéns Jacob!! Sou seu fã man! Sempre muito bem explicado e detalhado. Abraço do Brasil!!!
Wow. Thanks for your insight. Love your channel.
Great tutorial .. a lot of details included. Thanks!
Great detail. Exactly what I needed!
Any chance of an updated tutorial? I tried following your older tutorials but they don't seem to be working with the newer versions.
It's a very good tutorial. Thank's a lot..:)
That's an amazing video! i finally got everything working and fast thanks to this video! Is there a chance to have a tutorial for High Performance Backend for Nextcloud Talk? That would be really awesome!
Has anybody else had any joy replicating this with Debian 11? I seem to get everything installed (except for using coolwsd instead of loolwsd now) but when i get to open a document it just never loads. worked awesome on Debian 10, but the upgrade broke it
I cannot install loolwsd, they replaced it with coolwsd :
can multiple nextcloud instances use one single high-performance backend?
Worked great! Printing doesn't work, but everything else seems to be working.
Hey Jacob. Is there half a chance you'll update this to reflect coolwsd and possibly a VM running behind HAproxy. :pray:
Great presentation. Would you be able to update this with the current version of Nextcloud? Thank you!
very good guideline thank you very much
Hey Jacob! Thank you for your great video :). Can you tell me if it's normal to get a warning at the overview tab in the browser telling me I would reach the nextcloud via a trusted proxy? I ge this message after enabling the HPB.
Wow, that is a lot of technical info at high speed. Would be great if you could just create an image for ordinary mortals like myself to just boot from and install, then this could be Nextcloud for the masses. Also wondering if it is possible, if not necessary, to do this under Kubernetes, so that then someone could run other server applications on the same machine, such as Jitsi Meet, Rocket Chat, etc.
You can run Jitsi Meet, RocketChat, and Nextcloud from the same machine without using Kubernetes. A word of advise, if you're going to take the position of not wanting to have to know how to set something up, I would avoid involving even more complicated technologies without a good reason for it. Know what you're doing and keep it simple!
There are exactly 20,000 subscribers while I am watching this. :O
It took ~8.5 years, but I was excited to reach that milestone!
@@NerdOnTheStreet Congrats, I just subscribed too! I hope to see great content in the following years :D
after finishing installation. some issues there Impossible to delete a user or create a new without using terminal . What I'm missing ?
@Nerd on the Street: After a little digging this setup unfortunately is not working (collabora part) anymore.
Awesome, very detailed. Thank you.
Have one question: isn't it will be easier to use qemu image to set up the Collabora CODE that they provide? And I wonder which will perform better?
Thanks for the video. I've just got a NextCloud Server running on Ubuntu at my small international school and looking to install the HPB before I start adding users for my teachers and students. I'm going to try using your tutorial but I wonder if anything has changed over the last 8 months?
You explain very clearly and well and if you are looking for a new video idea, I would personally love a full NextCloud optimized install for a school serving media, documents, Talk and mail.
Thanks again.
another thing.. i follow this exact steps for installing collabora CODE, and I can never get it to connect. im always stuck with the curl error 35 command when clicking save on nextcloud, and i can't figure out why..
Sir thank you for great tutorial, I successfully installed nc21 and HPB but after the HPB working i got a warning on my nextcloud overview regarding reverse proxie configuration thank you
Step 7 is written: "nano /etc/redis/redis.conf" instead of "nano /etc/loolwsd/loolwsd.xml" on your written guide!
Yikes, that's embarrassing! Thanks for pointing that out, it's been fixed. (My website's CMS is far from WYSIWYG, and translating my own notes into a public page is usually done after spending many hours on the video itself.)
Hi, great video! I'm having some issues. Collabora Office is not available, only Nextcloud Office is so I have been using that. Also loolwsd is no longer available and is now coolwsd. Can you advise as to what the solution might be?
I will attempt this on a VM this weekend before installing this on a physical machine. I am however wondering.. will this enable auto renewal of the SSL certificate or how do I deal with that once it has expired?
occ notify_push:setup "failed to run self-test with auto-generated config" How I can resolve it?
The most recent update (i got it on Feb 7 2023) broke my install, it replaced the coolwsd.xml with a "factory" copy so coolwsd would never come up because of a missing certificate file. I was able to resolve by following section 7 of the written instructions. When checking the status of coolwsd (sudo systemctl status coolwsd) it complained about not finding a .pem certificate file, that hinted that SSL was re-enabled during the update. It looks as if the structure of the XML changed a bit so copying a backup over the new xml was not an option.
And there is no longer an option to disable the welcome screen
So the HPB is the "redis worker" that sits between redis server and the database to monitoring and sync them.
please correct me if i miss understood
Is there a way to set nextcloud for a virtual data room? If so how?
I have followed you video thank you but I'm stuck with the following error when trying to open a Collabora document.
"Unauthorized WOPI host. Please try again..."
If you copied the commands using the text guide on my website, try Part 2 Step 7 again-- there was a typo there before.
Otherwise, you must've done something differently from how I showed to be seeing that error. You can check your logs in /var/log/apache2 and using "journalctl -u loolwsd --no-pager" to try and find more details about where the issue is, or you can double-check the Apache and loolwsd configuration.
(The only time I've seen "Unauthorized WOPI host" has been while I was using a Docker installation of Collabora, as that setup requires specifying the allowed domains in the loolwsd configuration while setting up the Docker container. But for the native installation that I showed, localhost is allowed by default, and no other domains should need to be allowed manually. If you're using two different servers for Collabora and Nextcloud, then the domain name or IP address of your Nextcloud server may need to be added in your Collabora configuration, in the "Allow/deny WOPI storage" section.)
@@NerdOnTheStreet nextcloud\.myserver\.com
is needed in /etc/loolwsd/loolwsd.xml under storage to fix this issue in my setup
@@tracerv0 Thank you for the tip! Saved me. I had already touched the machine so much to correct this problem that I even formatted it. But it was worth it. Now it's perfect!
@@raimarfernando3095 I followed the guide step by step, but there were small oddities like sudo wasn't installed. Only difference being, I was installing on bare metal from live media instead of prebuilt image from a provider.
Interesting. I know DigitalOcean uses the cloud kernel instead of the generic kernel, and it also sets the hostname by default while Linode doesn't. I also know that having sudo installed by default isn't specific to Linode, it's also present in DigitalOcean's image. It's been a while since I've installed Debian locally, and I'd imagine some of the steps during setup would also determine what default configuration you end up with (besides the obvious stuff like setting hostname, the default software selection would start you off with vastly different sets of packages depending on what you select.)
For the WOPI configuration being required, in addition to the above, I'd also be curious what the rest of your network configuration looks like. There must be a difference somewhere causing loolwsd to not recognize requests coming from Apache as being local.
Good tutorial... And everything works as expected... For the reverse proxy part in the high performance backend configuration, it seems that it has to be a static IP address... Is there some possibility to allow handling of dynamic public IP addresses or possibility of entering a public FQDN?... A static IP address may not always be a given in small organizations,... any tips are welcome...
Update... An entry of 0.0.0.0/24 seems to work but not sure what is the fallback of such an entry... Anyone with any tips?
Bless you.
Awesome video Jacob! It really cleared up some things. I have one question; I am setting this up on a rpi 4, when I add the repository to the sources list it won't work? I used raspbian os lite. I thought there would be a repository for the rpi 4, but I can't find one? Do you have any suggestions?
I set up Nextcloud on a Pi 4. Can't use Collabora cause it's only for AMD processors from what I read on Nextcloud. I'm in the process of clearing off my 3tb WDMYCLOUD drive cause it won't be supported starting in April. Then I will replace the Linux Mint drive in my desktop with the 3tb drive and install Ubuntu then follow this process. I just hope it works like the video.
Hi, do you think it's possible for me to change the Collabora install from docker to local package version without installing everything from the beginning ? Also I'm using object storage as cheap expandable storage on linode. will your reddis & high performance backend work in that case? I know the object storage slows down the system but collabora + docker is horrible! Thanks for this great video. If it is possible to update from a docker install a video for that would be incredible ! I imagine there are quite a few of us in the same boat as me ?
I found the error. sudo was not installed. Since I installed sudo, everything is okay now
Lets say someone shared a file with a different user, or created an event and add some other users. are those users are supported to receive a notification? I have set up the notification part as in the video but users don't receive notifications.
And do we have to keep Environment=LOG=notify_push=trace ? or is this only for us to see the logs in the therminal?
I rarely receive notifications on my nextcloud tbh(small home installation) I think notifications are more for apps like "talk" and shares, etc. You can use an app "announcements" to make test notification if you want to test your setup :), hope it helps.
did not find python-certbot-apache. what;s a workaround ?
fixed
I'm concerned about the security of this setup. I'm new to all this so maybe I'm just missing something:
The Collabora server needs to be publicly accessible. But then, couldn't I just get my Nextcloud server to use someone else's Collabora? When your were setting up Onlyoffice in another video, there was a point where you had a secret password, so that only Nextcloud can talk to it, but there was nothing like that with Collabora. How is this hole patched?
Looking back through my materials for this video, I believe the default Collabora configuration restricts connections to the local network. You can see the relevant config lines in the "post_allow" block just above the SSL settings at 30:07.
There's also a section of the config file referencing authorized WOPI hosts; that one is a domain-name-level configuration for who's allowed to embed Collabora. I believe some other commenters reported that with their configurations, setting that option was mandatory, which is why it's part of the written guide for this video (linked in the description).
can i hire you to get the collabora deployment for our nextcloud?
I've followed your instructions, But i get "Failed to read document from the storage. please contact storage administrator. When i open documents in Collabora" Can this be a permission issue? or does this has something to do with etc/hosts?
Has anyone successfully duplicated this on NC 22.1.1? I'm trying it now. When I finish the Collabora setup, it connects to the server. But when I go to open or create a new Collabora file, it says 'Well isn't this embarrassing', then goes to a CODE loading icon that stays at 0%. Also if I return to the Settings, the Collabora Online option on the left menu is not renamed Collabora Online Developer Edition. I've tried the installation twice and everything works perfect up until this point.
Hi, same with me to... I start to wonder if there is something to do with NC 22.1.1. Or have you found a solution?😌
i got it running, are you using a dynamic dns and port forwarding to an internal IP?
@@johndeerrm How did you get it running?! I'm having the same issue and running a Int IP>>DDNS>>Ext IP>>Int IP.
Dont know if you figured it out but in my case I think my problem was with 000-default.conf I used, had some code for security that was messing the access for collablora server. I was also restarting apache when I should be restarting the collabora package instead after making changes. I installed it yesterday and the package "Loolwsd" seems to have changed to "coolwsd" , so every mention of it in the .conf files needs to be changed as well, you can look on the official docs guide for help,
Hope it helps
@ good point, the recent collabora update from APT broke my functionality. i am going to try removing loolwsd and installing coolwsd and see if it fixes it.
Hello, please make video on how to access nextcloud outside network or from anywhere. If possible brother 👍🏻😊
Thank you.
The section on Collabora installation is already out of date and your coverage of signing keys was extremely vague.
I'm sorry a year-old video is a year old. I should have requested Collabora never release any updates again so the video wouldn't get out of date. /s
Very nice video, however I went with docker for two reasons: easier updating and easier migration to a different machine, since I have everything in one directory. What would updating collabora, hpb and nextcloud look like with this installation? And how would I move all the data to another vps?
With the installation I showed, updating Collabora is achieved at the same time as updating the rest of the system with "apt update" and "apt upgrade" (or "apt full-upgrade" as I usually do.) This is one less step than updating a Docker container separately. (Nextcloud and notify_push updates are done through the Nextcloud UI; notify_push is updated as a Nextcloud app.)
If I needed to move to another server, I would run through the installation commands on the new server, then just copy my data folder and export/import my MySQL database. (I've done this a few times, switching back and forth between Linode and DigitalOcean.) I'm not sure how using Docker for Collabora would make this any easier; since the Docker container is supposed to be immutable, there wouldn't be any benefit to moving that particular instance vs. setting the container up again from scratch. And you're still going to need to run some of the commands anyway to install Apache/MariaDB/etc on the new server, unless you've got some other cloning/migration script in place, in which case it would probably cover Collabora the same as any other package if you're using a native installation.
(But you should of course do whatever makes the most sense for you; keeping it simple in this regard is just my preference.)
You sold me for Debian when you said Debian is Ubuntu without canonical BS
Thanks Jacob. Could you please make a video on docker mail server integration with Nextcloud reverse proxy. I want use rainloop webmail as external link in Nextcloud with Iframe embedded.
ruclips.net/video/ScarlmgD0dU/видео.html
Can u do this video on your method pleasez. He’s not mentioned how to use the MySQL and reverse proxy
Do you use vim?
Only when nano's not installed. (Edit: okay, I've also used vim for searching files with extremely long lines, since it can be slightly faster at that.)
first step in:
root@turris:~# hostnamectl set-hostname nextcloud
-ash: hostnamectl: not found
You're definitely not following the tutorial, since Debian uses bash and not ash by default, and includes systemd with hostnamectl by default.
@@NerdOnTheStreet Mine isn't running on Debian. ^^ But is based upon OpenWRT with Turris OS
@@guntherweygers4762 You're trying to run server software on a router?
Edit: Turris's website says at least one of their products allows running a "virtual server" with "any Linux distribution (even Ubuntu or Debian)." That's probably what you want to do, rather than running Nextcloud directly on Turris OS.
Nextcloud update to 25 breaks collabora.
collabora online disappeared
Okay maybe they call it now Nextcloud office.
Hello, Nerd on the street
Thanks for the great tutorial. I follow your instructions step by step but I reached step 13. After setting and
sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess, I have this error (-bash: sudo: command not found). And it is the same -bash: sudo error
I got here (sudo -u www-data php /var/www/nextcloud/occ notify_push:setup). I am running vps with debian 10. Please help
Justin
Try 'apt install sudo' as root
Nextcloud 21 is still in beta, right?
Nope, it was released as stable towards the end of February: nextcloud.com/blog/nextcloud-hub-21-out-with-up-to-10x-better-performance-whiteboard-and-more-collaboration-features/
@@NerdOnTheStreet thank you, it's not out for Nextcloud Pi yet.
10
u mean High Performance Blockchain $HPB