User Tools

Site Tools


software:owncloud

OwnCloud / NextCloud

Clients

Linux

  • Config directory: /home/${USER}/.local/share/data/ownCloud/

iOS

Change the default upload folder

  • Select the destination folder
  • swipe left
  • click more
  • choose Folder for Automatic upload

HowTo

Remove unwanted Nextcloud advertising

Assuming that your webserver runs with www-data user

cd <YOUR_WWW_ROOT>
sudo -u www-data php  nextcloud/occ config:system:set --type=bool --value=false simpleSignUpLink.shown

Manual upgrade with shell access

Assuming that your webserver runs with www-data user

Preferred way

sudo -u www-data php <YOUR_WWW_ROOT>/nextcloud/updater/updater.phar

Alternative way

cd <YOUR_WWW_ROOT>
sudo -u www-data php  owncloud/occ maintenance:mode --on
sudo -u www-data mv   owncloud owncloud-old
sudo -u www-data wget "https://download.owncloud.org/community/owncloud-latest.tar.bz2"
sudo -u www-data tar  xjf owncloud-latest.tar.bz2
sudo -u www-data cp   owncloud-old/config/config.php owncloud/config/config.php
sudo -u www-data mv   owncloud-old/data owncloud/data
sudo -u www-data php  owncloud/occ upgrade
sudo -u www-data php  owncloud/occ maintenance:mode --off
sudo -u www-data rm   owncloud-latest.tar.bz2
sudo -u www-data rm   -Rf owncloud-old

if needed, restore your applications and/or themes.

Recover a failed upgrade

  1. Add a suffix to your existing owncloud folder or move it away
  2. Upload to your server latest owncloud version
  3. Move back “data” and “config” folders from previous installation to the newest just uploaded

NOTE: This is not supported by ownCloud team and can result in unexpected behaviors (including data loss and the end of the world)

Official way (since Nextcloud 21.0.0)

  • Add
    'localstorage.allowsymlinks' => true,

    to the config file located in nextcloudcloud/config/config.php

Alternative #1 (pre Nextcloud 21.0.0)

  1. Open owncloud/lib/private/Files/Storage/Local.php
  2. Change the variable $allowSymlinks from false to true

Alternative #2 (pre Nextcloud 21.0.0)

  1. Look for the row containing “Following symlinks is not allowed” (in 10.0.1 version is located at row 373) and replace the row with: “return $fullPath;”

If using any of the two alternative ways, you probably want to disable the integrity check in owncloud/config/config.php adding:

'integrity.check.disabled' => true,

Issues

checksum wrong errors using the desktop client

Remove all the checksums:

UPDATE oc_filecache
SET checksum = ''
WHERE COALESCE (checksum, ‘’) <> ‘’
software/owncloud.txt · Last modified: 2021/03/01 23:07 by Michele Porelli