StuRa:Server/Nextcloud

Aus Wiki StuRa HTW Dresden
Wechseln zu: Navigation, Suche

TurnKey

TurnKey 16

https://releases.turnkeylinux.org/turnkey-nextcloud/16.0-buster-amd64/

TurnKey 16 Installation

TurnKey 15

TurnKey 15 Installation

https://releases.turnkeylinux.org/turnkey-nextcloud/15.2-stretch-amd64/

TurnKey 15 Installation Vorbereitung
TurnKey 15 Installation Durchführung
TurnKey 15 Installation Nachbereitung
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Nextcloud is already latest version

https://nextcloud.stura.htw-dresden.de/updater/

Initializing
Current version is 16.0.1.
Update to Nextcloud 16.0.10 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-16.0.10.zip
Open changelog ↗
Check for expected files

Check for write permissions
The following places can not be written to:

    /var/www/nextcloud/updater/../console.php
    /var/www/nextcloud/updater/../occ
    /var/www/nextcloud/updater/../robots.txt
    /var/www/nextcloud/updater/../remote.php
    /var/www/nextcloud/updater/../version.php
    /var/www/nextcloud/updater/../status.php
    /var/www/nextcloud/updater/../.user.ini
    /var/www/nextcloud/updater/../.htaccess
    /var/www/nextcloud/updater/../index.php
    /var/www/nextcloud/updater/../public.php
    /var/www/nextcloud/updater/../COPYING
    /var/www/nextcloud/updater/../index.html
    /var/www/nextcloud/updater/../AUTHORS
    /var/www/nextcloud/updater/../cron.php



ls -al /var/www/nextcloud
total 164
drwxr-sr-x 15 root     root      4096 Jun  7  2019 .
drwxr-xr-x  4 root     root      4096 May  4 05:13 ..
-rw-r--r--  1 root     root      2478 Jun  7  2019 .htaccess
-rw-r--r--  1 root     root       101 May 15  2019 .user.ini
drwxr-sr-x 32 root     root      4096 May 15  2019 3rdparty
-rw-r--r--  1 root     root     12063 May 15  2019 AUTHORS
-rw-r--r--  1 root     root     34520 May 15  2019 COPYING
drwxr-sr-x 42 www-data www-data  4096 May 15  2019 apps
drwxr-sr-x  2 www-data www-data  4096 May  4 05:12 config
-rw-r--r--  1 root     root      3805 May 15  2019 console.php
drwxr-sr-x 23 root     root      4096 May 15  2019 core
-rw-r--r--  1 root     root      4986 May 15  2019 cron.php
drwxrwx---  6 www-data www-data  4096 May  4 05:59 data
-rw-r--r--  1 root     root       156 May 15  2019 index.html
-rw-r--r--  1 root     root      3172 May 15  2019 index.php
drwxr-sr-x  6 root     root      4096 May 15  2019 lib
-rw-r--r--  1 root     root       283 May 15  2019 occ
drwxr-sr-x  2 root     root      4096 May 15  2019 ocm-provider
drwxr-sr-x  2 root     root      4096 May 15  2019 ocs
drwxr-sr-x  2 root     root      4096 May 15  2019 ocs-provider
-rw-r--r--  1 root     root      2951 May 15  2019 public.php
-rw-r--r--  1 root     root      5139 May 15  2019 remote.php
drwxr-sr-x  4 root     root      4096 May 15  2019 resources
-rw-r--r--  1 root     root        26 May 15  2019 robots.txt
drwxr-sr-x 12 root     root      4096 May 15  2019 settings
-rw-r--r--  1 root     root      2232 May 15  2019 status.php
drwxr-sr-x  3 root     root      4096 May 15  2019 themes
drwxr-sr-x  2 root     root      4096 May 15  2019 updater
-rw-r--r--  1 root     root       362 May 15  2019 version.php
ls -al /var/www/nextcloud/updater/
total 660
drwxr-sr-x  2 root root   4096 May 15  2019 .
drwxr-sr-x 15 root root   4096 Jun  7  2019 ..
-rw-r--r--  1 root root  63216 May 15  2019 index.php
-rw-r--r--  1 root root 599747 May 15  2019 updater.phar

