I just started experimenting with setting up Nextcloud on my FreeNAS, once I realized it might be a great alternative to keeping a basic SFTP server running to share some of my files.
I installed the plug-in offered on 11.2RC1 and was successful in getting most of it working. I see that the majority of posts here about Nextcloud seem to suggest setting it up from scratch using one of the install scripts that's been created. I can definitely see the advantages of that, except as I found in the past when trying to do that with Plex on my FreeNAS, it tends to mess up the correlation of what your web UI says and what you're actually doing on the system. I'd rather not have a manually, command-line created IOCage jail running, for example, that the UI doesn't display as belonging to a specific application like Plex or Nextcloud (or may not even display at all).
Plus, I figure somebody went to all the effort to create the plug-in, so why not take advantage of all of their hard work?
The biggest "gotcha" I had to overcome with the Nextcloud plug-in is I found you need to configure its jail so it runs a vnet. If I just set up a static IP address and told it to use a specific network adapter, I found it wasn't actually getting out to the Internet properly. Also, I'm not 100% certain it was needed, but I enabled "raw sockets" support for it too. (These settings were also needed to get everything working properly in the Plex plug-in for IOCage jails. Without them, you could get Plex itself to communicate over the network but it wouldn't ever download cover art or movie descriptions.)
One problem I've had with it, that I haven't figured out a solution for yet, is that it seems to be configured to save its temporary "session" lock files under a "tmp" folder underneath /usr/local/www/nextcloud. As long as those are there, the auto-updater fails to do any pending updates for Nextcloud, complaining the "tmp" folder fails the file integrity check.
I'm so new to Nextcloud, I'm not sure if there's a place in it where you can configure where it puts these temp files? Or would this require recompiling the whole thing from source to make that change?
I installed the plug-in offered on 11.2RC1 and was successful in getting most of it working. I see that the majority of posts here about Nextcloud seem to suggest setting it up from scratch using one of the install scripts that's been created. I can definitely see the advantages of that, except as I found in the past when trying to do that with Plex on my FreeNAS, it tends to mess up the correlation of what your web UI says and what you're actually doing on the system. I'd rather not have a manually, command-line created IOCage jail running, for example, that the UI doesn't display as belonging to a specific application like Plex or Nextcloud (or may not even display at all).
Plus, I figure somebody went to all the effort to create the plug-in, so why not take advantage of all of their hard work?
The biggest "gotcha" I had to overcome with the Nextcloud plug-in is I found you need to configure its jail so it runs a vnet. If I just set up a static IP address and told it to use a specific network adapter, I found it wasn't actually getting out to the Internet properly. Also, I'm not 100% certain it was needed, but I enabled "raw sockets" support for it too. (These settings were also needed to get everything working properly in the Plex plug-in for IOCage jails. Without them, you could get Plex itself to communicate over the network but it wouldn't ever download cover art or movie descriptions.)
One problem I've had with it, that I haven't figured out a solution for yet, is that it seems to be configured to save its temporary "session" lock files under a "tmp" folder underneath /usr/local/www/nextcloud. As long as those are there, the auto-updater fails to do any pending updates for Nextcloud, complaining the "tmp" folder fails the file integrity check.
I'm so new to Nextcloud, I'm not sure if there's a place in it where you can configure where it puts these temp files? Or would this require recompiling the whole thing from source to make that change?