It turns out all I had to do was delete the version.php file, then re-run it with the nextcloud v19 docker container. That allowed me to upgrade from v18 to v19. once that succeeded, I then ran the nextcloud v20 container, which upgraded to v20.
With over 400.000 deployments, Nextcloud is the most popular on-premises content collaboration platform you can download. It scales from a Raspberry Pi with 2 users to globally distributed installations with tens of millions of users at major hosting providers. What makes it so popular?
Who owns your photos and documents? Right, it should be you. With self-hosted cloud storage, your data is where you want it to be: at home or in the cloud you trust. Nextcloud runs on that server, giving you easy access to your files from desktop and mobile devices, as well as boundless syncing and sharing across locations: FTP drive at school, a Dropbox, or a NAS you have at home. Nextcloud is free and open source, and you can get involved in making it better!
On the top-right of your Nextcloud window, a search glass shows search results from all over Nextcloud. Additional search providers can be installed and over a dozen different search providers are available to show you Github issues, Moodle courses, Jira tickets and more
This Nextcloud manual describes the use of the web installer (run by opening setup-nextcloud.php) but it doesn't say anything about uninstalling. (Except that if you uninstall Nextcloud you need to remove the Nextcloud directory labels.)
I'm sure it would be possible to work it out by going through setup-nextcloud.php and manually removing everything it added, such as the server registration, the firewall rules, and so on... but obviously that could be time-consuming and error-prone. Surely there must be an automatic way?
Reading through the code for NextCloud's web installer, NextCloud would have been installed in the directory where you placed the setup-nextcloud.php file. So, with this in mind, removal of NextCloud may be pretty simple.
Note: As I do not know the directory structure of your server, the following assumptions will be made. Any differences will need to be addressed by you as you remove NextCloud from your system.
Note: Use the full path here so that there is less chance of completely wiping your server of everything. This command will completely remove the nextcloud directory and its contents.
Nextcloud database: in the MariaDB/MySQL step, I found I had no database called "nextcloud" but there was one called "ncexample" which I thought was probably the one. A web search revealed that the Nextcloud database contains a bunch of tables prefixed "oc_" (Nextcloud being a fork of ownCloud), which helped to confirm that the db I was about to delete was at least some Nextcloud database on that server. In my case that was all I needed to know before deleting it.
Nextcloud firewall rules: I went into the graphical UI for UFW (GUFW) by choosing Firewall Configuration from the main menu in Linux Mint. There, by selecting each of the profiles in turn (Home, Office, Public etc), I located and deleted the Nextcloud rules. The UI made this very easy because the displayed table of rules has a Name column, and there were rules with Nextcloud in the name. (I don't know whether the Nextcloud firewall rules were added automatically by setup; given that matigo makes no mention of them, I'm guessing not, meaning they would have been added manually afterwards. So it looks as though this step would be needed in any case following any auto-uninstall, should such a thing ever be found to exist and be used.)
Nextcloud is a suite of client-server software for creating and using file hosting services. Nextcloud provides functionality similar to Dropbox, Office 365 or Google Drive when used with integrated office suites Collabora Online or OnlyOffice. It can be hosted in the cloud or on-premises. It is scalable, from home office software based on the low cost Raspberry Pi, all the way through to full sized data centers that support millions of users.[6][7][8] Translations in 60 languages exist for web interface and client applications.[9]
Firstly, nextcloud is just a bunch of php files. It needs a running webserver to do anything, and the nixos module uses nginx for this purpose: nixpkgs/nextcloud.nix at cb8d3fe07d3592e5d846bce5f7cb5397efe6b206 NixOS/nixpkgs GitHub
If you want to bind a service such that it is accessible from outside, you typically should bind it to 0.0.0.0, which will make it listen on any IP address, including 127.0.0.1 and the address your router hands to you using dhcp.
Yes, I have other sites (like jellyfin) hosted on the same computer that I can connect to from other devices. But the above changes to nginx narrow done on the issue. I cannot access jellyfin on another computer through jellyfin.home but I can use :8096 on another computer. Another factor jellyfin is running in a docker independent of NixOS. So it looks like the issue might be in how nginx is set up. Is nginx only handling requests made on the host computer? Is this where I should be using 0.0.0.0?
I am using Tailscale, which creates a network, giving all your devices a private IP. In the web browser, Linux and Android Nextcloud app, I can use the private IP given to my server to access it, and it works fine. However, when I try to add the Nextcloud account to GNOME from the settings app, it just freezes and never loads.
If I try to mount it directly from Nautilus, with davs://server/nextcloud , davs://192.168.0.92/nextcloud (The Tailscale Private IP), or 192.168.0.5/nextcloud (The real private IP, not the one from Tailscale) I get this error:
I tried to install other file managers to see if they can connect. With Caja and Nemo, which as far as I know, are based on Nautilus, show this error, preventing from even entering the server's address:
As you can see, my NextCloud database name is nextcloud. Once you have identified the NextCloud database name, use mysqldump utility to make a backup like below. Replace red text with your own NextCloud database name.
To back up NextCloud config folder, first cd into Nextcloud installation directory. (Depending on your setup, your Nextcloud installation directory may be different. For example, If you set up Nextcloud with LAMP stack, the directory might be /var/www/nextcloud/. If you set up Nextcloud with LEMP stack, the data directory might be /usr/share/nginx/nextcloud/).
Go to the NextCloud installation directory. (Depending on your setup, your Nextcloud installation directory may be different. For example, If you set up Nextcloud with LAMP stack, the directory might be /var/www/nextcloud/. If you set up Nextcloud with LEMP stack, the data directory might be /usr/share/nginx/nextcloud/).
If you choose Yes in the previous step, then you need to go into NextCloud installation directory and issue a command to start the upgrade. (Depending on your setup, your Nextcloud installation directory may be different. For example, If you set up Nextcloud with LAMP stack, the directory might be /var/www/nextcloud/. If you set up Nextcloud with LEMP stack, the data directory might be /usr/share/nginx/nextcloud/).
Go to your Nextcloud data directory. (Depending on your setup, your data directory may be different. For example, If you set up Nextcloud with LAMP stack, the data directory might be /var/www/nextcloud-data/. If you set up Nextcloud with LEMP stack, the data directory might be /usr/share/nginx/nextcloud-data/).
I have managed Nextcloud hosting, so no access to server logs, but on my other notebook (using the NC client app+davfs2 mount), phone and tablet I dont experience problems.
Is there a way to make this work without having to install the client and ? All I want is to be able to access my Nextcloud files from my notebook, or upload files from Dolphin, without having to synchronize complete folders. The alternative is to create a mount using davfs2, but I thought using Dolphin would be sufficient. From what I read on this forum, it should be possible just using Dolphin and the Online accounts settings.
I recently added Redis as a cache for my Nextcloud instance to increase it's performance. This has mainly reduced MySQL database queries and cleared up some errors I was getting from hitting MySQL tables during locks. Although this post is written for Unraid users it can easily be applied for other setups as well.
This post assumes you already have Nextcloud installed using the container from Linuxserver. Other containers will work fine as long as they have the required PHP Redis libraries shipping with them. The Linuxserver container works out of the box and is available in the Unraid Community Applications so I recommend it if you don't know which one to use.
If you have never heard of Nextcloud it is basically a self-hosted Dropbox. I use it for backing up files from all my various computers and devices to my Unraid server for redundant storage (and have my Unraid server backup to CrashPlan for even more redundancy). I recommend checking it out:
Installing Redis in Unraid is super easy if you have Community Applications installed. It's as easy as searching Redis under apps and clicking install. Make sure to install the one provided from the official Redis user. Also note which port you use since you will need to reference this from the Nextcloud config file.
Getting Nextcloud to use your new Redis instance is pretty easy. All we need to do is modify the config.php file for Nextcloud to point to our Redis instance. To do this open your config.php file (location is /mnt/user/appdata/nextcloud/www/nextcloud/config/config.php if using default appdata path in Unraid with the Linuxserver Nextcloud container). We want to add these lines into the $CONFIG array:
If you have a lot of files syncing over a very fast connection you can actually start hitting MySQL database errors with table locks or other issues (you will see these errors within the Nextcloud client program when syncs are happening or from the server log). Implementing Redis for my Nextcloud instance completely resolved these errors for me and they no longer occur. Syncs are also faster now since implementing this. If you have the memory to spare (and Redis doesn't really need a lot) then I highly recommend setting this up.
df19127ead