Skip to content

Nextcloud

CLI

Status

sudo -u www-data /usr/bin/php8.2 occ status

Fix Missing indices

sudo -u www-data /usr/bin/php8.2 occ db:add-missing-indices

Maintenance windows

sudo -u www-data /usr/bin/php8.2 occ config:system:set maintenance_window_start --type=integer --value=1

Logs

in DataPath

updater.log
nextcloud.log

Move server to other host

  1. Install Nextcloud on the new server
  2. Set the old and new server to maintenance mode
  3. Dump the database on the old
  4. Copy the complete data directory to the new server
  5. Restore the database on the new server
  6. Edit the config.php on the new server. I think you have to copy passwordsalt a d secret from the old to the new server.
  7. Change the DNS record to point at your new server.
  8. Turn off maintenance mode on the new server.

Cron task don't work

Check in /etc/php/8.3/mods-available/apcu.ini

extension=apcu.so
apc.enable_cli=1