https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions

chown -R www-data:www-data /var/www/nextcloud

TurnKey Aktualisierung

su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'
Following columns will be updated:

* mounts.storage_id
* mounts.root_id
* mounts.mount_id

This can take up to hours, depending on the number of files in your instance!
Continue with the conversion (y/n)? [n] y
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'
All tables already up to date!

su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Updating database schema
Updated database
Checking for update of app accessibility in appstore
Checked for update of app "accessibility" in appstore 
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore 
Checking for update of app cloud_federation_api in appstore
Checked for update of app "cloud_federation_api" in appstore 
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore 
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore 
Checking for update of app federatedfilesharing in appstore
Checked for update of app "federatedfilesharing" in appstore 
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore 
Checking for update of app files in appstore
Checked for update of app "files" in appstore 
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore 
Checking for update of app files_rightclick in appstore
Checked for update of app "files_rightclick" in appstore 
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore 
Checking for update of app files_texteditor in appstore
Checked for update of app "files_texteditor" in appstore 
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore 
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore 
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in appstore 
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore 
Checking for update of app logreader in appstore
Checked for update of app "logreader" in appstore 
Checking for update of app lookup_server_connector in appstore
Checked for update of app "lookup_server_connector" in appstore 
Checking for update of app metadata in appstore
Checked for update of app "metadata" in appstore 
Checking for update of app nextbackup in appstore
Checked for update of app "nextbackup" in appstore 
Checking for update of app nextcloud_announcements in appstore
Checked for update of app "nextcloud_announcements" in appstore 
Checking for update of app notifications in appstore
Checked for update of app "notifications" in appstore 
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in appstore 
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in appstore 
Checking for update of app privacy in appstore
Checked for update of app "privacy" in appstore 
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in appstore 
Checking for update of app recommendations in appstore
Checked for update of app "recommendations" in appstore 
Checking for update of app richdocuments in appstore
Checked for update of app "richdocuments" in appstore 
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in appstore 
Checking for update of app settings in appstore
Checked for update of app "settings" in appstore 
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in appstore 
Checking for update of app support in appstore
Checked for update of app "support" in appstore 
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in appstore 
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in appstore 
Checking for update of app text in appstore
Checked for update of app "text" in appstore 
Checking for update of app theming in appstore
Checked for update of app "theming" in appstore 
Checking for update of app twofactor_backupcodes in appstore
Checked for update of app "twofactor_backupcodes" in appstore 
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in appstore 
Checking for update of app viewer in appstore
Checked for update of app "viewer" in appstore 
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore 
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Reset log level
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ maintenance:mode --off'
Maintenance mode disabled
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ maintenance:mode --off'
Maintenance mode already disabled

su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:add-missing-indices'
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Adding calendarobject_calid_index index to the calendarobjects_props table, this can take some time...
calendarobjects_props table updated successfully.
Check indices of the schedulingobjects table.
Adding schedulobj_principuri_index index to the schedulingobjects table, this can take some time...
schedulingobjects table updated successfully.
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ --version'
Nextcloud 18.0.4

Updater

    Initializing
    Current version is 18.0.4.
    Update to Nextcloud 18.0.7 available. (channel: "stable")
    Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.7.zip
    Open changelog ↗
    Check for expected files
    Check for write permissions
    Create backup
    Downloading
    Verifying integrity
    Extracting
    Enable maintenance mode
    Replace entry points
    Delete old files
    Move new files in place
    Keep maintenance mode active?
    Maintenance mode will get disabled.
    Done
    Go back to your Nextcloud instance to finish the update
Nextcloud
Update to 18.0.7
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ --version'
Nextcloud 18.0.7

https:///index.php/settings/admin/overview#

Version

Nextcloud 18.0.7

