Skip to content

Nextcloud App

Installing Nextcloud client on Ubuntu

Nextcloud does not have it's own desktop client. The ownCloud client is compatible with Nextcloud.

The ownCloud client on Ubuntu is outdated. The client will display an error:

Error downloading https://SERVERNAME/owncloud/remote.php/webdav/ - server replied: Forbidden (Unsupported client version.)".

To resolve the problem, install the ownCloud client by following the instructions here:

sudo wget -nv -O Release.key
sudo apt-key add - < Release.key
sudo sh -c "echo 'deb /' > /etc/apt/sources.list.d/owncloud.list"
sudo apt-get update
sudo apt-get install owncloud-client


As of this writing, the ownCloud website links to the opensuse website for installing the owncloud client. The packages in the opensuse website do not work. See the forum and GitHub issue for more information.

Running occ tool

The occ tool can be used for NextCloud administrative tasks.

The occ command can be run using the Web terminal. For example, to list the users:

    sudo -u www-data php -f /app/code/occ user:list

Resetting admin password

To reset the admin password, run the following occ command using the Web terminal:

    sudo -u www-data php -f /app/code/occ user:resetpassword admin

Managing deleted files

When you delete a file in Nextcloud, it is not immediately deleted permanently. Instead, it is moved into the trash bin. It is not permanently deleted until you manually delete it, or when the Deleted Files app deletes it to make room for new files.

To configure, how items are permanently deleted, configure the trashbin_retention_obligation parameter.

The parameter can be edited using the Web terminal and editing the file /app/data/config/config.php.

Attaching external storage

Many VPS providers like Digital Ocean, Linode allow attaching external block storage to the server. NextCloud has a feature that allows mounting additional directories on the server as external storage.

Mounting an existing server directory as 'external storage' on NextCloud is currently not supported.

If the intent is to simply increase the amount of storage available to NextCloud (since you have run out of disk space in the default data partition), there are two options:

  • Configure NextCloud to use an external object storage like Digital Ocean Spaces, AWS S3 etc.

  • Configure Cloudron to store all of NextCloud's data in the external block storage. To achieve this, follow the guide for moving a single app's data directory to another location.

Moving NextCloud's directory entirely has the advantage that the iOS/Android app's Instant Upload feature uses this new disk.