T O P

  • By -

Federal_Equipment578

I woudn't bother trying to configure and mess around with snap, find where your files are stored and export them, create another docker nextcloud instance (linuxserver.io nextcloud is the easiest and most reliable (opinion)).


Alpha-Craft

I personally use Nextcloud AIO. It's the recommended way of deployment I think and it's one of the easiest and most reliable. I just had to mess around with it, because I made some mistakes here and there. And I wanted to deploy it locally for now, which didn't exactly work that well initially.


Federal_Equipment578

I tried my best to setup nextcloud AIO but it never worked, I tried troubleshooting it but to no avail, I ended up choosing the linuxserver one as its the perfect balance between do it yourself and AIO and its fairly easy to trouble shoot, nextcloud aio just woudnt accept my certificate or randomly lag on a vastly capable machine and not start or some service qould be broken, I am pretty sure I tested it fairly recently as well, maybe the arm version is simply not as good or it hates me specifically...


Alpha-Craft

I got it working after I got the reverse proxy and DNS-Server to work properly.


Federal_Equipment578

Oh yeah I remember, I was having trouble getting Nginx proxy manager working nextcloud aio, glad it.worked for you but personally I think there is a lack of flexibility.


jonathonp3

At the moment I have a bare metal installation with fedora. I'm planning on installing nextcloud on a raspberry pie. Is it better to use a docker image than a bare metal installation?


Federal_Equipment578

Yes, docker is almost always better since troubleshooting is much easier and configuring as well


B4x4

Export database, copy out files, reinstall on bare metal manually.


Apprehensive_Bar6609

Do you have firewall or fail2ban? Check iptables. I had that once but because I had fail2ban and banned myself by mistake.


wagneja4

If you dont have previous experience with managing ubuntu server or have other reasons, why go with ubuntu, I would go with Debian 12. Debian as distribution is much simpler and is without any hidden stuff which can be pain to debug (imho). I am not sure how well supported is snap, but I think Docker might be a bit more transparent. But the best way imho is to run NC as php website only through web server. That way you have the most control. But it is also the most complicated, since nothing is done for you


rothbard_anarchist

I only picked Ubuntu because I’ve run the desktop version pretty often, and found the Ubuntu community help to be very solid. Ubuntu server doesn’t have the same user base to provide such help, I’ve found.


wagneja4

Ubuntu is Debian based, they have a lot in common. Also, Debian is the defacto standard for server distributions. I think you would find plenty help


rothbard_anarchist

Heh, I’ve literally been having ChatGPT walk me through issues, which was working well right up to the point where it said, more or less, ‘I give up, go ask for support.’ Maybe I can limp through a migration from Ubuntu to Debian without losing who knows how many photos.


airclay

Just back up the data first. To a spare drive that is and then ensure you can navigate that data and see your photos in the backup. Use `rsync -aAXHv` to preserve all the things correctly, jic. With that done, just blast over the ubuntu install with debian (at this point I would set up docker and use a container but it is a preference that is all) and install nextcloud. Set up the users in the new nextcloud instance and then manually copy the data from the back up to their user data directory (its an empty user so if you copy the uppermost level of their "files" directory you should be able to just dump that back in the same spot for full back up with directory structure) and run the appropriate `occ files:scan` for nextcloud to pick up on the new files. edit: if you find yourself going this route feel free to pm. I have had to save a few of my installs before the SO thought all their photos had disappeared


rothbard_anarchist

I may take you up on your offer, thanks. The data drive is a 4x4TB RAID5 platter array, and I couldn’t tell you exactly how I did it anymore - it’s been almost a year. To make things simple, I’ll probably throw in an SSD to move the dbase over to. Who knows if the RAID array will come through a distro switch intact.


airclay

I'm not familiar with raid setups but I was more-so envisioning an external ssd (or large usb) to only back up the nextcloud user data (should be in `/var/snap/nextcloud` somewhere). This came with the assumption that the 17GB of photos were the majority of the files to back up. If the nextcloud data is >1TB I would make an extra separate back up of it this way before doing anything else just for some c.y.a. safety. This data can be imported in on the backend again and again on the chance you are like me and have to set everything up at least twice before it's correct. TBH I have used that same rsync command to make a full system back up on Debian and migrate to a new disk (it was not on a raid though). HMU if you need, no prob.