A new version is available: Nextcloud 18.0.10
All apps have an update for this version available
Apps with available updates
Open updater Download now
Update channel: Stable
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Nextcloud is already latest version
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ --version'
Nextcloud 18.0.7
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ update:check'
Nextcloud 18.0.10 is available. Get more information on how to update at https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html.
Update for appointments to version 1.7.7 is available.
Update for calendar to version 2.0.4 is available.
Update for contacts to version 3.4.0 is available.
Update for deck to version 1.1.0 is available.
Update for documentserver_community to version 0.1.8 is available.
Update for files_antivirus to version 3.0.0 is available.
Update for files_texteditor to version 2.14.0 is available.
Update for forms to version 2.0.4 is available.
Update for news to version 14.2.2 is available.
Update for ownpad to version 0.6.15 is available.
Update for polls to version 1.5.4 is available.
Update for spreed to version 8.0.11 is available.
13 updates available

Aktualisierung per GUI

https:///updater/

Initializing
Current version is 18.0.7.
Update to Nextcloud 18.0.10 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.10.zip
Open changelog ↗
Check for expected files
Check for write permissions
Create backup
Downloading
Verifying integrity
Extracting
Enable maintenance mode
Replace entry points
Delete old files
Move new files in place
Keep maintenance mode active?
Done
Start update


su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'

] 0%

Updated <dav> to 1.15.0 Updating <files_sharing> ... Updated <files_sharing> to 1.11.0 Updating <files_trashbin> ... Updated <files_trashbin> to 1.9.0 Updating <files_versions> ... Updated <files_versions> to 1.12.0 Updating <sharebymail> ... Updated <sharebymail> to 1.9.0 Updating <workflowengine> ... Updated <workflowengine> to 2.1.0 Updating <comments> ... Updated <comments> to 1.9.0 Updating <firstrunwizard> ... Updated <firstrunwizard> to 2.8.0 Updating <nextcloud_announcements> ... Updated <nextcloud_announcements> to 1.8.0 Updating <notifications> ... Updated <notifications> to 2.7.0 Updating <systemtags> ... Updated <systemtags> to 1.9.0 Updating <theming> ... Updated <theming> to 1.10.0 Checking for update of app accessibility in appstore Checked for update of app "accessibility" in appstore Checking for update of app activity in appstore Checked for update of app "activity" in appstore Checking for update of app appointments in appstore Checked for update of app "appointments" in appstore Checking for update of app calendar in appstore Checked for update of app "calendar" in appstore Checking for update of app cloud_federation_api in appstore Checked for update of app "cloud_federation_api" in appstore Checking for update of app comments in appstore Checked for update of app "comments" in appstore Checking for update of app contacts in appstore Checked for update of app "contacts" in appstore Checking for update of app cospend in appstore Checked for update of app "cospend" in appstore Checking for update of app dav in appstore Checked for update of app "dav" in appstore Checking for update of app deck in appstore Checked for update of app "deck" in appstore Checking for update of app documentserver_community in appstore Checked for update of app "documentserver_community" in appstore Checking for update of app drop_account in appstore Checked for update of app "drop_account" in appstore Checking for update of app event_update_notification in appstore Checked for update of app "event_update_notification" in appstore Checking for update of app federatedfilesharing in appstore Checked for update of app "federatedfilesharing" in appstore Checking for update of app federation in appstore Checked for update of app "federation" in appstore Checking for update of app files in appstore Checked for update of app "files" in appstore Checking for update of app files_antivirus in appstore Checked for update of app "files_antivirus" in appstore Checking for update of app files_pdfviewer in appstore Checked for update of app "files_pdfviewer" in appstore Checking for update of app files_rightclick in appstore Checked for update of app "files_rightclick" in appstore Checking for update of app files_sharing in appstore Checked for update of app "files_sharing" in appstore Checking for update of app files_texteditor in appstore Checked for update of app "files_texteditor" in appstore Checking for update of app files_trashbin in appstore Checked for update of app "files_trashbin" in appstore Checking for update of app files_versions in appstore Checked for update of app "files_versions" in appstore Checking for update of app files_videoplayer in appstore Checked for update of app "files_videoplayer" in appstore Checking for update of app firstrunwizard in appstore Checked for update of app "firstrunwizard" in appstore Checking for update of app forms in appstore Checked for update of app "forms" in appstore Checking for update of app logreader in appstore Checked for update of app "logreader" in appstore Checking for update of app lookup_server_connector in appstore Checked for update of app "lookup_server_connector" in appstore Checking for update of app news in appstore Checked for update of app "news" in appstore Checking for update of app nextcloud_announcements in appstore Checked for update of app "nextcloud_announcements" in appstore Checking for update of app notifications in appstore Checked for update of app "notifications" in appstore Checking for update of app oauth2 in appstore Checked for update of app "oauth2" in appstore Checking for update of app ownpad in appstore Checked for update of app "ownpad" in appstore Checking for update of app password_policy in appstore Checked for update of app "password_policy" in appstore Checking for update of app photos in appstore Checked for update of app "photos" in appstore Checking for update of app polls in appstore Checked for update of app "polls" in appstore Checking for update of app privacy in appstore Checked for update of app "privacy" in appstore Checking for update of app provisioning_api in appstore Checked for update of app "provisioning_api" in appstore Checking for update of app recommendations in appstore Checked for update of app "recommendations" in appstore Checking for update of app serverinfo in appstore Checked for update of app "serverinfo" in appstore Checking for update of app settings in appstore Checked for update of app "settings" in appstore Checking for update of app sharebymail in appstore Checked for update of app "sharebymail" in appstore Checking for update of app support in appstore Checked for update of app "support" in appstore Checking for update of app survey_client in appstore Checked for update of app "survey_client" in appstore Checking for update of app systemtags in appstore Checked for update of app "systemtags" in appstore Checking for update of app tasks in appstore Checked for update of app "tasks" in appstore Checking for update of app text in appstore Checked for update of app "text" in appstore Checking for update of app theming in appstore Checked for update of app "theming" in appstore Checking for update of app twofactor_backupcodes in appstore Checked for update of app "twofactor_backupcodes" in appstore Checking for update of app updatenotification in appstore Checked for update of app "updatenotification" in appstore Checking for update of app viewer in appstore Checked for update of app "viewer" in appstore Checking for update of app weather in appstore Checked for update of app "weather" in appstore Checking for update of app workflowengine in appstore Checked for update of app "workflowengine" in appstore Checking for update of app external in appstore Update app external from appstore Checked for update of app "external" in appstore Checking for update of app impersonate in appstore Update app impersonate from appstore Checked for update of app "impersonate" in appstore Checking for update of app spreed in appstore Update app spreed from appstore Checked for update of app "spreed" in appstore Starting code integrity check... Finished code integrity check Update successful Turned off maintenance mode Reset log level </pre> !-->

 Security & setup warnings

