There are a few reasons that your NextCloud instance might be slow. One reason it's slow for a lot of people is because people have their cron set to AJAX. When it's on AJAX, cron jobs happen on page clicks which take up system resources to load pages. So I set mine to Webcron and setup an EasyCron account to ping my server's cron.php file once per hour to execute cron jobs. Also, your system might be generating a lot of unnecessary logs. More info on log levels can be found here: docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html To edit what gets logged, you'll need to edit your NextCloud config.php file: nano /path/to/nextcloud/config/config.php change 'loglevel' => 0, to 'loglevel' => 3,
is this line just added to the bottom of config.php? i dont have `loglevel` => 0 anywhere in the file Edit: Found out you can do it through the web interface. settings -> logging then click 3 dots next to level tab and it will allow you to select what you want log and dont want logged
Hi! somehow, I get access denied when I try to open config.php when I do nano /path/to/nextcloud/config/config.php , I get [ Error reading config.php: Permission denied ] Any idea on how to fix it? Thank you for making all the tutorials! They are really helpful
Dear Brother, pls guide me how can i locally upload my mobile photos/vdos to my OMV shared drive. i dont have real/static ip and dont have web hosting. pls reply
These are a fantastic group of videos, easy to follow, and informative enough without waffling on. Also really encompassing in terms of security and backups so it's something that will actually last and is useful for time to come. Top work, keep them coming
I'm glad it does mean a lot; as someone that has done a reasonable amount of video editing and who works with Linux everyday at work, I have a bit of insight in to how much work has gone in to these 👍
Hey, quick question, could you maybe make a video on the following topic: Update Nextcloud (Docker container as well as the Nextcloud application). I would like to run an update, preferably an update where I don't lose any data :D I would appreciate a video or explanation! Best regards from the north of Germany
You sir, are amazing! Never thought I could get this working but you have taught me so much in this series. The only issue I had was an error from the latest mariadb image and just had to change it to yobasystems/alpine-mariadb:10.4.17. Once again I can't thank you enough and will be buying you a coffee after I finally get some sleep!
I tried a coupple of containers, starting from :latest and on all of them I got "[ERROR] This MySQL server doesn't support dates later than 2038" and wasn't able to build the database. The version you provided worked and the db has been built.
It still works. I tried ':arm64v8' but the db didn't start. Now I'm struggling with another problem. The nextcloud app cointaner starts with the date 1970 (epoch 0) when started with portainer stack and I can't force it to get the system date. When starting a container with 'docker run' and passing 'localtime' that container gets the current date and timezone but the one from portainer can't get that date :(
@@KamilSZakrzewski I wrote down all the work arounds I had to do to fix those problems but I won't be back home till Saturday. If you do some Google searching you Hopefully will find the same things I did to get it working.
@@kevinbreen4510 I tied adding ` - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro` to volumes but it didn't work. The timezone is set but not the clock. I also tried to run a container without any variables and I still get year 1970. When I add `date` I still get year 1970 but when I try `cat /env/timezone&&date` then I get the correct date. I'm strugling with this for 4 days and I couldn't find a solution on google.
Hey there, I followed your guide but everytime I try to open Nextcloud, I either get a timeout request or it loads and then I follow your steps to create an admin account but then it just loads indefinitely. Tried looking online at what could cause this but haven't found a solution. I tried looking at the logs in Portainer and the date is from May 1935. Maybe that's the issue? I tried changing the timezone but I can't find the file because (I assume) it hasn't been created yet due to me not being able to complete the process
I got this to work, but it took a little bit of fooling around. The big stumbling block for me was mariadb. If I used the latest image from Yobasystems ( 10.5 tree ), the install would succeed, however when it came time for Nextcloud to do the initial setup, it wouldn't be able to make the connection to create databases, etc. I believe this is part of that known bug that yobasystems has acknowledged, so using the yobasystems/alpine-mariadb:10.4.17 image was how I worked around it.
Thanks, I went throught the hole process again, almost everything is working! Great stuff! One issue: when i try to set the SSL in NGINX host its give an internal error... so I can't turn SSL/TLS full because on the server side i cant add lets encrypt ssl.. Can somebody help on that?
Thanks matey! Note make sure your isp isn't blocking 433 and 80 ports - I disabled this setting in my ips settings (took like an hour to actually work), you can then check via a port fowarding tester online to see if they're actually open or closed.
I get "Internal Error" when I try to add my proxy host. This only happens when I enable SSL. I have my cloudflare setup the same. It shows the host is added but only when I close the "add proxy" box. The SSL info was ignored and status is unknown. When I add the SSL request again it gives the same error.
Great videos! Very well explained and interesting! I was wondering if we are gonna see a tutorial on how to install OnlineCollabora for NC in docker as there aren't a lot of tutorials out there, and the ones that I have seen are outdated. Would be very cool! Thank you DB Tech!
Just like I showed in this video. Make sure to create a folder in OMV that is on your 1TB drive. Then mount the /var/www/html folder to that folder and you're done.
I could not get the folder I wanted mounted like DB Tech mentioned, so I changed the volume in the stack
volumes: - /mnt/1tbMedia/NextCloud:/var/www/html restart: always After the container started, all data files are now found here - /mnt/1tbMedia/NextCloud/data/admin/files
New website is setup on cloudflare, nginx installed. Created CNAME record for cloud.mywebsite and left proxy status to DNS Only. Created proxy host in nginx, but when I try to request certificate, I get the extremely helpful "error occurred" message. Because of this I am unable to connect over SSL. Any ideas?
@@DBTechYT Yes, I have a forwarding rule for each port 80 and 443 pointing to the raspberry pi server. If I disable the forwarding rules and try to connect, I get my Unifi Home page (hosted my Unifi Dream Machine), so it is probably conlicting with the forwarding rules.
Is it required to have my own domain name (purchased) , the .click, .cloud, .link, etc., for setting Nextcloud up? Or does the Cloudflare offers a domain name for free? Sorry my background is embedded software and just starting to learn some IT/web stuff, that's why I asks these questions.
So, you don't HAVE to have a domain for your NextCloud setup. It makes it easier if you want to access it remotely, but it isn't required. If, for instance you didn't want to buy a domain and do the port forwarding usually associated with domain setup on Docker containers, you might consider something like ZeroTier or TailScale.
super well explained. Is there a change to make a video for this series for Syncthing I heard good things about it and would like to have it with the OMV series for Raspberry pi working (Y)
hi could you tell me how I can add some information to the nextcloud stack for example what I put in the config.php for example: 'trusted_domains' => array ( 0 => 'nextcloud IP', 1 => 'nextcloud domain', ...... 'overwriteprotocol' => 'https', 'default_phone_region' => 'IT', 'enable_previews' => true, and information of this kind. so in case I have a problem and I have to reinstall nextcloud I don't have to insert them every time by hand ... but more generally where to find the syntax to build stack autonomously
Hi There, not sure if you read comments to the older videos you post but thought I’d give Feedback as you requested :) First the install went perfect. The only issue I am having is trying to connect external storage via nextcloud. I keep getting Smbclient not installed. I found your fix in your other video on OMV5 and nextcloud and went through the steps. They ran without error, but going back into nextcloud the smbclient not installed banner does not clear? I recreated the containers and restarted pi. No fix yet. Have you seen this issue? Any Thoughts? I like nextcloud, but being able to access the shared folders from OMV is key for me. Maybe another alternative is better? Appreciate any thoughts on this. Your Friend, Sean Love working these projects with you BTW. Learning a ton.
@@barryjones6479 Hi Barry, not with SMB. However, I was able to use FTP and it works fine. I have not had any issues with it using FTP so moved on for now.
@@sandsriggs I worked it out. Someone commented on the other video that you need to change the command pecl smbclient to get smbclient. Works as intended now!
i'm new to ssl and protocols like that so i'm a bit confused and can't find the right direction to understand. I don't have the ability to port forword port 80, my ISP doesn't allow me. i nthis method is port 80 required? I tried to execute the procedure but it gives me an internal error. I followed all the previous videos to the letter. what am i missing to understand?
If you want remote access, you either need to be able to port forward ports 80 and 443 or you can try this method: th-cam.com/video/VrV0udRUi8A/w-d-xo.html Please note that this method requires that you have a domain name and that you point it to CloudFlare before this method will work.
I guess, the perfect stack would be to combine NextCloud, MariaDB and Nginix proxy manager in a single swarm. What goes together, should be setup together, right?
Great video as always. Just curious if it is possible to setup a local version of Nextcloud that is not available over the internet? I do not have a need to be able to access this remotely, and I would rather not expose my data to the internet. Especially since there is no real need to do so. Thanks as always!
Yeah. So just follow along until 9:43. That's where I show that it's working locally. Just setup your admin account there and it will install locally. You won't need to deal with port forwarding or NGINX Proxy manager.
Help: Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'172.19.0.3' (using password: YES)
I finally got cloudflare/nginx working including the letsencrypt by carefully going through the guide again, paying extra care to the proxied or not settings, setting up port forwarding on 80 to your pi:80 (nginx not your pi on 8080, which just bypasses nginx) and get the letsencrypt license. However no it is running I cant see any apps in the store, so I cannot for example install chat/calendar etc. Any help please?
Hopefully someone will be able to help. I've just reinstalled NextCloud the other day and everything is working fine for me. Maybe it has something to do with the the Pi version as I'm using the amd64 version...
@@DBTechYT thank you for replying. Great series, I'm learning lots. A few posts seem to think it might fix itself given time. I'm doubtful, but I'll leave it a few days. Maybe I need to wait for the docker to update
I have got this working and the apps turned up without any intervention. Is it correct that once the nextcloud is set up, that it can no longer be accessed though the local nextwork? When I try I get a message saying 'Access through untrusted domain' - however it works perfectly via the domain name/cloudflare/nginx.
Thanks a lot for this very useful video (again and as usual....). That said, I got an "internal error" message when trying to generate certificate with "let's encrypt" ... HAve you als ofaced same issue? Any idea on how to fix this .... Definition on my cloudflare account are "DNS only" and I have activated "full end to end ssl encryption". Is port 81 used during this certificate creation? Thanks in advance for your help ...
Really great tutorial! You mention that final set up of Nextcloud had to happen through the domain address. Does that mean if you have Nextcloud previously installed (in my case, actually running on another system) then you would not be able to access Nextcloud through NPM?
Once you have your nextcloud instance setup, you can only access it through the domain that you set it up on unless you add an additional access URL in the config.php
David: After I did some updates based on Watchtower notification, I cannot access NextCloud from inside the network. The browser immediately says: "Unsecured Connection" and I cannot change the url to be only http not https. I still can access it through the internet because I use Nginx proxy manager. What shal I do?
I did forward port 80 to my raspberry pi's LAN IP. Nginx proxy manager is correctly setup with the domain and the SSL, if i forward port 80, it goes to the default nginx congratulations page, and if i remove the forward, i get a Cloudflare error 522 connection timed out. Your help is appreciated!
Hi, and thanks for the videos about the OMV setup on raspberry pi, but I'm stuck. I just don't get how to access remotely to nextcloud or anything on the raspberry. I'm familiar with technology but not with network setups, I know almost nothing about server configurations and domains. If there is not going to be a more in detail video on how to remotely connect to your omv 5 on raspberry pi please send me a link to a good tutorial about it. I've heard that it can be made through duckdns, and found tutorials on how to do it from a computer or in omv 4, but nothing clear in raspberry pi with omv5. I'm thinking on stop using omv and do it directly from nextcloud, I would really prefer an straight forward process. Have already been 6 days totally dedicated to setup a nas for free, but it's been too much time and trouble for so little success. I would really appreciate some help. Thanks again.
Think of this more as a replacement for Google Drive, Googe Docs, Google Photos, Trello, and SO much more! I use mine every day. My wife and I both have our phones setup to backup our photos/video and contacts every day as well.
@@DBTechYT oh wow, that’s nice. Well what would you recommend for a NAS/Backup. I currently have my google drive (a lot of storage) as my cloud backup, and id like to make a redundant backup for that using this system (RPi + OMV + portrainer)
thanks for the guide, everything works, but why can't I get collaborative online on the raspberry? for me it is useless to have a cloud space if I cannot edit documents :(
If your ISP has IPv6 I believe that you can use ddns with this address to skip CGNAT and access it externally needing in some cases the configuration of port forwarding in IPv6. Unfortunately mine doesn't provide me with an IPv6 but here's the tip
it was very frusrating to get it working. once it did i tried the talk video call and the image was nested in itself on and on. what was that and how do you fix it?
Hi and thanks for another great video. I'm trying to follow along and set up my Cloudflare account like you have but I dont know much about this. I purchased a domain from Porkbun (thanks for the coupon) and I am having trouble setting up the DNS section in the cloudflare account. I think I did somethign wrong because in Nginx Proxy Manager, I keep getting errors when trying to set up the proxy host. Do I need to set up an "A" Record with "@" in the Name field and my home's IP Address in the IPv4 field? Then create a "CNAME" record with click and my domain name in the fields? Thanks once again for the assistance and the fantastic videos.
I think you're on the right path, but you need to make sure your DNS record on CloudFlare is set to "DNS Only" while you're setting up NGINX. Once you get the SSL setup in NGINX, then you can change the DNS settings on CloudFlare to be "Proxied"
@@DBTechYT Thanks. I've tried but i keep getting an internal error in NGINX, which doesn't really help describe what the issue is. Also, I've changed the Authoritative Nameservers in my Porkbun account to the ones shown on the DNS section of Cloudflare. Is this correct, or was I supposed to leave them alone in the Porkbun account?
I love the tutorial .... I have an account with duckdns, I have tried to install it with portainer ... but I can't get it to work with nextcloud .... do you think it can be done ..? Thank you very much for your work....
It can be done, but there's no excuse to use duckdns when you can literally get domains for as little as $0.99 from Porkbun: th-cam.com/users/postUgzTe6QTBzzXID7c9al4AaABCQ
This might be a silly question, so sorry for that. so when you actually setup the nextcloud that means using the link cloudDOTdbtechDOTclick you can actually access it from anywhere in the world right?
Hi there! Your videos and blog are very heplful for getting started with selfhosting! Regarding nextcloud, I'd love a video detailing how to change deafult settings, like PHP max upload limit (2 MB!?), max memory, and the like to make nextcloud truly useful. Also, moving existing data through smb to nextcloud and having nc scan them.
That's a great idea! The process is pretty simple to change max_upload and that sort of thing. I'll see if I can put together a quick video on how to do that.
Would like to seek some help, i have followed your exact setup but webdev(ie. mapping from Windows client) won't work when nextcloud behind the nginx reserve proxy, do you know how to make it work?
Ok, I have a weird situation. I was able to access nextcloud via my subdomain. Everything was working fine until i put in the necessary information and selected "finish setup". The page was loading and now it takes me to a cloudflare page that shows "Error 522 connection timed out". I didn't mess with any of the settings via cloudflare or nginx. Has anyone experienced this before? Any suggestions?
I am trying to setup these on RPi 3 and so far I was able to install everything. However, nextcloud is so slow that whenever I open it in my browser, page freezes and RPi becomes unusable. Cloudflare shows server is down and I have to wait 15 mins for RPi to be usable again (unless i restart manually). I set the config and database files on my external drive and therefore did not watch the new video you shared at the comments. I can install everything on the sdcard but that will be also slow for sure. Btw, my external hdd has its own power supply so it should be a power issue. CPU gets overloaded quickly. So my question is: do you think this is happening bc of not having model 4 or something else? I tried to webdav to and it makes everything much worse.
Hey! Thank you for the video series! I just wanted to ask you one thing that I am having difficulty with: after enabling SSL on nginx proxy manager, i was able to connect to my domain with the SSL. However, after I changed my CloudFlare proxy status from DNS only to Proxied, the domain could not access to the webpage. When I disable Proxied, i can re access. What do you think the issue can be?
Alio Canter asked in the comments, "Please add information about setting up external HD/SSD drive." So I made a quick tutorial on how to do it here: th-cam.com/video/XsVHgDWngdQ/w-d-xo.html
hey just out of curiousity, ive only seen Episode 1, 3, 4, 7, and even going to your channel directly, thats all that will show up. Are these missing episodes posted somewhere else, or has youtube just eaten them?
Thank you so much for this series. You really got me hooked on this and finally I feel that I'm beginning to understand what I'm doing in all different parts. How ever - now that I got this all set up I've got one issue. When I try to login from the login-page the circle spins forever. How ever, when I refresh the page, I'm logged in so that's great but that doesn't really work with the phone apps. Any idea what this can be and how to solve it? Maybe I should mention that I'm not using cloudflare but have my own purchased domain and the ssl seems to work fine. Thanks again - just great work!
It might not be in this video, but I know it's in this blog post: dbtechreviews.com/2020/03/how-to-install-nextcloud-on-openmedivault-5-with-remote-access-and-ssl/ Look for the "HTTPS Fix" section in the post.
@@DBTechYT thanks - when I use that command I first get "permission denied" - if I try to add sudo first it says Directory '/roodt/app/config' does not exist...sorry for bothering you - "the coffee donation will come ; ) "
someone who knows how I can access the config.php file? trying via the server share, through ssh but doesnt seem to be able to find/open it. final little thing to get everything to work...
Hi, great video, thank you! Everything is running well and fine but I'm facing an issue signing in from the apps (ios and android)! Any hints or ideas? I would like to use nextcloud app and nextcloud talk app. Many thanks
Again, great video :) When configuring force ssl and http/2 support and I check them. I can't access my domain because of too many redirects error. Any idea why is that? @DB Tech
Hi there, I have exactly the same issue. Everything works fine until the "Proxy status" in Cloudflare is set from DNS only to Proxied. After that point, when I try to open my domain, it shows ERR_TOO_MANY_REDIRECTS. Is there by any chance some more settings in Cloudflare need to be set? Thank you.
Hi and thank you very much for the fantastic very detailed guide but I would have a problem with the php configuration, as to install some apps in nextcloud it dictates that the limit is not 128M but 512M, the problem is that I cannot find the config.php file related to php configuration, could you tell me where it is according to the installation of the container of your guide? thank you so much
I need to make another quick video about how to attach a php.ini to the setup to allow for modifying uploads and that sort of thing. It's easy to do, but hard to explain in comments.
Thank you so much for the content, I do have an issue. When I try to save the new proxy in NGINX, I get an error "cloud.xxxxxx.click is already in use". I followed your exact sequence. Any idea what the problem is?
hi bob. its me, future bob. you went too fast on your permissions in OMV, didnt take good notes deploying your stacks with typos and crap, and probably set up nextcloud for localhost instead of "DB" on the first screen. that was pretty sloppy work, my dude. its cool, you just fixed it.
Nice tutorial series so far. However, I am stuck on this one sadly. I was able to create the Nextcloud and even attach the SSL Certificate following your video, but I can't login on the site. It always brings up "Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused". I checked every Setting multiple times (even by using the unsafe test information for password, username and database name) but nothing seams to work. Is there a followup to this video? Because to me it just seems outdated at this point.
@@DBTechYT Thank you for the fast reply. I found out that the latest version of mariadb seems to have some issues with nextcloud. Hence, I changed it to the image to yobasystems/alpine-mariadb:10.4.17. However, when I try to initially log into the nextcloud I end up with an gateway error 504. After reloading the site, I get the window for a regular login (without options for the database settings). If I try to login there, it gets into an endless loop unable to progress forward, while my logs say that the app as well as the db is doing fine. Hence, I refreshed the page and end up with an internal server error. It seems to me that the HTTPS connection or the waiting timeout for the setup might conflict with the usual HTTP settings. Any suggestions on how to continue from here?
Great video.a Nextcloud seems very useful but it’s very very slow. Needs about 5 secs to bring up the web page and every link takes 4 to 5 secs. Is this normal? Are there any performance tweaks? My rpi4 has 4gb ram and fast SSDs. Especially the Nextcloud talk app is super sluggish. Any tips?
One reason it's slow for a lot of people is because people have their cron set to AJAX. When it's on AJAX, cron jobs happen on page clicks and that takes resources away from rendering pages. So I set mine to Webcron and setup an EasyCron account to ping my server's cron.php file once per hour to execute cron jobs. It has definitely helped my loading speeds over the last couple of days.
Go to Settings under your icon in the top right (on desktop). Then click on "Basic settings" in the left column. Then click "Webcron". You'll need to setup an account with a site like EasyCron and have it ping your server's cron.php file by accessing your-nextcloud-url.com/cron.php. Be sure to replace your-nexcloud-url.com with your actual URL.
Thank you. That helped improve speed a bit. But still it takes 6 secs to open the Talk app. The browser window just says "waiting for [my URL]." Maybe some nginx or cloud flare settings?
Also, your system might be generating a lot of unnecessary logs. More info on log levels can be found here: docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html To edit what gets logged, you'll need to edit your NextCloud config.php file: nano /path/to/nextcloud/config/config.php change 'loglevel' => 0, to 'loglevel' => 3,
OK great video! i did everything very carefully but for some reason i am still having a problem with nginx, i do not seem to be able to setup an ssl cert. for the proxy host. It displays a message "internal error". I had this problem the previous time i tried to setup ngingx and i think it is just me. Just for the sake of good order, in cloudflare the A setting for the domain should be your own ip right?? Do you have any ideas as to where i should start looking perhaps to try and find a solution for this?? Tks.
Yes, it should be pointed to your home's IP address. You need to make sure you forward ports 80 and 443 from your modem/router to your server. Make sure that your Proxy Status on CloudFlare is set to DNS Only instead of Proxied. Once you get the SSL cert installed via NGINX, then you can change the DNS settings to Proxied on CloudFlare.
@@DBTechYT i double checked all this and I still get the same error. What about the domain name i am using?? This used to be a hosted website, but now the dns servers are pointed to cloudflare as required. Do u think that may play a part in any way?? Tks.
the only thing I can think of is that it's a caching issue. The process is this: - Buy a domain. - Setup a CloudFlare account. - Point the domain's DNS to CloudFlare. - Wait up to 48 hours for the DNS to actually change. - Make sure that the Proxy Status for the domain/subdomain on CloudFlare is "DNS Only". - Make sure you have ports 80 and 443 port forwarded from your modem/router to your server. - Setup a Proxy Host in NGINX Proxy Manager. - During this process you'll need to: -- Enter your domain/subdomain on "Details". -- Enter your server's IP address on "Details". -- Enter your application's port on "Details". -- Select "Request a New SSL Certificate" on "SSL". -- Check the Force SSL and HTTP/2 Support options on SSL. -- Click Save. This should generate a new SSL in a couple of moments. At this point, you'll need to edit the entry in NGINX Proxy Manager, go to the SSL tab, and re-click the "Force SSL" and "HTTP/2 Support" options and click save. Then you should be able to go to your domain/subdomain and it should work. You'll also want to make sure you change the Proxy Status on CloudFlare to "Proxied". That's it. Those are the steps I go through each time I setup a domain on NGINX Proxy Manager. The exception is that you don't have to point the domain from Godaddy to CloudFlare each time. Also, you can setup subdomains without the waiting period of up to 48 hours.
So, I done installing stuff, I have bought my domain at Mailchimp, and add nameserver to Cloudflare. But when I trying to add proxy host on nginx, the status shows offline. Any Ideas?
Nvm i fixed it, just go to the SSL certificate section in nginx, then add ssl certificate, check on DNS challenge and choose cloudflare then add my API token and Im good to go!
@@phamleduy04 I think this is my problem as well - in Nginx when I add the new Proxy Host it throws an internal error, what do i put for the cloudflare API token in Nginx add SSL is it just the string of numbers, zone ID from Cloudflare etc? thanks
Hi - really appreciate your video. It worked but I always have trouble logging into Nextcloud via the external URL. The login screen just keeps going without letting me in. When I try to login via the internal IP it works immediately. So it seems something with the Proxy Manager or Nextcloud config needs changing. Any ideas?
If you set it up on your Internal IP, then it has that as your "trusted domain" in the config.php file. In order to access it on both an internal IP AND an external domain, you need to go to your NextCloud config.php file and add an additional trusteddomain. For the setup you saw in this video, my config.php file is located here: /srv/dev-disk-by-label-files/Config/NextCloud/config/config.php You'll want to edit that file and find the area that talks about 'trusted_domains' and edit it to be like this with your info: imgur.com/a/aHsSXv4
Hi @DBTech, I decided to purchase a domain name in porkbun however setting up my nginx proxy manager, I encountered "Internal Error". I have setup a CNAME record with 'nextcloud' in it with my purchased domain name and with DNS only. Then I was adding a new Proxy Host with the 'nextcloud'. until I encoutnred the error. It says that my domain name is already in used. Not sure what else shoudl I check. But I can see a lot of records under DNS in my CloudFflaore account. I can confirm that my nextcloud image is working locally as I can view it in the browser. I just did not setup my admin account yet. Because I want it to be remotely. Can I get some enlightenment from you?
It looks like I need to add the nameserver of the cloudflare to my registrar porkbun. Is that right? I see the notification in Cloudflare that my domain name is not yet active on Cloudflare and my Regsitrar is still Unknown. There's a guide on how to add the nameservers, I hope it works. I need time to wait for it to update.
Once you purchase your domain, you need to wait approximately 24 hours. Then you can go to CloudFlare and add your domain to your account. Then CloudFlare will give you nameservers that you need to use. You'll go back to where you bought your domain name and remove the existing nameservers and put in the ones that Cloudflare gave you. Then you'll need to wait up to 24 more hours. At that point, CloudFlare should be in control of your DNS and you can start using CloudFlare to manage your domain, set up tunnels, etc.
When trying to login to nextcloud for the first time, I receive the error "Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE." I have tried to research this, but I am a newbie(ish) and have no clue how to fix this.
Found the fix. Need to update the stack db section. Change the line command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW to command: --innodb-read-only-compressed=OFF
DuckDNS is a SUPER INSECURE way to do it. They don't hide your IP address like Cloudflare does. And you can get a domain name SUPER cheap from Porkbun. Like... Less than $5 cheap.
Where are the files and documents saved on the hard drive? If something happened with the server, where do I find the documents I saved on my nextcloud?
@DB Tech Thanks for the video, Could use some help though. In CloudFlare when I get to the part for creating the type A to go with the CNAME I created it wants an Ip address I used the one I thought I was supposed to but I get an error saying it can't use it. Any ideas? Thanks Actually I jumped the gun I am having an issue with the part of creating a proxy host. I got a domain name from porkbun like you said and nginx keeps telling me its in use and I can't go any further.
nginx text tutorial does not mention the need to use a different database - I spent a couple days trying thinking I had made a mistake before watching the video.
For me, this doesn't work at all in any way possible. I have already reinstalled Nextcloud 4x. Exactly the same method as the one shown in the video ... I keep getting a 504 error while setting up Nextcloud ...
OK. I'm starting to suspect that this has to do with the permissions of the folders in OMV where we mount the configuration files. Did I see anything about it or did you just not mention it in the video?
Bingo. If I do not mount the path to my OMV to / var / www / html but a path such as / home / pi / nextcloud then the installation will work without problems ... ... how can I make it work with OMV only?
Hi. I installed everything as instructed but keep getting this error message on the Nextcloud init page: Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution. DO you have any tips? Many thanks
Thx. I'm following your playlist step by step. It's very usefull! Congrats! But, I can't correctly install Nextcloud because of an issue regarding the db. The nextcloud_db_1 logfile is reporting this error message: "[ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!" Can Anybody help me?!
Hi David, thx for the tut - got me a long way. Now I'm stuck at the last bit: when accessing from browser via via NPM nextcloud says: Addess through untrusted domain...edit "Trusted Domain" setting in /config/config.php. Have been through vaious possibilities: 127.0.0.1, IP, localhost. But can't find a solution for when both NPM and nextcloud are on the same machine. Plz throw me a hint.
So I'm guessing you went through the setup process of Nextcloud while still accessing the server on your local IP address of the server rather than doing the setup on the domain name you want to use. - SSH into your server. - Navigate to wherever your config.php file for Nextcloud is. You set this up in the volumes section of your stack. - Edit the config.php file using: nano config.php - Look for this: 'trusted_domains' => array ( 0 => '192.168.68.250', ), - Edit it to look more like this: 'trusted_domains' => array ( 0 => '192.168.68.250', 1 => 'sub.yoursite.com', ), - Then save the file. - Then restart your container.
everything was fine till fist load page. and i have following error "Error Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known"
There may not be an update available for the image you're using. Just because the NextCloud software has an update available to it, the image you're using is probably trailing behind a bit and the developers need to update their image with the new NextCloud image. This is VERY common.
Thanks for the great video! I tried and it worked fine at benning. But now when I try to reach the page I get a message saying that "the user data folder is readable by other users. Change permissions to 0770". I tried to change the data folder permissions to 770 via SSH, but at that point I cannot access anymore Nextcloud. Anybody experiencing the same?
This MySQL server doesn't support dates later than 2038 can anyone please help me with that error message? i got that when is see the log of nextcloud_db_1
Thank you for this guide! I'm having a bit of trouble with adding trusted domains. Anyone have any idea? I know that you need to edit the config/config.php file, but I don't know how to access this file from the docker container.
As I stated in the video, there's a playlist linked in the description of the video. I've made a playlist for this series. Each video in the series has a link in the description to get to the Raspberry Pi Home Server playlist.
Anybody here who had some Internal Error in the NGINX Proxy Manager? It happened when I try to enable request SSL. It looks like I haven't setup my Registrar and DNS properly. Any pointers here? Thank you!
Did you forward ports 80 and 443 from your modem/router to the device running Ngninx Proxy Manager? Did you login to wherever you manage your domain name and create A records or CNAMES to point to your home's IP?
@@DBTechYT Right now, I have added a port mapping/forwarding in my router that point to nginx proxy manager port 80 and port 443. I can see when I type my router’s public IP, I can see the NGINX proxy manager webpage. I have also added a DNS record just now. Type A and CNAME pointing to my public IP. So now my issue is adding a record type A in Cloudflare DNS Management, when I add the root and my public IP, I have error 9004, this record type cannot be proxied. Thank you very much for the help.
@@DBTechYT I believe I’m using Nginx Proxy Manager. Based on your video, I have a container for that. There’s a setup needed to be done in Cloudflare right?
Thanks for these guide they are very helpful. Apologies in advance as I am a complete noob and my Google-fu is failing. I ran into trouble with NPM when trying to add SSL I get "internal error" on the dialog box and logs in Portainer similar to this github post: github.com/jc21/nginx-proxy-manager/issues/556 The Nextcloud page is accessible on the internet without SSL and Cloudflare set to "DNS only", but I'm assuming that is not secure and I shouldn't do that correct? Also when I change Cloudflare to "Proxied" the website is NOT accessible and i get a Cloudflare 522 connection timeout error. Is having SSL setup a prerequisite for using Cloudflare proxy?
Dear dbtech, great vdos with helpful tutorial. i have setup pi+ovm+rpi+jellyfin and qbit torrent watching your vdos. pls tell me can i use next cloud only locally without installing cloudfare and NGIX? i have skip these too and ran into error, Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known"..............i checked double tipple by found to other problem , pls help
Unfortuntely I ran into an error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'Admin'@'172.20.0.3' (using password: YES). Someone any ideas to solve this? It's rather frustrating and keeps me busy for days now.
If You intrested i found solution for that problem. At beginning of Stack file just add lines: ----------------------- volumes: nextcloud: db: ---------------------- Next You must delete all files from Config and Database folders (nextcloud files) and create new stack with this lines. This shoud work. Db Tech propably not use some iptables.
1. If you can't access the site even if nginx says it's online then you have to go into your router settings and open ports 80 and 443 and point them toward your server ip address. Double check me on the ports before opening but once I done this, I was able to access my site. 2. If you can't force a ssl and get an internal error each time you try go into cloudflare and change your dns settings from flexible to strict then you'll be able to force it. Good luck y'all!
Hi. Thanks very much for the great content that you always post. I see that you use the let`s encrypt SSL certs for the Nginx proxy manager. However, this cert is only valid for 90 days if I am right. I was wondering what would be the process to renew this certificate once it expired in either manual or automatic manner?
I tried a different browser, but got the same Problem. The Error says that my webserver is down, but I can access with the IP. Thank you for your Support, appreciate it!
Thanks for the great series! Every time I deploy the NextCloud stack my nextcloud_db_1 recieves multiple errors before aborting, see below: 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages! 0 [ERROR] Plugin 'InnoDB' init function returned error., 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error, 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed., 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded, 0 [ERROR] Unknown/unsupported storage engine: InnoDB, 0 [ERROR] Aborting I am running a PI 4 4G and have 2TB of storage available on my external drive. Let me know if you know what could be causing this. I have been following your playlist from the beginning.
Hi, first of all thanks for the great video :). I did everything exactly the same way, but I have the problem that I can't install apps. I get the following error message: "GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 120000 milliseconds with 2052686 out of 6045785 bytes received (see curl.haxx.se/libcurl/c/libcurl-errors.html)" I've googled for a while and found that the TIMEOUT variable can be changed in: ..../lib/private/Http/Client/Client.php But it doesn't matter which time I choose, timeout is still after 2 minutes. Can you maybe help to fix this problem?
Hi so I followed the tutorial up to the point of just installing nextcloud, I didn't need to follow the remote access stuff as I don't need that. Everything was working, I could upload and download files from my browser, windows 10 and my phone. I then suddenly got this error when trying to access nectcloud: "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." And in portainer when I check the app container it has the following error: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.26.0.2. Set the 'ServerName' directive globally to suppress this message I'm not sure what caused the error, once I set something and it's working I just leave it alone. I tried deleting both containers in portainer and deleting all the files in the Database directory and tried reinstalling everything again but still has the same error. I think the issue is with the app container as the database container seems fine. Is there any solution for this?
There are a few reasons that your NextCloud instance might be slow.
One reason it's slow for a lot of people is because people have their cron set to AJAX. When it's on AJAX, cron jobs happen on page clicks which take up system resources to load pages. So I set mine to Webcron and setup an EasyCron account to ping my server's cron.php file once per hour to execute cron jobs.
Also, your system might be generating a lot of unnecessary logs.
More info on log levels can be found here:
docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html
To edit what gets logged, you'll need to edit your NextCloud config.php file:
nano /path/to/nextcloud/config/config.php
change 'loglevel' => 0,
to 'loglevel' => 3,
is this line just added to the bottom of config.php? i dont have `loglevel` => 0 anywhere in the file
Edit: Found out you can do it through the web interface. settings -> logging then click 3 dots next to level tab and it will allow you to select what you want log and dont want logged
Hi! somehow, I get access denied when I try to open config.php
when I do nano /path/to/nextcloud/config/config.php , I get [ Error reading config.php: Permission denied ]
Any idea on how to fix it?
Thank you for making all the tutorials! They are really helpful
@@cxlso add sudo to the start of the command
@@Gh0stRec0n313 it worked!! thanks so much!
Dear Brother, pls guide me how can i locally upload my mobile photos/vdos to my OMV shared drive. i dont have real/static ip and dont have web hosting. pls reply
These are a fantastic group of videos, easy to follow, and informative enough without waffling on. Also really encompassing in terms of security and backups so it's something that will actually last and is useful for time to come. Top work, keep them coming
Thank you so much! Your comment really means a lot to me. Thanks for watching and participating in our growing community!
I'm glad it does mean a lot; as someone that has done a reasonable amount of video editing and who works with Linux everyday at work, I have a bit of insight in to how much work has gone in to these 👍
Hey, quick question, could you maybe make a video on the following topic: Update Nextcloud (Docker container as well as the Nextcloud application).
I would like to run an update, preferably an update where I don't lose any data :D
I would appreciate a video or explanation! Best regards from the north of Germany
Thank you for your time and your briefly explanation. NOOB like me can easily understand and set their own home server because of you. Appreciate
You sir, are amazing! Never thought I could get this working but you have taught me so much in this series. The only issue I had was an error from the latest mariadb image and just had to change it to yobasystems/alpine-mariadb:10.4.17. Once again I can't thank you enough and will be buying you a coffee after I finally get some sleep!
I tried a coupple of containers, starting from :latest and on all of them I got "[ERROR] This MySQL server doesn't support dates later than 2038" and wasn't able to build the database. The version you provided worked and the db has been built.
@@KamilSZakrzewski Good to know that option is still working for people. These things tend to change often so it's difficult to keep up at times.
It still works. I tried ':arm64v8' but the db didn't start. Now I'm struggling with another problem. The nextcloud app cointaner starts with the date 1970 (epoch 0) when started with portainer stack and I can't force it to get the system date. When starting a container with 'docker run' and passing 'localtime' that container gets the current date and timezone but the one from portainer can't get that date :(
@@KamilSZakrzewski I wrote down all the work arounds I had to do to fix those problems but I won't be back home till Saturday. If you do some Google searching you Hopefully will find the same things I did to get it working.
@@kevinbreen4510 I tied adding ` - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro` to volumes but it didn't work. The timezone is set but not the clock.
I also tried to run a container without any variables and I still get year 1970. When I add `date` I still get year 1970 but when I try `cat /env/timezone&&date` then I get the correct date. I'm strugling with this for 4 days and I couldn't find a solution on google.
Hey there, I followed your guide but everytime I try to open Nextcloud, I either get a timeout request or it loads and then I follow your steps to create an admin account but then it just loads indefinitely. Tried looking online at what could cause this but haven't found a solution. I tried looking at the logs in Portainer and the date is from May 1935. Maybe that's the issue? I tried changing the timezone but I can't find the file because (I assume) it hasn't been created yet due to me not being able to complete the process
I have the same problem. Did you come up with a good solution?
I got this to work, but it took a little bit of fooling around. The big stumbling block for me was mariadb. If I used the latest image from Yobasystems ( 10.5 tree ), the install would succeed, however when it came time for Nextcloud to do the initial setup, it wouldn't be able to make the connection to create databases, etc. I believe this is part of that known bug that yobasystems has acknowledged, so using the yobasystems/alpine-mariadb:10.4.17 image was how I worked around it.
Can you do a video on how to fix nextcloud issues like .htaccess, .well-known/caldav, db:missing-indices, etc? That would be really awesome.
As usual the tutorial is great. Please add information about setting up external HD/SSD drive.
I just map it as a drive in volumes when I created the container in Portainer. The /var/www/html folder on my setup is on a 2TB external drive.
If you want to add additional hard drives to NextCloud, I might be able to show how to go about that as well in a separate video
Here's a quick tutorial: th-cam.com/video/XsVHgDWngdQ/w-d-xo.html
Thanks, I went throught the hole process again, almost everything is working! Great stuff!
One issue: when i try to set the SSL in NGINX host its give an internal error... so I can't turn SSL/TLS full because on the server side i cant add lets encrypt ssl.. Can somebody help on that?
I have the same issue
I also have this issue
same issue over here
yp, same for me
There's an answer in one of the replies. On your Cloudflare account, under SSL/TLS, you have to set FULL!. That worked for me.
Thanks matey! Note make sure your isp isn't blocking 433 and 80 ports - I disabled this setting in my ips settings (took like an hour to actually work), you can then check via a port fowarding tester online to see if they're actually open or closed.
Typo above: 433 to read 443. "...Note make sure your isp isn't blocking 443 and 80 ports.."
I get "Internal Error" when I try to add my proxy host. This only happens when I enable SSL. I have my cloudflare setup the same. It shows the host is added but only when I close the "add proxy" box. The SSL info was ignored and status is unknown. When I add the SSL request again it gives the same error.
Great videos! Very well explained and interesting! I was wondering if we are gonna see a tutorial on how to install OnlineCollabora for NC in docker as there aren't a lot of tutorials out there, and the ones that I have seen are outdated. Would be very cool! Thank you DB Tech!
That'd be wonderful!
how about a video on how to setup & configure NextCloud, all the default service.
eg: how does one get mail in nextcloud?
Email is bitch to set up and use. I would just use an existing email provider honestly.
Is it possible to move nextcloud data folder so it's able to use the 1Tb drive like in my case or 2Tb on in yours?
Just like I showed in this video. Make sure to create a folder in OMV that is on your 1TB drive. Then mount the /var/www/html folder to that folder and you're done.
I could not get the folder I wanted mounted like DB Tech mentioned, so I changed the volume in the stack
volumes:
- /mnt/1tbMedia/NextCloud:/var/www/html
restart: always
After the container started, all data files are now found here - /mnt/1tbMedia/NextCloud/data/admin/files
New website is setup on cloudflare, nginx installed. Created CNAME record for cloud.mywebsite and left proxy status to DNS Only. Created proxy host in nginx, but when I try to request certificate, I get the extremely helpful "error occurred" message. Because of this I am unable to connect over SSL. Any ideas?
is your original A Record pointed to your home's IP address? Do you have ports 80 and 443 forwarded from your router/modem to your server?
@@DBTechYT Yes, I have a forwarding rule for each port 80 and 443 pointing to the raspberry pi server. If I disable the forwarding rules and try to connect, I get my Unifi Home page (hosted my Unifi Dream Machine), so it is probably conlicting with the forwarding rules.
Is it required to have my own domain name (purchased) , the .click, .cloud, .link, etc., for setting Nextcloud up? Or does the Cloudflare offers a domain name for free?
Sorry my background is embedded software and just starting to learn some IT/web stuff, that's why I asks these questions.
So, you don't HAVE to have a domain for your NextCloud setup. It makes it easier if you want to access it remotely, but it isn't required. If, for instance you didn't want to buy a domain and do the port forwarding usually associated with domain setup on Docker containers, you might consider something like ZeroTier or TailScale.
@@DBTechYT ohh that’s where you can access it locally(?).
So I guess the remote access / cloud-style would happen only at your home.
super well explained. Is there a change to make a video for this series for Syncthing I heard good things about it and would like to have it with the OMV series for Raspberry pi working (Y)
hi could you tell me how I can add some information to the nextcloud stack for example what I put in the config.php for example:
'trusted_domains' =>
array (
0 => 'nextcloud IP',
1 => 'nextcloud domain', ......
'overwriteprotocol' => 'https',
'default_phone_region' => 'IT',
'enable_previews' => true,
and information of this kind. so in case I have a problem and I have to reinstall nextcloud I don't have to insert them every time by hand ...
but more generally where to find the syntax to build stack autonomously
Hi There, not sure if you read comments to the older videos you post but thought I’d give Feedback as you requested :)
First the install went perfect. The only issue I am having is trying to connect external storage via nextcloud. I keep getting Smbclient not installed.
I found your fix in your other video on OMV5 and nextcloud and went through the steps. They ran without error, but going back into nextcloud the smbclient not installed banner does not clear?
I recreated the containers and restarted pi. No fix yet. Have you seen this issue? Any Thoughts?
I like nextcloud, but being able to access the shared folders from OMV is key for me. Maybe another alternative is better?
Appreciate any thoughts on this.
Your Friend,
Sean
Love working these projects with you BTW. Learning a ton.
I'm having the same problem, did you get this fixed Sean? I too, really want to be able to access the shared folders from OMV in NextCloud.
@@barryjones6479 Hi Barry, not with SMB. However, I was able to use FTP and it works fine. I have not had any issues with it using FTP so moved on for now.
@@sandsriggs I worked it out. Someone commented on the other video that you need to change the command pecl smbclient to get smbclient. Works as intended now!
i'm new to ssl and protocols like that so i'm a bit confused and can't find the right direction to understand. I don't have the ability to port forword port 80, my ISP doesn't allow me. i nthis method is port 80 required? I tried to execute the procedure but it gives me an internal error. I followed all the previous videos to the letter. what am i missing to understand?
If you want remote access, you either need to be able to port forward ports 80 and 443 or you can try this method: th-cam.com/video/VrV0udRUi8A/w-d-xo.html
Please note that this method requires that you have a domain name and that you point it to CloudFlare before this method will work.
I guess, the perfect stack would be to combine NextCloud, MariaDB and Nginix proxy manager in a single swarm. What goes together, should be setup together, right?
That's how I try to do it
Great video as always. Just curious if it is possible to setup a local version of Nextcloud that is not available over the internet? I do not have a need to be able to access this remotely, and I would rather not expose my data to the internet. Especially since there is no real need to do so. Thanks as always!
Yeah. So just follow along until 9:43. That's where I show that it's working locally. Just setup your admin account there and it will install locally. You won't need to deal with port forwarding or NGINX Proxy manager.
Help:
Error while trying to create admin user: Failed to connect to the
database: An exception occurred in the driver: SQLSTATE[HY000] [1045]
Access denied for user 'nextcloud'@'172.19.0.3' (using password: YES)
Resolved, had issue with the password set.
Thanks for making it so easy.
I had this problem when I created the nginx stack config in the wrong place. I'd wipe, and take careful auth and routing notes
I finally got cloudflare/nginx working including the letsencrypt by carefully going through the guide again, paying extra care to the proxied or not settings, setting up port forwarding on 80 to your pi:80 (nginx not your pi on 8080, which just bypasses nginx) and get the letsencrypt license. However no it is running I cant see any apps in the store, so I cannot for example install chat/calendar etc. Any help please?
Hopefully someone will be able to help. I've just reinstalled NextCloud the other day and everything is working fine for me. Maybe it has something to do with the the Pi version as I'm using the amd64 version...
@@DBTechYT thank you for replying. Great series, I'm learning lots. A few posts seem to think it might fix itself given time. I'm doubtful, but I'll leave it a few days. Maybe I need to wait for the docker to update
I have got this working and the apps turned up without any intervention. Is it correct that once the nextcloud is set up, that it can no longer be accessed though the local nextwork? When I try I get a message saying 'Access through untrusted domain' - however it works perfectly via the domain name/cloudflare/nginx.
remind me please why would you do it on container rather than native in such 1 user environment?
This isn't just for a single user environment. This is just demonstrating a way to set it up.
Thanks a lot for this very useful video (again and as usual....). That said, I got an "internal error" message when trying to generate certificate with "let's encrypt" ... HAve you als ofaced same issue? Any idea on how to fix this .... Definition on my cloudflare account are "DNS only" and I have activated "full end to end ssl encryption". Is port 81 used during this certificate creation? Thanks in advance for your help ...
Check if your router is doing ddns, forward ports 80 and 443 to the pi
Why do you put http as the schema in the proxy manager and not https with ssl?
Really great tutorial! You mention that final set up of Nextcloud had to happen through the domain address. Does that mean if you have Nextcloud previously installed (in my case, actually running on another system) then you would not be able to access Nextcloud through NPM?
Once you have your nextcloud instance setup, you can only access it through the domain that you set it up on unless you add an additional access URL in the config.php
David:
After I did some updates based on Watchtower notification, I cannot access NextCloud from inside the network. The browser immediately says: "Unsecured Connection" and I cannot change the url to be only http not https.
I still can access it through the internet because I use Nginx proxy manager.
What shal I do?
I did forward port 80 to my raspberry pi's LAN IP. Nginx proxy manager is correctly setup with the domain and the SSL, if i forward port 80, it goes to the default nginx congratulations page, and if i remove the forward, i get a Cloudflare error 522 connection timed out. Your help is appreciated!
Hi, and thanks for the videos about the OMV setup on raspberry pi, but I'm stuck. I just don't get how to access remotely to nextcloud or anything on the raspberry. I'm familiar with technology but not with network setups, I know almost nothing about server configurations and domains. If there is not going to be a more in detail video on how to remotely connect to your omv 5 on raspberry pi please send me a link to a good tutorial about it. I've heard that it can be made through duckdns, and found tutorials on how to do it from a computer or in omv 4, but nothing clear in raspberry pi with omv5. I'm thinking on stop using omv and do it directly from nextcloud, I would really prefer an straight forward process. Have already been 6 days totally dedicated to setup a nas for free, but it's been too much time and trouble for so little success. I would really appreciate some help. Thanks again.
So what is the main purpose of nextcloud? Is it being used as a NAS? And something that I could use to access my server files remotely?
Think of this more as a replacement for Google Drive, Googe Docs, Google Photos, Trello, and SO much more! I use mine every day. My wife and I both have our phones setup to backup our photos/video and contacts every day as well.
@@DBTechYT oh wow, that’s nice. Well what would you recommend for a NAS/Backup. I currently have my google drive (a lot of storage) as my cloud backup, and id like to make a redundant backup for that using this system (RPi + OMV + portrainer)
Where is the location for the Nextcloud storage?
Thank you for your time and help
Wherever you mounted var/html/www
Thanks man it’s work but very slow... any idea what the problem can be? Bitwarden are super fast...
thanks for the guide, everything works, but why can't I get collaborative online on the raspberry? for me it is useless to have a cloud space if I cannot edit documents :(
Great video! But will it work under CGNAT ISP? Unfortunatly I cant forward ports in my modem. What do you think?
If you can't do port forwarding, then this might not work for you.
If your ISP has IPv6 I believe that you can use ddns with this address to skip CGNAT and access it externally needing in some cases the configuration of port forwarding in IPv6. Unfortunately mine doesn't provide me with an IPv6 but here's the tip
it was very frusrating to get it working. once it did i tried the talk video call and the image was nested in itself on and on. what was that and how do you fix it?
Hi and thanks for another great video. I'm trying to follow along and set up my Cloudflare account like you have but I dont know much about this. I purchased a domain from Porkbun (thanks for the coupon) and I am having trouble setting up the DNS section in the cloudflare account. I think I did somethign wrong because in Nginx Proxy Manager, I keep getting errors when trying to set up the proxy host. Do I need to set up an "A" Record with "@" in the Name field and my home's IP Address in the IPv4 field? Then create a "CNAME" record with click and my domain name in the fields? Thanks once again for the assistance and the fantastic videos.
I think you're on the right path, but you need to make sure your DNS record on CloudFlare is set to "DNS Only" while you're setting up NGINX. Once you get the SSL setup in NGINX, then you can change the DNS settings on CloudFlare to be "Proxied"
@@DBTechYT Thanks. I've tried but i keep getting an internal error in NGINX, which doesn't really help describe what the issue is. Also, I've changed the Authoritative Nameservers in my Porkbun account to the ones shown on the DNS section of Cloudflare. Is this correct, or was I supposed to leave them alone in the Porkbun account?
Did you ever fix this issue? If so, how?
I love the tutorial .... I have an account with duckdns, I have tried to install it with portainer ... but I can't get it to work with nextcloud .... do you think it can be done ..?
Thank you very much for your work....
It can be done, but there's no excuse to use duckdns when you can literally get domains for as little as $0.99 from Porkbun: th-cam.com/users/postUgzTe6QTBzzXID7c9al4AaABCQ
This might be a silly question, so sorry for that.
so when you actually setup the nextcloud that means using the link cloudDOTdbtechDOTclick you can actually access it from anywhere in the world right?
Yep
@@DBTechYT No port forwarding required from router, correct?
You have to forward ports 80 and 443
Hi there! Your videos and blog are very heplful for getting started with selfhosting! Regarding nextcloud, I'd love a video detailing how to change deafult settings, like PHP max upload limit (2 MB!?), max memory, and the like to make nextcloud truly useful. Also, moving existing data through smb to nextcloud and having nc scan them.
That's a great idea! The process is pretty simple to change max_upload and that sort of thing. I'll see if I can put together a quick video on how to do that.
Would like to seek some help, i have followed your exact setup but webdev(ie. mapping from Windows client) won't work when nextcloud behind the nginx reserve proxy, do you know how to make it work?
Ok, I have a weird situation. I was able to access nextcloud via my subdomain. Everything was working fine until i put in the necessary information and selected "finish setup". The page was loading and now it takes me to a cloudflare page that shows "Error 522 connection timed out". I didn't mess with any of the settings via cloudflare or nginx. Has anyone experienced this before? Any suggestions?
I am trying to setup these on RPi 3 and so far I was able to install everything. However, nextcloud is so slow that whenever I open it in my browser, page freezes and RPi becomes unusable. Cloudflare shows server is down and I have to wait 15 mins for RPi to be usable again (unless i restart manually). I set the config and database files on my external drive and therefore did not watch the new video you shared at the comments. I can install everything on the sdcard but that will be also slow for sure. Btw, my external hdd has its own power supply so it should be a power issue. CPU gets overloaded quickly. So my question is: do you think this is happening bc of not having model 4 or something else? I tried to webdav to and it makes everything much worse.
Hey! Thank you for the video series! I just wanted to ask you one thing that I am having difficulty with: after enabling SSL on nginx proxy manager, i was able to connect to my domain with the SSL. However, after I changed my CloudFlare proxy status from DNS only to Proxied, the domain could not access to the webpage. When I disable Proxied, i can re access. What do you think the issue can be?
I changed CloudFlare SSL setting to Full (from Flexible) and issue resolved! Leaving the comment here if anybody else encounters with the same problem
were you able to solve your issue?
@@zeeb9471 i solved it with my second comment
Alio Canter
asked in the comments, "Please add information about setting up external HD/SSD drive."
So I made a quick tutorial on how to do it here: th-cam.com/video/XsVHgDWngdQ/w-d-xo.html
hey just out of curiousity, ive only seen Episode 1, 3, 4, 7, and even going to your channel directly, thats all that will show up. Are these missing episodes posted somewhere else, or has youtube just eaten them?
Thank you so much for this series. You really got me hooked on this and finally I feel that I'm beginning to understand what I'm doing in all different parts.
How ever - now that I got this all set up I've got one issue. When I try to login from the login-page the circle spins forever. How ever, when I refresh the page, I'm logged in so that's great but that doesn't really work with the phone apps. Any idea what this can be and how to solve it?
Maybe I should mention that I'm not using cloudflare but have my own purchased domain and the ssl seems to work fine.
Thanks again - just great work!
Did you modify the config file for the https overwrite?
@@DBTechYT no I didn't - was that in the video? If not - how do I do that?
It might not be in this video, but I know it's in this blog post: dbtechreviews.com/2020/03/how-to-install-nextcloud-on-openmedivault-5-with-remote-access-and-ssl/
Look for the "HTTPS Fix" section in the post.
@@DBTechYT thanks - when I use that command I first get "permission denied" - if I try to add sudo first it says Directory '/roodt/app/config' does not exist...sorry for bothering you - "the coffee donation will come ; ) "
someone who knows how I can access the config.php file? trying via the server share, through ssh but doesnt seem to be able to find/open it. final little thing to get everything to work...
Hi, great video, thank you! Everything is running well and fine but I'm facing an issue signing in from the apps (ios and android)! Any hints or ideas? I would like to use nextcloud app and nextcloud talk app.
Many thanks
Try to create a token in the web version and then use that token to loggin from the app, it worked for me
Again, great video :) When configuring force ssl and http/2 support and I check them. I can't access my domain because of too many redirects error. Any idea why is that? @DB Tech
Could be a caching issue. Also, make sure that your Cloudflare account's SSL settings are set to FULL
Hi there, I have exactly the same issue. Everything works fine until the "Proxy status" in Cloudflare is set from DNS only to Proxied. After that point, when I try to open my domain, it shows ERR_TOO_MANY_REDIRECTS. Is there by any chance some more settings in Cloudflare need to be set? Thank you.
Okay, solved: Just need to set in CloudFlare in SSL/TSL encryption to Full. Great videos!! thank you!
I am getting internal error during SSL certification in nginx
plzzzzzzz tell me the solution
Disable Proxy mode on CloudFlare. Make sure you have ports 80 and 443 forwarded to your NGINX Proxy Manager container. Then try again.
Thank you for the great videos! Can you please make a video how to integrate onlyoffice with nextcloud using omv5 and raspberry pi?
Hi and thank you very much for the fantastic very detailed guide but I would have a problem with the php configuration, as to install some apps in nextcloud it dictates that the limit is not 128M but 512M, the problem is that I cannot find the config.php file related to php configuration, could you tell me where it is according to the installation of the container of your guide? thank you so much
I need to make another quick video about how to attach a php.ini to the setup to allow for modifying uploads and that sort of thing. It's easy to do, but hard to explain in comments.
@@DBTechYT Hi. Can you help me to solve the php settings problem I wrote to you earlier? thanks a lot
If you mapped the path to the same place I did, it should be here: /srv/dev-disk-by-label-Files/Config/Nextcloud/config/config.php
Thank you so much for the content, I do have an issue. When I try to save the new proxy in NGINX, I get an error "cloud.xxxxxx.click is already in use". I followed your exact sequence. Any idea what the problem is?
you have to have your own website name bro.... cloud.dbtech.click is his website...
" Internal Error " that the error i am getting when i am linking my cloud subdomain and enabling ssl and saving it .. what should i do ?
this same me. plz help.
it is happening with me as well. Any idea how to fix it?
@@ninja2807 now i reinstall docker this all work
I cannot find a fix for the 0770 data issue where nextcloud informs you the nextcloud data is publicly accessable. Has anyone found the fix?
hi bob. its me, future bob. you went too fast on your permissions in OMV, didnt take good notes deploying your stacks with typos and crap, and probably set up nextcloud for localhost instead of "DB" on the first screen. that was pretty sloppy work, my dude. its cool, you just fixed it.
Thanks DB Tech. Good stuff. 😊
Yay u uploaded!!
Sorry for not uploading on Monday. I wanted to do this video then, but we had unexpected company for the morning and there was no way I could record.
Nice tutorial series so far. However, I am stuck on this one sadly. I was able to create the Nextcloud and even attach the SSL Certificate following your video, but I can't login on the site. It always brings up "Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused". I checked every Setting multiple times (even by using the unsafe test information for password, username and database name) but nothing seams to work. Is there a followup to this video? Because to me it just seems outdated at this point.
Then there's something wrong with your database connection. I suggest you look through your logs and see what the error is.
@@DBTechYT Thank you for the fast reply. I found out that the latest version of mariadb seems to have some issues with nextcloud. Hence, I changed it to the image to yobasystems/alpine-mariadb:10.4.17. However, when I try to initially log into the nextcloud I end up with an gateway error 504. After reloading the site, I get the window for a regular login (without options for the database settings). If I try to login there, it gets into an endless loop unable to progress forward, while my logs say that the app as well as the db is doing fine. Hence, I refreshed the page and end up with an internal server error. It seems to me that the HTTPS connection or the waiting timeout for the setup might conflict with the usual HTTP settings. Any suggestions on how to continue from here?
@@DBTechYT I second the issue the @DieBananeOfDoom had. Been bashing my head at this for days.
Great video.a Nextcloud seems very useful but it’s very very slow. Needs about 5 secs to bring up the web page and every link takes 4 to 5 secs. Is this normal? Are there any performance tweaks? My rpi4 has 4gb ram and fast SSDs. Especially the Nextcloud talk app is super sluggish. Any tips?
One reason it's slow for a lot of people is because people have their cron set to AJAX. When it's on AJAX, cron jobs happen on page clicks and that takes resources away from rendering pages. So I set mine to Webcron and setup an EasyCron account to ping my server's cron.php file once per hour to execute cron jobs. It has definitely helped my loading speeds over the last couple of days.
@@DBTechYT thanks. Can you explain how to do this switch?
Go to Settings under your icon in the top right (on desktop). Then click on "Basic settings" in the left column. Then click "Webcron". You'll need to setup an account with a site like EasyCron and have it ping your server's cron.php file by accessing your-nextcloud-url.com/cron.php. Be sure to replace your-nexcloud-url.com with your actual URL.
Thank you. That helped improve speed a bit. But still it takes 6 secs to open the Talk app. The browser window just says "waiting for [my URL]." Maybe some nginx or cloud flare settings?
Also, your system might be generating a lot of unnecessary logs.
More info on log levels can be found here:
docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html
To edit what gets logged, you'll need to edit your NextCloud config.php file:
nano /path/to/nextcloud/config/config.php
change 'loglevel' => 0,
to 'loglevel' => 3,
OK great video! i did everything very carefully but for some reason i am still having a problem with nginx, i do not seem to be able to setup an ssl cert. for the proxy host. It displays a message "internal error". I had this problem the previous time i tried to setup ngingx and i think it is just me. Just for the sake of good order, in cloudflare the A setting for the domain should be your own ip right?? Do you have any ideas as to where i should start looking perhaps to try and find a solution for this?? Tks.
Yes, it should be pointed to your home's IP address. You need to make sure you forward ports 80 and 443 from your modem/router to your server. Make sure that your Proxy Status on CloudFlare is set to DNS Only instead of Proxied. Once you get the SSL cert installed via NGINX, then you can change the DNS settings to Proxied on CloudFlare.
I'm having the same problem here :/
@@DBTechYT i double checked all this and I still get the same error. What about the domain name i am using?? This used to be a hosted website, but now the dns servers are pointed to cloudflare as required. Do u think that may play a part in any way?? Tks.
the only thing I can think of is that it's a caching issue.
The process is this:
- Buy a domain.
- Setup a CloudFlare account.
- Point the domain's DNS to CloudFlare.
- Wait up to 48 hours for the DNS to actually change.
- Make sure that the Proxy Status for the domain/subdomain on CloudFlare is "DNS Only".
- Make sure you have ports 80 and 443 port forwarded from your modem/router to your server.
- Setup a Proxy Host in NGINX Proxy Manager.
- During this process you'll need to:
-- Enter your domain/subdomain on "Details".
-- Enter your server's IP address on "Details".
-- Enter your application's port on "Details".
-- Select "Request a New SSL Certificate" on "SSL".
-- Check the Force SSL and HTTP/2 Support options on SSL.
-- Click Save.
This should generate a new SSL in a couple of moments.
At this point, you'll need to edit the entry in NGINX Proxy Manager, go to the SSL tab, and re-click the "Force SSL" and "HTTP/2 Support" options and click save.
Then you should be able to go to your domain/subdomain and it should work.
You'll also want to make sure you change the Proxy Status on CloudFlare to "Proxied".
That's it. Those are the steps I go through each time I setup a domain on NGINX Proxy Manager. The exception is that you don't have to point the domain from Godaddy to CloudFlare each time. Also, you can setup subdomains without the waiting period of up to 48 hours.
@@DBTechYT Yes that's what i wanted to try, i will get a brand new domain name and go thru it all again carefully and let you know. Tks.
So, I done installing stuff, I have bought my domain at Mailchimp, and add nameserver to Cloudflare. But when I trying to add proxy host on nginx, the status shows offline. Any Ideas?
Nvm i fixed it, just go to the SSL certificate section in nginx, then add ssl certificate, check on DNS challenge and choose cloudflare then add my API token and Im good to go!
That's awesome! Well done with the troubleshooting!
@@phamleduy04 I think this is my problem as well - in Nginx when I add the new Proxy Host it throws an internal error, what do i put for the cloudflare API token in Nginx add SSL is it just the string of numbers, zone ID from Cloudflare etc? thanks
@@indigowyrm Did you find a way to setup the API?
@@cxlso no it never worked for me this way the only way I could get nextcloud working was techno dad's way
Can i change Cloudflare with just Noip?
If you want
@@DBTechYT it is work just same?
Hi - really appreciate your video. It worked but I always have trouble logging into Nextcloud via the external URL. The login screen just keeps going without letting me in. When I try to login via the internal IP it works immediately. So it seems something with the Proxy Manager or Nextcloud config needs changing. Any ideas?
If you set it up on your Internal IP, then it has that as your "trusted domain" in the config.php file. In order to access it on both an internal IP AND an external domain, you need to go to your NextCloud config.php file and add an additional trusteddomain.
For the setup you saw in this video, my config.php file is located here: /srv/dev-disk-by-label-files/Config/NextCloud/config/config.php
You'll want to edit that file and find the area that talks about 'trusted_domains' and edit it to be like this with your info: imgur.com/a/aHsSXv4
@@DBTechYT I found the issue. Its a bug since Nextcloud 17, documented here: github.com/nextcloud/server/issues/19796
Hi @DBTech, I decided to purchase a domain name in porkbun however setting up my nginx proxy manager, I encountered "Internal Error".
I have setup a CNAME record with 'nextcloud' in it with my purchased domain name and with DNS only. Then I was adding a new Proxy Host with the 'nextcloud'. until I encoutnred the error. It says that my domain name is already in used.
Not sure what else shoudl I check. But I can see a lot of records under DNS in my CloudFflaore account.
I can confirm that my nextcloud image is working locally as I can view it in the browser. I just did not setup my admin account yet. Because I want it to be remotely.
Can I get some enlightenment from you?
Should I wait for any activation from Porkbun and/or Cloudflare? Thanks!
It looks like I need to add the nameserver of the cloudflare to my registrar porkbun. Is that right? I see the notification in Cloudflare that my domain name is not yet active on Cloudflare and my Regsitrar is still Unknown.
There's a guide on how to add the nameservers, I hope it works. I need time to wait for it to update.
Once you purchase your domain, you need to wait approximately 24 hours. Then you can go to CloudFlare and add your domain to your account. Then CloudFlare will give you nameservers that you need to use. You'll go back to where you bought your domain name and remove the existing nameservers and put in the ones that Cloudflare gave you. Then you'll need to wait up to 24 more hours. At that point, CloudFlare should be in control of your DNS and you can start using CloudFlare to manage your domain, set up tunnels, etc.
@@DBTechYT Is the DDNS (from the previous video) required for this setup? I think it's not, right?
When trying to login to nextcloud for the first time, I receive the error "Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE." I have tried to research this, but I am a newbie(ish) and have no clue how to fix this.
Found the fix. Need to update the stack db section. Change the line command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW to command: --innodb-read-only-compressed=OFF
Can this be done with a DDNS like Duckdns? I'm not sure I'm ready for a full domain name yet.
DuckDNS is a SUPER INSECURE way to do it. They don't hide your IP address like Cloudflare does. And you can get a domain name SUPER cheap from Porkbun. Like... Less than $5 cheap.
Where are the files and documents saved on the hard drive?
If something happened with the server, where do I find the documents I saved on my nextcloud?
They'll be wherever you mapped the volume when you created the container.
@@DBTechYT You mean under the Config/NextCloud folder? And which sub-folders?
I spent much time trying to find them and I could not.
For me, my files are stored here: :/srv/dev-disk-by-label-Files/NxtCld/data/david
So for you, it should be /path/to/nextcloud/data/{username}
@@DBTechYT Many thanks for your help!!
Could OMV5 run on ESXI on Pi4 8GB? Would love to see a video on this too. ;).
Yeah possibly. I haven't tried ESXi yet, but I plan on taking a look at it in the near-ish future!
@DB Tech Thanks for the video, Could use some help though. In CloudFlare when I get to the part for creating the type A to go with the CNAME I created it wants an Ip address I used the one I thought I was supposed to but I get an error saying it can't use it. Any ideas? Thanks Actually I jumped the gun I am having an issue with the part of creating a proxy host. I got a domain name from porkbun like you said and nginx keeps telling me its in use and I can't go any further.
First one, have not see it but I know it's great. Have a lot your tutorials working on my pi and all work
Thats awesome! Thanks so much!
nginx text tutorial does not mention the need to use a different database - I spent a couple days trying thinking I had made a mistake before watching the video.
Did you get it sorted?
@@DBTechYT in the process now. Trying to set up my ddns and then on to my nextcloud setup. Wish me luck!
For me, this doesn't work at all in any way possible. I have already reinstalled Nextcloud 4x. Exactly the same method as the one shown in the video ... I keep getting a 504 error while setting up Nextcloud ...
OK. I'm starting to suspect that this has to do with the permissions of the folders in OMV where we mount the configuration files. Did I see anything about it or did you just not mention it in the video?
Bingo. If I do not mount the path to my OMV to / var / www / html but a path such as / home / pi / nextcloud then the installation will work without problems ... ... how can I make it work with OMV only?
Hi. I installed everything as instructed but keep getting this error message on the Nextcloud init page: Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution. DO you have any tips? Many thanks
Found the solution. Docker does not like mergerfs drives.
@@marcg1043 Hello, could you please elaborate...I have a similar error myself: SQLSTATE[HY000] [2002] No such file or directory
Thx. I'm following your playlist step by step. It's very usefull! Congrats! But, I can't correctly install Nextcloud because of an issue regarding the db. The nextcloud_db_1 logfile is reporting this error message: "[ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!" Can Anybody help me?!
Hi David, thx for the tut - got me a long way. Now I'm stuck at the last bit: when accessing from browser via via NPM nextcloud says: Addess through untrusted domain...edit "Trusted Domain" setting in /config/config.php. Have been through vaious possibilities: 127.0.0.1, IP, localhost. But can't find a solution for when both NPM and nextcloud are on the same machine. Plz throw me a hint.
Typo: Access
So I'm guessing you went through the setup process of Nextcloud while still accessing the server on your local IP address of the server rather than doing the setup on the domain name you want to use.
- SSH into your server.
- Navigate to wherever your config.php file for Nextcloud is. You set this up in the volumes section of your stack.
- Edit the config.php file using: nano config.php
- Look for this:
'trusted_domains' =>
array (
0 => '192.168.68.250',
),
- Edit it to look more like this:
'trusted_domains' =>
array (
0 => '192.168.68.250',
1 => 'sub.yoursite.com',
),
- Then save the file.
- Then restart your container.
@@DBTechYT That did it! Thx a lot.
everything was fine till fist load page.
and i have following error
"Error
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known"
same problem with me. did u sort it out?
Have you evenr tried to upgrade Nextcloud? The web upgrader just jumps to the dashboard.
You don't update it through the dashboard. You update it through command line or Portainer
@@DBTechYT Portainer didn't work for me. Any tips?
There may not be an update available for the image you're using. Just because the NextCloud software has an update available to it, the image you're using is probably trailing behind a bit and the developers need to update their image with the new NextCloud image. This is VERY common.
@@DBTechYT thanks. I think it would be great to have a NC container that allows Upgrades via the NC web mechanism itself.
Thanks for the great video! I tried and it worked fine at benning. But now when I try to reach the page I get a message saying that "the user data folder is readable by other users. Change permissions to 0770".
I tried to change the data folder permissions to 770 via SSH, but at that point I cannot access anymore Nextcloud.
Anybody experiencing the same?
Thinking about it, the data folder is owned by root. I could change the owner to Nextcloud, but I don't know which user it is. Any idea?
@@drp8777 @DB Tech I faced the same issue. Do you have some solution on it?
Any luck with this? I am also getting this error.
i am also getting this error
I have also tried chmod and haven't had luck. Im very frustrate
This MySQL server doesn't support dates later than 2038
can anyone please help me with that error message?
i got that when is see the log of nextcloud_db_1
Don't use the lastest mariadb image, it's a confirmed bug. Use "yobasystems/alpine-mariadb:10.4.17" instead.
@@dan1728TutorialesHD thankyou sir
Thank you for this guide! I'm having a bit of trouble with adding trusted domains. Anyone have any idea? I know that you need to edit the config/config.php file, but I don't know how to access this file from the docker container.
Your config.php file will be wherever you mapped it in your volumes. Navigate there and edit it.
episode 7? where are the others?
As I stated in the video, there's a playlist linked in the description of the video. I've made a playlist for this series. Each video in the series has a link in the description to get to the Raspberry Pi Home Server playlist.
Where's episode 5,6 ? :)
Like I said in the video, they're in the playlist linked in the video description
Anybody here who had some Internal Error in the NGINX Proxy Manager? It happened when I try to enable request SSL.
It looks like I haven't setup my Registrar and DNS properly. Any pointers here?
Thank you!
Did you forward ports 80 and 443 from your modem/router to the device running Ngninx Proxy Manager? Did you login to wherever you manage your domain name and create A records or CNAMES to point to your home's IP?
@@DBTechYT Right now, I have added a port mapping/forwarding in my router that point to nginx proxy manager port 80 and port 443.
I can see when I type my router’s public IP, I can see the NGINX proxy manager webpage.
I have also added a DNS record just now. Type A and CNAME pointing to my public IP.
So now my issue is adding a record type A in Cloudflare DNS Management, when I add the root and my public IP, I have error 9004, this record type cannot be proxied.
Thank you very much for the help.
@@christopherdeguzman8814 Are you using CloudFlare tunnels or Nginx Proxy manager for your remote access?
@@DBTechYT I believe I’m using Nginx Proxy Manager.
Based on your video, I have a container for that.
There’s a setup needed to be done in Cloudflare right?
I have added DSB records in porkbun pointing to my router’s public IP, that’s what I meant in my previous comment. Thanks!
Thanks for these guide they are very helpful. Apologies in advance as I am a complete noob and my Google-fu is failing.
I ran into trouble with NPM when trying to add SSL I get "internal error" on the dialog box and logs in Portainer similar to this github post:
github.com/jc21/nginx-proxy-manager/issues/556
The Nextcloud page is accessible on the internet without SSL and Cloudflare set to "DNS only", but I'm assuming that is not secure and I shouldn't do that correct?
Also when I change Cloudflare to "Proxied" the website is NOT accessible and i get a Cloudflare 522 connection timeout error. Is having SSL setup a prerequisite for using Cloudflare proxy?
same problem, did you figure it out?
Dear dbtech, great vdos with helpful tutorial. i have setup pi+ovm+rpi+jellyfin and qbit torrent watching your vdos. pls tell me can i use next cloud only locally without installing cloudfare and NGIX? i have skip these too and ran into error, Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known"..............i checked double tipple by found to other problem , pls help
I had to use the yobasystems 10.4.17 image. That fixed the database connection error for me.
Unfortuntely I ran into an error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'Admin'@'172.20.0.3' (using password: YES). Someone any ideas to solve this? It's rather frustrating and keeps me busy for days now.
I don't know what to tell you. I've done this a dozen times or more to make sure it works so I can only assume you changed something in the stack.
If You intrested i found solution for that problem. At beginning of Stack file just add lines:
-----------------------
volumes:
nextcloud:
db:
----------------------
Next You must delete all files from Config and Database folders (nextcloud files) and create new stack with this lines. This shoud work. Db Tech propably not use some iptables.
1. If you can't access the site even if nginx says it's online then you have to go into your router settings and open ports 80 and 443 and point them toward your server ip address. Double check me on the ports before opening but once I done this, I was able to access my site.
2. If you can't force a ssl and get an internal error each time you try go into cloudflare and change your dns settings from flexible to strict then you'll be able to force it.
Good luck y'all!
Hi.
Thanks very much for the great content that you always post. I see that you use the let`s encrypt SSL certs for the Nginx proxy manager. However, this cert is only valid for 90 days if I am right. I was wondering what would be the process to renew this certificate once it expired in either manual or automatic manner?
NGINX will renew the SSL without issue
I get an Error 521 when i try to access my nextcloud with my domain. Anyone else with this problem?
It's probably a caching issue. Try a different browser
I tried a different browser, but got the same Problem. The Error says that my webserver is down, but I can access with the IP. Thank you for your Support, appreciate it!
Solved the Problem: I changed SSL Mode to Flexible in Cloudflare and disabled the SSL Certificate in NGINX.
Thanks for the great series!
Every time I deploy the NextCloud stack my nextcloud_db_1 recieves multiple errors before aborting, see below:
0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
0 [ERROR] Plugin 'InnoDB' init function returned error.,
0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error,
0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.,
0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded,
0 [ERROR] Unknown/unsupported storage engine: InnoDB,
0 [ERROR] Aborting
I am running a PI 4 4G and have 2TB of storage available on my external drive.
Let me know if you know what could be causing this.
I have been following your playlist from the beginning.
I figured out it was an error with having an NTFS drive for my target.
Hi,
first of all thanks for the great video :).
I did everything exactly the same way, but I have the problem that I can't install apps.
I get the following error message:
"GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 120000 milliseconds with 2052686 out of 6045785 bytes received (see curl.haxx.se/libcurl/c/libcurl-errors.html)"
I've googled for a while and found that the TIMEOUT variable can be changed in:
..../lib/private/Http/Client/Client.php
But it doesn't matter which time I choose, timeout is still after 2 minutes.
Can you maybe help to fix this problem?
Hi so I followed the tutorial up to the point of just installing nextcloud, I didn't need to follow the remote access stuff as I don't need that. Everything was working, I could upload and download files from my browser, windows 10 and my phone. I then suddenly got this error when trying to access nectcloud:
"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."
And in portainer when I check the app container it has the following error:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.26.0.2. Set the 'ServerName' directive globally to suppress this message
I'm not sure what caused the error, once I set something and it's working I just leave it alone. I tried deleting both containers in portainer and deleting all the files in the Database directory and tried reinstalling everything again but still has the same error. I think the issue is with the app container as the database container seems fine. Is there any solution for this?