this is one of the best tutorial videos on youtube. I really appreciate the time to explain what you doing when you doing it. A lot of those videos from other channels are like "type this" or "type that" without any explanation what those commands do. Thank you so much for not assuming that all the viewers have linux experience. I am complete noob and I am starting my adventure with proxmox and your tutorials are excellent. I really hope your channel will grow a lot so more people can appreciate your teaching skills !!!
I was almost about to give up on getting this to work and then I magically found your tutorial to set up exactly what I needed. This was by far one of the easiest tutorials I've ever followed, thank you so much for making this, and of course you just got a new subscriber!
Thank you, really useful and clear guide. Note for future watchers, the Cloudflare interface has changed slighlty and tunnels appear under a Network menu now.
awesome...got mine up and running just by following video...and i just installad proxmox last week! i now have a blazing fast 8 tb nvme array accessible on the cloud...good times!!!
I have no idea how you learned all this, but thank you for sharing your knowledge! Helped me out a lot! Would've never figured this stuff out by myself. Really liked how you explained what each commands did in layman terms.
You are the best, followed step by step and got it working in under 3 hours! Thanks to you're detailed comments and calm phase my first approach has been a breeze. You are my hero i have been searching for a while to wrap my head around the whole process and thanks to you finally got it!
Massive thank you. As others have said you explained each part which was a massive help for someone such as myself who has never worked with servers before. Took me a few days to stumble upon your channel but really glad I did!
thank you! This time, I bought a domain and applied it to homelab, and I first learned that it was a cloudflare tunnel through this video. Also, setting up a cloud via ZFS is really intuitive and easy to manage. Thank you so much for making the video.
Wouldn't it be easier to set the mount point to the nextcloud root folder as a whole instead of setting one for each user? I mean, doing it separately as you did is gonna require a reboot of the container each time a new user is added, wouldn't it? Have you done it this way because of security reasons? Awesome video, thank you very much!
This is by far the proper tutorial video. I was able to install and configure NextCloud on my server without having a single problem. Thank you and I am subscribing for future videos :)
This is my first video of yours. The best video and I followed with you. Its crystal clear and flawless. All went up well and I have my nextcloud up and running. One of THE BEST video on Proxmox, Nextcloud and Cloudflare. You got a subscriber here. Keep it up and hope to see more videos like this from you.
MRP thank you !! I love the topic, video and how you explain the commands and why they are used. As well as giving alternatives to use. Truly appreciate your time and effort in making this available. Thank you SIR can't wait for more !
When i want to learn something ... most of tutorials gives me what i need at 70% level. I don't like when speaker showing stuff without explaining why he picked A and not B? Why i need to run command A but not B even if A command is almost the same as command B. Why you selected this option? What is a reason? These kinds of tutorials / guides leaves me in position where i need to spend more time trying to figure all remaining 30% myself troughs google or watch even more "information dry" videos. Things that getting missed might cause problem during setup / configuration - and you ending up with big mess. Don't get me wrong, there are a lot of amazing YT content creators that provides outstanding amount of information. I want to do the same but explaining in much more simple way, almost like doing ELI5 style :) I am not perfect ... i do make mistakes ... but i will make sure that things i demonstrate will give you close to 100% information you need to get things going.
Only issues i had were in the first minute lol…..Couldn’t download nextcloud Lxc templates after fresh proxmox install. Had to correct nameserver in /etc/resolv.config & update pveam list using the Shell first, if anyone has the same issue. 0:59
Mr P, can you do a video about getting nextcloud office working. Only if you have time that is. Regardless, this is a fantastic tutorial as always. Big hug from Portugal.
second video i watch after openmediavault, great video, great explaination, i learn a lot on the omv video, and this one explaination many think your video are so esay to follow +1 sub thx
Great video, you explained really well. Instead of using zfs, I would like to put the storage on my truenas scale at say mount point /mnt/zeus/nextcloud. How would I go about that? I tried created a mount point similar to what you did for zfs but didn't work.
This is great video with detailed instructions. I am setting it up in the same way, but I would like to use unprivileged container because of security reasons. But as you have mentioned I am now able to change the ownership of the files and getting error message: "chown: changing ownership of 'files': Operation not permitted". Are there any instructions on how to do this for unprivileged containers? Otherwise, I'll probably have to set up a VM for this. @MRPtech
Great and simple tutorial! Thank you! But i have a problem - when i open any folders on my Nextcloud from web GUI, after a 5-10 folder NC freezes and after reload page i get an error - Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log. In logs i see this - "Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused. After i reboot container of nextcloud it works again. Till i am don't walkin in folders. Then it crashing again. What i am doing wrong?
I really congratulate you and thank you very much for the professional and exhaustive work you do through your videos. This is just what I was looking for. I'm new to these systems and I'm not practical, plus I don't speak English well. I would like to better understand why I have to add users from the console and not from the web interface. I would like to share Excel files, pdfs and photos even remotely with my staff which is 30 people and some of them will have access to different folders of the tank, do I have to manually create 30 accounts from shell?
1. Reason i did via terminal. Much easier to check who uses most storage and to custom snapshots of data in the future just for that user and not all. 2. [Please note, i haven't tested this] if you want to create users video NC website and not terminal. mount-point dataset to make nextcloud-data folder. example: mp0: /tank/nextcloud-data,mp=/var/www/nextcloud-data Not sure how installation will work when dataset will be mounted prior turnkey doing nextcloud install.
Great tutorial, thanks! Do you have any suggestions - I did the two mount points in the CT config, but when I run 'df -h' in the container, my mounted storage is not showing up there. Thank you! EDIT: funny it worked when I deleted the two lines in the CT config file and added them using the 'pct set CTID /path/from,/path/to'. Anyway, got another sub!
Thanks a lot, works like a charm. I did a fresh install due to the fact, that the local drive was to small for my purposes. The folders within files from the old install wont be displayed. Do you have an idea, how i can fix this? Thanks alot, you're great and a great help for the communiy. :)
Absolutely fantastic video, thanks for sharing it and taking the time to explain it in detail. One issue I have is when I restart the Debian Cloudflare CT the cloudflare connection is lost and doesn’t come back. Am I missing something in making the connection recursive when the CT restart? Thanks
To add a little more. The service seems to work fine for a while and then just presents a Bad Gateway 502 error. I can still see the Nextcloud via the private IP address.
Hi bro, great video big thanks!! I followed your instructions step by step and it works very well with me for 3 days, but today I have a 502 error: Bad gateway when I try to access my nextcloud even if I didn't change anything on cloudflare or in configs, do you know how to solve this issue?
Great video as usual MRP. I'm a bit reluctant to use Turnkey container as I have tried with Jellyfin Turnkey but when I tried to upgrade the JF version, I had issues and it turned out the turnkey sort of protect the integrity of the the container version along with the app version within it. So, I had to use the new version of JF turnkey CT and reconfigure JF libraries from start. If this will be the same with NextCloud, I have to chose a different plain container away from Turnkey. What do you think?
I have been using NC turnkey CT for quite a while now. Haven't had any issues with updates. My approach to updates : i do try to update them once a month. Once new version is out i give another week or two to settle down before doing any changes / updates.
Hey MrP fantastic video. However, I found out that I'm limited by my internet connection speed even if I'm local. I've tried turning on Nat Loopback/Hairpin on my router and can't make it work, I'm thinking it's because of the Cloudflare Tunnel. Any insight on this?
Yes. If you go via CF tunnel - traffic will be redirected over internet. You can connect to NC via local IP address or if you have PiHole you can setup local dns address, something like nextcloud.local.hub You will need to add "nextcloud.local.hub" as trusted access point inside nextcloud config file
Today another error message. I can easily access https, I can upload and download without problems both via admin and via any user, but in administrator settings a yellow error message appears saying that the server has no internet connection, consequently, I cannot update, I cannot send emails, and I can't download apps. I've already done research and tried them all. The file /data/files_external/rootcerts.crt is not empty, it is the same as the versions of old backups that did not have internet connection problems. If I try to restore any old backup that had no problems nextcloud returns bad gataway. Suddenly it started doing this problem do you have any idea?
Excellent video got mine setup now following this thank you although missed steps attaching zfs storage. Missing from this video tho is how to adjust file upload size that nextcloud is restricted to on install. Also could you do follow up please on how to update this turnkey instance and nextcloud?
NC upload size: docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html Update is same as any other linux distro - inside turnkey container run "apt update" and "apt upgrade" Make backup before doing that - just in case
@@MRPtech thank you. Does the apt update update nextcloud also then? I tried the nextcloud update from web interface on my first install and that failed and crashed system?
I am not expert but I did like tihs "Make a backup; apt-get update && apt-get upgrade; update nextcloud from website Administrative Settings > Overview
Great! I did everything following your tutorial. It is working! Thank you! ... just one question: I'm using cloudflare tunnel, exactly 1:1, as you showed, but this way, even I'm in LAN, everything goes through internet with very low speed. I can add my local IP address to nextcloud config.php and run it, but how to make it that it would work automatically, when I'm on LAN then my domain is "routed" locally and when outside LAN then within internet? Can you advice on this one please?
Hello, again a great and understandable video from you. I have been thinking about using the CF tunnel for Nextcloud for a while :-) I have an ambiguity regarding data protection. There is on YT one or the other critical statement that the traffic that is passed through the CF tunnel can be analyzed and read by CF. How do you see this? Can I use the tunnel with good conscience also for example for Vaultwarden?
I have been using CF Tunnel since day one, and in my day job we been using Cloudflare services for 5+ years. maybe more. I can't understand why people so obsessed that CF might ready their data. If you want security for your stuff, you go to the Pro and Cloudflare is a KING of all this. If you don't like that cloudflare can see what you sending or receiving, well, maybe you should stop doing what ever you are doing. I do accept that some companies don't want their data to be shared because GDPR in EU and other things. Well ... these companies have so much $$$ that they have their own way of securing there connection. Still, i bet these companies using Cloudflare for their website security like everyone else in the world.
@MRP, Thanks for the amazing tutorial but I couldn't understand why you created a separate LXC container for cloudflare tunnel. I think I can use the same nextcloud LXC for cloudflare tunnel as well. Any specific reason for a separate LXC for cloudflare?
Main reason: If i want to scrap NC instance and go with something else, for example FileBrowser or anything else. I will destroy NC instance which will kill Cloudflare. For me to have Cloudflare as separate instance - keeps it away from anything else. In some cases it is useful to have two stuff inside 1 VM/LXC like for example Transmission and VPN ;) At this moment i have LXC container with Cloudflare Tunnel + Pihole + Tailscale These 3 service must be ONLINE at any cost, if they not, i loose half of my sh*t :) If something will happen, 1 single restore will bring them back to life.
So my ls -l doesn’t look like yours the names are different colours but I don’t see any letters or numbers in a row like it does on yours So I can’t see the permissions, I obviously don’t know what the colours are, I’ve set chown 33:33, and the folder link ends in (admin/files) I still see nothing in the UI but when I go to the console and follow the path to the end I can see the folders I have stored on my zfs, is there something additional we need to do in the ui settings, have they pushed an update since this video was made and for new instances this no longer longer works? Please check thanks for the video hope I can get this done as this is much prettier than just turnkey… and yes my container is privileged for nextcloud, edit - I haven’t checked what it says in the ui, if it sees the mount point or not edit - the mount point is showing up under settings - administration - system “in the web ui” so something is wrong with permissions?
I’m still facing this issue, when going in to webmin and looking under the file manager folders and files are being made in the mount folder, but any existing files and folders aren’t showing up only new ones, I’ve changed the permission of all the existing files and folders to match that of the folder that was made in the mount point by nextcloud 0755 www-data:www-data however the existing files and folders don’t show up? it’s like nextcloud has an index of the files and folders and isn’t even checking the folder to see what’s already there
hey, unfortunately I can't do this with a resource mounted via smb or nfs. I cannot change the permissions for .../user/files. chown -R if it doesn't work at all, the root user on the mounted resource can create and delete directories without any problems. Do you have any idea what's wrong?
Setup Nextcloud in the way i did in this video. Instead of Cloudflare LXC, get Tailscale LXC running (How to - ruclips.net/video/QJzjJozAYJo/видео.html) Tailscale Subnet-advertising must be active. Inside nextcloud config file, add tursted domain Nextcloud LXC container IP address. Now you can access nextcloud from any of your devices as long as all tailscale devices linked using same tailscale account
for omv to work you need to attach at least one drive to it. the way i would do it - setup ZFS inside proxmox and for omv i would create one large drive and attached to it. drive location will be ZFS, omv will see that drive as normal drive which then it can use to store files.
ruclips.net/video/PHmHNzv3a7s/видео.htmlsi=qaoyXoj1CdNebTkD Where i am attaching a drive - i would just get virtual drive assigned to OMV VM via Hardware tab
If you do it this way, everytime you add a user now you have all these extra steps to move the user data to zfs pool. Is there an easier way like directing nextcloud to save all its data to the zfs to begin with? Or create the nextcloud vm to be contained on zfs or maybe setup a truenas vm and provide a share for nextcloud to store on after passing drives through to truenas and using it to create the zfs pool? The idea is to reduce administration and not to increase it.
To get this setup done as you describe you need to mountpoint ZFS data set to /var/www/netcloud-data before starting Nextcloud LXC for very first time. Reason for me doing the other way ... this kind of setup already been deployed and in use for 3 - 4 months at one of my friends company. He has Proxmox PVE with 4 ZPools. 3 of them are used for 3 customers. Each customers data saved at separate ZPool and 4th used for general customer. We did this because 3 Pools that are used for 3 customers has high performance enterprise drives. 4th ZPool contains just standard drives. If one of the ZPools dies, at least other customers still can upload data. For our use case is much better to migrate just customers dada across to another ZPool and not migrate entire Nextcloud file structure.
@@MRPtech So are you using one nextcloud instance for all the customer's instead of separate per customer? It would still be better to have hba's passed through to a truenas vm and have separate pools in truenas this way. Truenas does a much better job and has more utility for ZFS than proxmox does as far as i understand. Plus you wouldn't have to do any commands and could just point the containers to shares from truenas to reduce your management.
Hi, Step 1 to troubleshoot this. Restore Config file to original state and try to start Nextcloud. If NC starts - Modified config file contains syntax errors.
CF Tunnel TOS for home lab users is a bit grey area. If you won't push a lot of data via CF servers - i don't think they won't even notice. When you will push 1TB+ over their servers each month - then you might get in trouble.
I have been using cloudflare tunnel for my home lab for over 1year and not onces I been contacted by Cloudflare team. Via CF Tunnel I set to access Plex, Nas, remmina, webtop, uptime-kuma, Kasm ... Almost every single thing I have running in my home lab. Why others getting flagged - don't know. Maybe because got my domains via cloudflare register instead of using other providers. Hmmmm....
@MRPtech Interesting, I have my domains registered through cloudflare as well. I don't see why they would discern where domains are registered, but I will give it a shot and keep traffic to a minimum.
Can you do a video on what configurations that you need to do following this install for Talk to work externally ? I can not seem to find any body that is documenting the usage of Talk wile using Cloudflare tunnel. I also am using PFSense as my router and the domain is an actual Cloudflare domain. Everything is working to include starting calls but audio and video are not making it outside of the network. When I start the call if I hit a reaction you can see it on the other side of the call. I have tried all the fixes I have found but I am obviously looking at the wrong things to fix this issue.
Hmmm. I know that Cloudflare Tunnel and well, Cloudflare in general will "complain" about using their system to host media (livestream, movies, music, photo gallery). Could be that your TALK service getting blocked by cloudflare due to their limitations on this kind of content being sent via CF pipes
@@MRPtechyea I am seeing mixed information about that. It would seem that since the 2021 changes it should work. However, maybe you could make a video on how you would configure NextCloud for Talk to work? CF might not be the best option in this case. It looks like you route TURN via unproxied DND ?
Yes. you can use single drive for all this. You can use single drive per user if your system has enough connections to accommodate more drives. I used ZFS setup because it was easy to setup and i thought would be great to include that.
@@MRPtech got it all working. Of course like an idiot i followed the guide of setting the nextcloud disk size to 12G so that was my total capacity. Then had DB problems on the next few installs because i forgot to add 'nesting'. Last fresh install set my SSD to 200GB and all works a treat. Installed the 'memories' app in nextcloud which i read is supposed to be pretty good and now uploading all my photos, so thank you again for a great informative video.
Where did you created that folder. If folder created under Admin data structure - only admin will see that folder. If you want folder to be accessed with others, you need to link that folder with all users using network share or just a simple share over nextcloud
@@MRPtech Thank you very much and sorry so much for the question, I realized, for myself, how silly it was. In any case, I officially inform you that your video has produced the desired results, before, and perhaps still now, I didn't really know what linux was, never used anything more than Windows, and this just means that you are one of the few who know really being a computer communicator, you deserve a wall of plaques just for that. Now I have 30 people who can share data, access the ones I share, and even work on them directly without downloading them, all this from wherever they want and with any device, even smartphones. I have proxmox on a mini pc 12v 2a bought used for 80€, with two 3tb usb disks in zfs mirror for data, with a bullseye container with a cloudflare tunnel to access proxmox remotely over https. Then another bullseye container is running with another cloudflare tunnel to remotely access nextcloud running on another container. Everything works perfectly but sometimes, without me doing anything, the nextcloud link returns "Bad Gateway" and I'm forced to restore a backup of the nextcloud container to make it work again and I really don't understand why. Again many, many thanks for the time you dedicate to people. Next step data backup on second offsite server, any ideas?
Hi, Thank you for your comment! I am glad that you got everything sorted. I do too get "Bad Gateway" once in a while. Not sure what is going on, i am convinced i have missed some configuration or specific setting options not turned on. For me a quick and dirty work-around - i set cron to auto restart Nexcloud at midnight. Since then i haven't had a problem with "Bad Gateway". is this is a solution - No. Is this a temp solution - at this moment Yes. For offsite backups - i am using rclone + backblaze. At midnight rclone syncs my proxmox backups, my family photos and other irreplaceable data. Backblaze cost $0.005 per GB stored. So far i pushed around 1TB of data which costs me around £5 per month to store. To make sure i keep on top of all this. So things gets auto deleted after sync completes, like for example Proxmox backups. i want to store last 3 days of backups so rclone deletes every proxmox backup that is older than 4days. Another offsite backup could be - your friend, family member, anyone you can trust - if they have their own nas and there is a way to install tailscale - you can setup SMB share over tailscale and sync stuff to their server overnight for offsite backup.
I followed the setup excactly and it worked great , then suddenly got a 502 from cloudflare , even if i did not change any settings , do you need to configure something else than tunnels on cloudflare dns ?
I noticed when I add a user to Nextcloud I get the 502 cloudflare error. I identified this was the trigger by creating a backup of Nextcloud before adding a user. I then tried multiple times to create a user I get the same error everytime. Looks like I will just have to use an admin account.
what are these problems? 1) The last background process lasted 1 hour ago. Something wrong. Check background process settings ↗. 2) Last cron run: 2 hours ago. There may be a problem.
When you logged in to Nextcloud. under setting you should see System Info (or something like) that option. That page should show you your nextcloud statistics / usage. Are all the graphs maxed out when you uploading or downloading files from NC?
This works great for about 24 hours then I start getting 502 from cloudflare. I can't even access it locally (connection refused). I think it has something to do with Apache and certs. I've gone through the whole process from scratch 3 times.
Where your DOMAIN lives? In Cloudflare or 3rd party provider? nameserver changed to CF ? When you setting up CF tunnel and access rules, do you create special rules for your access only or public access?
@@MRPtech the setup is no problem and access is fine through cloudflare (they do not host my domain). But after about a day nextcloud starts refusing the connection through both my domain, and locally. Apache crashes and refuses to start, complaining about shared memory, even after increasing it and opcache. I've spent many hours but have yet to figure out why. It happens every time I create the ct.
Thanks a lot, good guide, i used tailscale instead of cloudflare. I have tank/myuser/files tank/myuser/files But, why still the space on / goes finishing instead of zfs pool? Should i edit the datadirectory (it's strange because i have mountpoints..) Thanks
I have a challenge: I would like to always have a copy of my files and folders that I upload to my Nexcloud account. Is it somehow possible in promox to automatically copy new files and folders from my nextcloud user_1 datadirectory into a backup directory ? nextcloud datadirectory => (/dev/sdb1) /mnt/pve/data_1/nextcloud-data/user_1/files/ backup directory => (/dev/sdc1) /mnt/pve/backup/nextcloud-data/user_1/files/
With instant change - that will be a bit tricky to setup and on top of that, proxmox host will get performance tanked if a lot of data getting moved almost instantly between two folders. the way i would do this, setup cron task to run every 5 min with "rsync" command. example 0/5 * * * * "rsync -aAX /mnt/pve/data_1/nextcloud-data/user_1/files/ /mnt/pve/backup/nextcloud-data/user_1/files/ --delete" This cron task should run every 5 min and sync files from folder-1 to folder-2 I need to check something first, there is a way to tell system not to run command if the same command already running. will come back to you about that as soon as i can.
How do you get rid of the /index.php/ ? The turnkey ct does that and its ugly. I think its because of the /var/www/nextcloud folders? it should sit in the webroot
this is one of the best tutorial videos on youtube. I really appreciate the time to explain what you doing when you doing it. A lot of those videos from other channels are like "type this" or "type that" without any explanation what those commands do. Thank you so much for not assuming that all the viewers have linux experience. I am complete noob and I am starting my adventure with proxmox and your tutorials are excellent. I really hope your channel will grow a lot so more people can appreciate your teaching skills !!!
I so agree with you. I kind of get angry if the tutorial doesnt contain information on choices done.
+1 - just followed this after my ncp from 2020 finally died. this is by far the best tutorial I've had. Thank you @MR.P!
I was almost about to give up on getting this to work and then I magically found your tutorial to set up exactly what I needed. This was by far one of the easiest tutorials I've ever followed, thank you so much for making this, and of course you just got a new subscriber!
Your welcome. I am happy that you got all working as you wanted
Fantastic video, thankyou! I really appreciate the additional information you provide, it has helped me understand so much more. Learning every day!!
This was really good. You have filled so many gaps that I had on this topic. Please make more of this sort of thing.
Thank you, really useful and clear guide. Note for future watchers, the Cloudflare interface has changed slighlty and tunnels appear under a Network menu now.
awesome...got mine up and running just by following video...and i just installad proxmox last week! i now have a blazing fast 8 tb nvme array accessible on the cloud...good times!!!
I have no idea how you learned all this, but thank you for sharing your knowledge! Helped me out a lot! Would've never figured this stuff out by myself. Really liked how you explained what each commands did in layman terms.
You are the best, followed step by step and got it working in under 3 hours! Thanks to you're detailed comments and calm phase my first approach has been a breeze.
You are my hero i have been searching for a while to wrap my head around the whole process and thanks to you finally got it!
Massive thank you. As others have said you explained each part which was a massive help for someone such as myself who has never worked with servers before. Took me a few days to stumble upon your channel but really glad I did!
Really happy to see your views rising, I remember when you were just starting. The fan base is steadily growing. Keep it up
Thank you soooo much for this kind comment.
I do appreciate !
@@MRPtech I just found you today. Thanks for explaining everything so in-depth. You now have a new subscriber. :)
thank you!
This time, I bought a domain and applied it to homelab, and I first learned that it was a cloudflare tunnel through this video.
Also, setting up a cloud via ZFS is really intuitive and easy to manage.
Thank you so much for making the video.
What a great video been wanting to this for ages but never found a full. Video. Very well explained. Well done.
Wouldn't it be easier to set the mount point to the nextcloud root folder as a whole instead of setting one for each user? I mean, doing it separately as you did is gonna require a reboot of the container each time a new user is added, wouldn't it? Have you done it this way because of security reasons? Awesome video, thank you very much!
I am sure its been said already a few times. Thank you for your generosity, knowledge, and time.
Sir, you are awesome! Thank you for the good explanations. I was able to get Nextcloud up and running in about an hour.
in 4 weeks i watch your video many time. today i get it done. my nextcloud working great now.
This person is expert on playing with zfs
This is by far the proper tutorial video. I was able to install and configure NextCloud on my server without having a single problem. Thank you and I am subscribing for future videos :)
Watched a few of your tutorials, so easy to follow I learned a lot as usual!
This is my first video of yours. The best video and I followed with you. Its crystal clear and flawless. All went up well and I have my nextcloud up and running. One of THE BEST video on Proxmox, Nextcloud and Cloudflare. You got a subscriber here. Keep it up and hope to see more videos like this from you.
Me too, concur
MRP thank you !! I love the topic, video and how you explain the commands and why they are used. As well as giving alternatives to use. Truly appreciate your time and effort in making this available. Thank you SIR can't wait for more !
When i want to learn something ... most of tutorials gives me what i need at 70% level.
I don't like when speaker showing stuff without explaining why he picked A and not B?
Why i need to run command A but not B even if A command is almost the same as command B.
Why you selected this option? What is a reason?
These kinds of tutorials / guides leaves me in position where i need to spend more time trying to figure all remaining 30% myself troughs google or watch even more "information dry" videos. Things that getting missed might cause problem during setup / configuration - and you ending up with big mess.
Don't get me wrong, there are a lot of amazing YT content creators that provides outstanding amount of information. I want to do the same but explaining in much more simple way, almost like doing ELI5 style :)
I am not perfect ... i do make mistakes ... but i will make sure that things i demonstrate will give you close to 100% information you need to get things going.
Thanks mate, really appreciate the pace and clear descriptions of your actions during the tutorial, always makes me keen for the next instalments.
Thank you, tried this y myself and missed the privileged container part. Got it to work after watchimg your video
Really good tutorial, all the steps are very easy transferrable to non-proxmox hosting models as well, which is awesome.
Thanks for your video.
An idea for a new video is to have LDAP (managing user) and the create in nexcloud per user a home folder.
Thanks in advance
sweet, finally working with tunnels... thank you😃😃😃😃😃
Only issues i had were in the first minute lol…..Couldn’t download nextcloud Lxc templates after fresh proxmox install. Had to correct nameserver in /etc/resolv.config & update pveam list using the Shell first, if anyone has the same issue. 0:59
could you please elaborate, im currently stuck in that part.
Edit: Used the command "pveam update" in shell and got it
Great stuff and I learnt a lot . Thank you for sharing
you made this easy man, thank you very much for the awesome tutorial.
greatest video for all that stuff... thx a lot
Thank you, the tutorial is spot on!
Mr P, can you do a video about getting nextcloud office working. Only if you have time that is. Regardless, this is a fantastic tutorial as always. Big hug from Portugal.
nice thank you for making the video I requested . :)
am lost, i have true nas scale, but idk how to let it use my truenas storage.
Best one ever made!! Thanks!!!!
One of the best Videos. Thank you
great tutorial, subscribed :)
Best tutorial ever!!! Thank you
second video i watch after openmediavault, great video, great explaination, i learn a lot on the omv video, and this one explaination many think
your video are so esay to follow
+1 sub
thx
Great video, you explained really well. Instead of using zfs, I would like to put the storage on my truenas scale at say mount point /mnt/zeus/nextcloud. How would I go about that? I tried created a mount point similar to what you did for zfs but didn't work.
This is great video with detailed instructions. I am setting it up in the same way, but I would like to use unprivileged container because of security reasons. But as you have mentioned I am now able to change the ownership of the files and getting error message: "chown: changing ownership of 'files': Operation not permitted". Are there any instructions on how to do this for unprivileged containers? Otherwise, I'll probably have to set up a VM for this. @MRPtech
great stuff
Thank you very much for this video, this video helped me out a lot!💻
Your welcome.
I'm glad video helped you
Ty ty ty!
Wow… but can I do the same hack if I want to mount a folder that’s on an SMB share?
Great and simple tutorial! Thank you! But i have a problem - when i open any folders on my Nextcloud from web GUI, after a 5-10 folder NC freezes and after reload page i get an error - Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
In logs i see this - "Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused.
After i reboot container of nextcloud it works again. Till i am don't walkin in folders. Then it crashing again.
What i am doing wrong?
thank you
MRP your a star
would you do a tutorial on how to do ZFS operations with an unprivileged containerer?
How to limit disk size on mrp let say just 10gb?
Great.
Thanks a lot!
I really congratulate you and thank you very much for the professional and exhaustive work you do through your videos. This is just what I was looking for. I'm new to these systems and I'm not practical, plus I don't speak English well. I would like to better understand why I have to add users from the console and not from the web interface. I would like to share Excel files, pdfs and photos even remotely with my staff which is 30 people and some of them will have access to different folders of the tank, do I have to manually create 30 accounts from shell?
1. Reason i did via terminal. Much easier to check who uses most storage and to custom snapshots of data in the future just for that user and not all.
2. [Please note, i haven't tested this]
if you want to create users video NC website and not terminal. mount-point dataset to make nextcloud-data folder.
example:
mp0: /tank/nextcloud-data,mp=/var/www/nextcloud-data
Not sure how installation will work when dataset will be mounted prior turnkey doing nextcloud install.
How do I allow certain users to access only some folders and not the whole tank?
hi everyone one question. is possible running both system in the same containner. Cloudflare configuration and nextcloud image?
Can I share /tank/nextcloud/mrp between nextcloud container and fileserver container?
Great tutorial, thanks! Do you have any suggestions - I did the two mount points in the CT config, but when I run 'df -h' in the container, my mounted storage is not showing up there. Thank you! EDIT: funny it worked when I deleted the two lines in the CT config file and added them using the 'pct set CTID /path/from,/path/to'. Anyway, got another sub!
Really good, thanks a lot!
Thanks a lot, works like a charm. I did a fresh install due to the fact, that the local drive was to small for my purposes. The folders within files from the old install wont be displayed. Do you have an idea, how i can fix this? Thanks alot, you're great and a great help for the communiy. :)
Hi MRP, is it possible for you to teach us how to install Trilium notes + Cloudflare tunnel? Or recommend any video tutorial, thank you so much!!
Will do. First I would like to use it for couple days. Then video will be done.
@@MRPtech thank you!!
Great guide, but unfortunately i cant do ZFS. Note: ZFS is not compatible with disks backed by a hardware RAID controller. How would i do this LVM?
Absolutely fantastic video, thanks for sharing it and taking the time to explain it in detail. One issue I have is when I restart the Debian Cloudflare CT the cloudflare connection is lost and doesn’t come back. Am I missing something in making the connection recursive when the CT restart? Thanks
To add a little more. The service seems to work fine for a while and then just presents a Bad Gateway 502 error. I can still see the Nextcloud via the private IP address.
Hi bro, great video big thanks!! I followed your instructions step by step and it works very well with me for 3 days, but today I have a 502 error: Bad gateway when I try to access my nextcloud even if I didn't change anything on cloudflare or in configs, do you know how to solve this issue?
Great video as usual MRP. I'm a bit reluctant to use Turnkey container as I have tried with Jellyfin Turnkey but when I tried to upgrade the JF version, I had issues and it turned out the turnkey sort of protect the integrity of the the container version along with the app version within it. So, I had to use the new version of JF turnkey CT and reconfigure JF libraries from start. If this will be the same with NextCloud, I have to chose a different plain container away from Turnkey. What do you think?
I have been using NC turnkey CT for quite a while now. Haven't had any issues with updates. My approach to updates : i do try to update them once a month. Once new version is out i give another week or two to settle down before doing any changes / updates.
@@MRPtech the NC was very old in the turnkey image - also I did what to use NAS/NFS for storage, so some modifications was needed.
OMG Thank you! thank you
Hey MrP fantastic video. However, I found out that I'm limited by my internet connection speed even if I'm local. I've tried turning on Nat Loopback/Hairpin on my router and can't make it work, I'm thinking it's because of the Cloudflare Tunnel. Any insight on this?
Yes. If you go via CF tunnel - traffic will be redirected over internet. You can connect to NC via local IP address or if you have PiHole you can setup local dns address, something like nextcloud.local.hub
You will need to add "nextcloud.local.hub" as trusted access point inside nextcloud config file
Today another error message. I can easily access https, I can upload and download without problems both via admin and via any user, but in administrator settings a yellow error message appears saying that the server has no internet connection, consequently, I cannot update, I cannot send emails, and I can't download apps. I've already done research and tried them all. The file /data/files_external/rootcerts.crt is not empty, it is the same as the versions of old backups that did not have internet connection problems. If I try to restore any old backup that had no problems nextcloud returns bad gataway. Suddenly it started doing this problem do you have any idea?
Excellent video got mine setup now following this thank you although missed steps attaching zfs storage. Missing from this video tho is how to adjust file upload size that nextcloud is restricted to on install. Also could you do follow up please on how to update this turnkey instance and nextcloud?
NC upload size: docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html
Update is same as any other linux distro - inside turnkey container run "apt update" and "apt upgrade"
Make backup before doing that - just in case
@@MRPtech thank you. Does the apt update update nextcloud also then? I tried the nextcloud update from web interface on my first install and that failed and crashed system?
Hey could you explain how to upgrade the nextcloud with newer turnkey versions?
I am not expert but I did like tihs "Make a backup; apt-get update && apt-get upgrade; update nextcloud from website Administrative Settings > Overview
great video
Do you have to do all of those steps for every user account you create?
I did subscribe wonderful video
What are the possibilities of seeing this done on TrueNAS Scale?
Great! I did everything following your tutorial. It is working! Thank you! ... just one question: I'm using cloudflare tunnel, exactly 1:1, as you showed, but this way, even I'm in LAN, everything goes through internet with very low speed. I can add my local IP address to nextcloud config.php and run it, but how to make it that it would work automatically, when I'm on LAN then my domain is "routed" locally and when outside LAN then within internet? Can you advice on this one please?
looking for an answer to this, have you figured it out?
Do you know what port we need to setup for the reverse proxy with this setup?
I found turnkey buggy and had many times it died when updated and cron wouldn't work. I am using nextcloudPI now and it is definitely superior
Thank you. Next time pretend Proxmox are fresh install and nave no Nexcloud CT Template.
Hello, again a great and understandable video from you. I have been thinking about using the CF tunnel for Nextcloud for a while :-) I have an ambiguity regarding data protection. There is on YT one or the other critical statement that the traffic that is passed through the CF tunnel can be analyzed and read by CF. How do you see this? Can I use the tunnel with good conscience also for example for Vaultwarden?
I have been using CF Tunnel since day one, and in my day job we been using Cloudflare services for 5+ years. maybe more.
I can't understand why people so obsessed that CF might ready their data.
If you want security for your stuff, you go to the Pro and Cloudflare is a KING of all this.
If you don't like that cloudflare can see what you sending or receiving, well, maybe you should stop doing what ever you are doing.
I do accept that some companies don't want their data to be shared because GDPR in EU and other things. Well ... these companies have so much $$$ that they have their own way of securing there connection. Still, i bet these companies using Cloudflare for their website security like everyone else in the world.
@MRP, Thanks for the amazing tutorial but I couldn't understand why you created a separate LXC container for cloudflare tunnel. I think I can use the same nextcloud LXC for cloudflare tunnel as well. Any specific reason for a separate LXC for cloudflare?
Main reason: If i want to scrap NC instance and go with something else, for example FileBrowser or anything else. I will destroy NC instance which will kill Cloudflare. For me to have Cloudflare as separate instance - keeps it away from anything else. In some cases it is useful to have two stuff inside 1 VM/LXC like for example Transmission and VPN ;)
At this moment i have LXC container with Cloudflare Tunnel + Pihole + Tailscale
These 3 service must be ONLINE at any cost, if they not, i loose half of my sh*t :)
If something will happen, 1 single restore will bring them back to life.
chown command is not changing the ownership 😞
So my ls -l doesn’t look like yours the names are different colours but I don’t see any letters or numbers in a row like it does on yours So I can’t see the permissions, I obviously don’t know what the colours are, I’ve set chown 33:33, and the folder link ends in (admin/files) I still see nothing in the UI but when I go to the console and follow the path to the end I can see the folders I have stored on my zfs, is there something additional we need to do in the ui settings, have they pushed an update since this video was made and for new instances this no longer longer works? Please check thanks for the video hope I can get this done as this is much prettier than just turnkey… and yes my container is privileged for nextcloud, edit - I haven’t checked what it says in the ui, if it sees the mount point or not edit - the mount point is showing up under settings - administration - system “in the web ui” so something is wrong with permissions?
I’m still facing this issue, when going in to webmin and looking under the file manager folders and files are being made in the mount folder, but any existing files and folders aren’t showing up only new ones, I’ve changed the permission of all the existing files and folders to match that of the folder that was made in the mount point by nextcloud 0755 www-data:www-data however the existing files and folders don’t show up? it’s like nextcloud has an index of the files and folders and isn’t even checking the folder to see what’s already there
hey, unfortunately I can't do this with a resource mounted via smb or nfs. I cannot change the permissions for .../user/files.
chown -R if it doesn't work at all, the root user on the mounted resource can create and delete directories without any problems.
Do you have any idea what's wrong?
in source where you share your SMB/NFS who is the owner of folder that you trying to share ?
I tried doing this and it worked but when I installed the next cloud apps on my phone and the computer the website suddenly stopped working
Like me. I always have "internal error" after few weeks…
That nice MrP. Can you explain how run nextcloud lxc + tailscale? i apreciate
Setup Nextcloud in the way i did in this video.
Instead of Cloudflare LXC, get Tailscale LXC running (How to - ruclips.net/video/QJzjJozAYJo/видео.html)
Tailscale Subnet-advertising must be active.
Inside nextcloud config file, add tursted domain Nextcloud LXC container IP address.
Now you can access nextcloud from any of your devices as long as all tailscale devices linked using same tailscale account
@@MRPtech i try it. All work fine. Thank you
Your welcome
hi love your tutorials, i want to setup zfs in omv 6.5 on proxmox vm do i need to make pool in promox first then add it to omv 6.5?
for omv to work you need to attach at least one drive to it.
the way i would do it - setup ZFS inside proxmox and for omv i would create one large drive and attached to it.
drive location will be ZFS, omv will see that drive as normal drive which then it can use to store files.
ruclips.net/video/PHmHNzv3a7s/видео.htmlsi=qaoyXoj1CdNebTkD
Where i am attaching a drive - i would just get virtual drive assigned to OMV VM via Hardware tab
If you do it this way, everytime you add a user now you have all these extra steps to move the user data to zfs pool. Is there an easier way like directing nextcloud to save all its data to the zfs to begin with? Or create the nextcloud vm to be contained on zfs or maybe setup a truenas vm and provide a share for nextcloud to store on after passing drives through to truenas and using it to create the zfs pool? The idea is to reduce administration and not to increase it.
To get this setup done as you describe you need to mountpoint ZFS data set to /var/www/netcloud-data before starting Nextcloud LXC for very first time.
Reason for me doing the other way ... this kind of setup already been deployed and in use for 3 - 4 months at one of my friends company. He has Proxmox PVE with 4 ZPools. 3 of them are used for 3 customers. Each customers data saved at separate ZPool and 4th used for general customer. We did this because 3 Pools that are used for 3 customers has high performance enterprise drives. 4th ZPool contains just standard drives.
If one of the ZPools dies, at least other customers still can upload data. For our use case is much better to migrate just customers dada across to another ZPool and not migrate entire Nextcloud file structure.
@@MRPtech So are you using one nextcloud instance for all the customer's instead of separate per customer? It would still be better to have hba's passed through to a truenas vm and have separate pools in truenas this way. Truenas does a much better job and has more utility for ZFS than proxmox does as far as i understand. Plus you wouldn't have to do any commands and could just point the containers to shares from truenas to reduce your management.
Hmmm. interesting idea. thank you for suggestion.
ive followed this tutorial exactly and my next cloud container does not boot after editing the config file, can anyone help me out
Hi,
Step 1 to troubleshoot this.
Restore Config file to original state and try to start Nextcloud. If NC starts - Modified config file contains syntax errors.
@@MRPtech thank you!!!! Damn capital letter in a user name!
Yeah, these kinds of silly mistakes got me more then i am willing to admit.
Great video but doesn't this go against cloudflare's TOS?
CF Tunnel TOS for home lab users is a bit grey area.
If you won't push a lot of data via CF servers - i don't think they won't even notice. When you will push 1TB+ over their servers each month - then you might get in trouble.
@@MRPtech Where do you get the 1tb figure from? I have seen other people run into issues with much less than that.
I have been using cloudflare tunnel for my home lab for over 1year and not onces I been contacted by Cloudflare team.
Via CF Tunnel I set to access Plex, Nas, remmina, webtop, uptime-kuma, Kasm ... Almost every single thing I have running in my home lab.
Why others getting flagged - don't know.
Maybe because got my domains via cloudflare register instead of using other providers. Hmmmm....
@MRPtech Interesting, I have my domains registered through cloudflare as well. I don't see why they would discern where domains are registered, but I will give it a shot and keep traffic to a minimum.
Can you do a video on what configurations that you need to do following this install for Talk to work externally ? I can not seem to find any body that is documenting the usage of Talk wile using Cloudflare tunnel. I also am using PFSense as my router and the domain is an actual Cloudflare domain. Everything is working to include starting calls but audio and video are not making it outside of the network. When I start the call if I hit a reaction you can see it on the other side of the call. I have tried all the fixes I have found but I am obviously looking at the wrong things to fix this issue.
Hmmm.
I know that Cloudflare Tunnel and well, Cloudflare in general will "complain" about using their system to host media (livestream, movies, music, photo gallery). Could be that your TALK service getting blocked by cloudflare due to their limitations on this kind of content being sent via CF pipes
@@MRPtechyea I am seeing mixed information about that. It would seem that since the 2021 changes it should work. However, maybe you could make a video on how you would configure NextCloud for Talk to work? CF might not be the best option in this case. It looks like you route TURN via unproxied DND ?
Can you just have a single disk set up instead of dual zfs? The single disk will be backed up to a proxmox backup server every evening. Thanks
Yes. you can use single drive for all this. You can use single drive per user if your system has enough connections to accommodate more drives.
I used ZFS setup because it was easy to setup and i thought would be great to include that.
@@MRPtech thanks, will give it a try tomorrow with single disk.
@@MRPtech got it all working. Of course like an idiot i followed the guide of setting the nextcloud disk size to 12G so that was my total capacity. Then had DB problems on the next few installs because i forgot to add 'nesting'. Last fresh install set my SSD to 200GB and all works a treat. Installed the 'memories' app in nextcloud which i read is supposed to be pretty good and now uploading all my photos, so thank you again for a great informative video.
I followed the guide perfectly, if I create a folder in admin, he sees it, but another user doesn't see it, why?
Please help me
Where did you created that folder. If folder created under Admin data structure - only admin will see that folder.
If you want folder to be accessed with others, you need to link that folder with all users using network share or just a simple share over nextcloud
@@MRPtech Thank you very much and sorry so much for the question, I realized, for myself, how silly it was.
In any case, I officially inform you that your video has produced the desired results, before, and perhaps still now, I didn't really know what linux was, never used anything more than Windows, and this just means that you are one of the few who know really being a computer communicator, you deserve a wall of plaques just for that.
Now I have 30 people who can share data, access the ones I share, and even work on them directly without downloading them, all this from wherever they want and with any device, even smartphones. I have proxmox on a mini pc 12v 2a bought used for 80€, with two 3tb usb disks in zfs mirror for data, with a bullseye container with a cloudflare tunnel to access proxmox remotely over https. Then another bullseye container is running with another cloudflare tunnel to remotely access nextcloud running on another container. Everything works perfectly but sometimes, without me doing anything, the nextcloud link returns "Bad Gateway" and I'm forced to restore a backup of the nextcloud container to make it work again and I really don't understand why. Again many, many thanks for the time you dedicate to people. Next step data backup on second offsite server, any ideas?
Hi,
Thank you for your comment!
I am glad that you got everything sorted.
I do too get "Bad Gateway" once in a while. Not sure what is going on, i am convinced i have missed some configuration or specific setting options not turned on.
For me a quick and dirty work-around - i set cron to auto restart Nexcloud at midnight. Since then i haven't had a problem with "Bad Gateway". is this is a solution - No. Is this a temp solution - at this moment Yes.
For offsite backups - i am using rclone + backblaze.
At midnight rclone syncs my proxmox backups, my family photos and other irreplaceable data. Backblaze cost $0.005 per GB stored. So far i pushed around 1TB of data which costs me around £5 per month to store. To make sure i keep on top of all this. So things gets auto deleted after sync completes, like for example Proxmox backups. i want to store last 3 days of backups so rclone deletes every proxmox backup that is older than 4days.
Another offsite backup could be - your friend, family member, anyone you can trust - if they have their own nas and there is a way to install tailscale - you can setup SMB share over tailscale and sync stuff to their server overnight for offsite backup.
I followed the setup excactly and it worked great , then suddenly got a 502 from cloudflare , even if i did not change any settings , do you need to configure something else than tunnels on cloudflare dns ?
Inside cloudflare tunnel. How did you setup your domain? Domain goes via HTTP or HTTPS?
@@MRPtech Yeah , first i did http and changed it . Wish you could make one with the AIO on a docker setup also. Thx
If you setup to use https - try to turn TSL validation off - this will bypass SSL validation on your server.
I noticed when I add a user to Nextcloud I get the 502 cloudflare error. I identified this was the trigger by creating a backup of Nextcloud before adding a user. I then tried multiple times to create a user I get the same error everytime.
Looks like I will just have to use an admin account.
what are these
problems?
1) The last background process lasted 1 hour ago. Something wrong. Check background process settings ↗.
2) Last cron run: 2 hours ago. There may be a problem.
When you logged in to Nextcloud. under setting you should see System Info (or something like) that option.
That page should show you your nextcloud statistics / usage. Are all the graphs maxed out when you uploading or downloading files from NC?
@@MRPtech quando scarico qualcosa i grafici di carico e memoria restano pressoché invariati. Aumentano di poco
@@MRPtech when i download something the load and memory graphs stay almost the same, they increase a little
This works great for about 24 hours then I start getting 502 from cloudflare. I can't even access it locally (connection refused). I think it has something to do with Apache and certs. I've gone through the whole process from scratch 3 times.
Where your DOMAIN lives? In Cloudflare or 3rd party provider?
nameserver changed to CF ?
When you setting up CF tunnel and access rules, do you create special rules for your access only or public access?
@@MRPtech the setup is no problem and access is fine through cloudflare (they do not host my domain). But after about a day nextcloud starts refusing the connection through both my domain, and locally. Apache crashes and refuses to start, complaining about shared memory, even after increasing it and opcache. I've spent many hours but have yet to figure out why. It happens every time I create the ct.
@@MRPtech oh and it's not specifying what segment size it's trying to allocate in the error but has 128 megabytes to work with
@@MRPtech disabling opcache fixes it. Haven't figured out why
@@OddLlama can you tell where to do that ?
you don't say that we need as begginers to command line: PVEAM UPDATE at first...
Thanks a lot, good guide, i used tailscale instead of cloudflare.
I have tank/myuser/files
tank/myuser/files
But, why still the space on / goes finishing instead of zfs pool?
Should i edit the datadirectory (it's strange because i have mountpoints..)
Thanks
hmmm. a bit confused what you asking here. Could you give me a bit more information please
I have a challenge: I would like to always have a copy of my files and folders that I upload to my Nexcloud account.
Is it somehow possible in promox to automatically copy new files and folders from my nextcloud user_1 datadirectory into a backup directory ?
nextcloud datadirectory => (/dev/sdb1) /mnt/pve/data_1/nextcloud-data/user_1/files/
backup directory => (/dev/sdc1) /mnt/pve/backup/nextcloud-data/user_1/files/
How in "real time" you want this to happen ?
Like instantly or can it be 5,10,30,60min gap between sync ?
@@MRPtech So if it's possible I'd like to try both methods instantly and 5,10,.....min gap between sync.
Thank You very much.
With instant change - that will be a bit tricky to setup and on top of that, proxmox host will get performance tanked if a lot of data getting moved almost instantly between two folders.
the way i would do this, setup cron task to run every 5 min with "rsync" command.
example
0/5 * * * * "rsync -aAX /mnt/pve/data_1/nextcloud-data/user_1/files/ /mnt/pve/backup/nextcloud-data/user_1/files/ --delete"
This cron task should run every 5 min and sync files from folder-1 to folder-2
I need to check something first, there is a way to tell system not to run command if the same command already running. will come back to you about that as soon as i can.
@@MRPtech That's great, many Thanks for your help, I will definitively try this..
How do you get rid of the /index.php/ ? The turnkey ct does that and its ugly. I think its because of the /var/www/nextcloud folders? it should sit in the webroot