It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.
There are some warnings regarding your setup.

    You are currently running PHP 7.2.32-1+0~20200710.46+debian9~1.gbp625eb5. Upgrade your PHP version to take advantage of performance and security updates provided by the PHP Group as soon as your distribution supports it.
    Nextcloud 20 is the last release supporting PHP 7.2. Nextcloud 21 requires at least PHP 7.3.
    The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.
        Missing index "properties_path_index" in table "oc_properties".
    The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running "occ db:add-missing-columns" those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability.
        Missing optional column "reference_id" in table "oc_comments".
    This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.
        bcmath

Please double check the installation guides ↗, and check for any errors or warnings in the log.

Check the security of your Nextcloud over our security scan ↗.
apt update && apt -y upgrade
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:add-missing-indices'
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Adding properties_path_index index to the oc_properties table, this can take some time...
oc_properties table updated successfully.
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:add-missing-columns'
Check columns of the comments table.
Adding additional reference_id column to the comments table, this can take some time...
Comments table updated successfully.
apt -y install php7.2-bcmath

TurnKey 15 Konfiguration

#Konfiguration

less /var/www/nextcloud/config/config.php
less /var/www/nextcloud/config/config.sample.php

TurnKey 15 Erweiterungen

TurnKey 15 Erweiterung OnlyOffice

works for me ootb (Nextcloud 18.0.4)

FreeBSD

Aktualisierung

Durchführung Aktualisierung

su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'

Fehler durch die Aktualisierung


https://nextcloud.stura.htw-dresden.de/index.php/settings/admin/overview

Abschnitt Security & setup warnings

https://nextcloud.stura.htw-dresden.de/index.php/settings/admin/logging

Anzeige Level Fatal
Anzeige Level Error

Konfiguration

Siehe auch