Dear fellow Nextcloud and NCP users,
I was just testing the installation of Debian stretch stable for amd64 in a virtual machine. I used the text install in Debian and decided for a btrfs root partition (snapshots, cow, etc.). The debian installer automatically installed a separate swap partition.(As I know now, because btrfs does not support swapfiles.)
Then I used the curl
command as described in NextCloudPi for amd64 to install NCP. After a few hickups (doing dist-upgrade and disabling the DVD as apt source) I managed to successfully install NCP!
At this point a heartily Thank You to Nachoparker for all his great work, which allows us beginners to achieve impressive results without falling in all the pitholes which are on the way.
I happily started the web interface and activated Nextcloud. Then I started the NCP Web Panel, logged in - and it got stuck at collecting the system info data showing the loading circle! The same happened after the login to the Nextcloud web page: it successfully loaded the first page with the standard documents. But switching to another page it got stuck at the loading circle.
When I looked at my SSH session I noticed the error message swapon: swapfile has holes
. This is when I learned, that btrfs does not support swapfiles!
I knew that NCP setup installs a swapfile. I wanted to switch from this swapfile to the swap partition already set up: So I switched off the swapfile, and removed dphys-swapfile with sudo apt-get purge dphys-swapfile
. Then I activated the swap partition with sudo swapon /dev/sda5
and verified, that it is working correctly.
After a reboot I opened the Nextcloud web page again and - voilá - everything is working fine. I can navigate and operate Nextcloud via the web interface.
But starting the NCP Web Panel continues to fail: it still gets stuck at collecting the system info.
I suspect, that the NCP Web Panel is blocked by the fact, that a swapfile is not available anymore. How can I get the NCP Web Panel to work with a swap partition instead of a swapfile? Or at least, that it is ignoring the missing swapfile?
Any help is highly appreciated.