[] Nextcloud xx.x.x - Sicherheitswarnungen - Probleme lösen - Shared-Hosting-Angebot

Die Datei .ocdata habe ich jetzt neu angelegt in:

/www/admin/data/

Die Fehlermeldung ist immer noch da:

Fehler

Dein Datenverzeichnis ist ungĂŒltig

Stelle sicher, dass eine Datei ".ocdata" im Wurzelverzeichnis des data-Verzeichnisses existiert.

Was nun?

https://help.nextcloud.com/search?q=Stelle%20sicher%2C%20dass%20eine%20Datei%20%22.ocdata%22%20im%20Wurzelverzeichnis

Die Lösungen kann ich nicht umsetzen.

Wie nun weiter?

Das Verzeichnis ist in der config.php auch als ‘datadirectory’ eingetragen?

Ich glaube ich war völlig falsch.

/www/nextcloud/data/

Da richtig?

Fehler scheint trotzdem noch:

Fehler

  • Ihr Datenverzeichnis ist ungĂŒltig.Stellen Sie sicher, dass eine Datei “.ocdata” im Wurzelverzeichnis des data-Verzeichnisses existiert.

Es kommt darauf an, was in der config.php steht. Ich habe hier keine Glaskugel, um Dir sagen zu können, ob das Verzeichnis richtig ist.

1 Like

Auszug config.php

 'datadirectory' => '/hp/cz/aa/bp/www/nextcloud/.htoskrf0qatscx.data',

Entweder passt du dann in der config.php den Pfad auf [
]nextcloud/data an oder du legst die .ocdata in das dort aktuell verwendete Verzeichnis.

In welchem Verzeichnis liegen denn deine Daten tatsÀchlich auf dem Server?

sftp://ftp123456789-123456789@webhosting81.1blu.de:22/hp/cz/aa/bp/www/nextcloud/data/

Auf ein Backup habe ich Zugriff.

Wie passe ich die Rechte der Datei “.ocdata” an?

Warum ist im Backup die Datei “.ocdata” nicht enhalten?
Das Backup wurde von 1blu automatisch erstellt.

Lösung, richtiger Pfad:

sftp://ftp123456789-123456789@webhosting81.1blu.de:22/hp/cz/aa/bp/www/nextcloud/.htoskrf0qatscx.data/

Im falschen Ordner hatte ich die “.ocdata” angelegt.

2 Likes

Hallo, beim Update auf 20.02 gibt es folgendes Problem:

Es gibt einige Warnungen zu Ihrer Systemkonfiguration.

In der Datenbank fehlen einige PrimĂ€rschlĂŒssel. Aufgrund der Tatsache, dass das HinzufĂŒgen von PrimĂ€rschlĂŒsseln bei großen Tabellen einige Zeit dauern konnte, wurden sie nicht automatisch hinzugefĂŒgt. Durch AusfĂŒhren von "occ db:add-missing-primary-keys" können diese fehlenden PrimĂ€rschlĂŒssel manuell hinzugefĂŒgt werden, wĂ€hrend die Instanz weiter lĂ€uft.
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "oc_federated_reshares".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "oc_systemtag_object_mapping".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "oc_comments_read_markers".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "oc_collres_resources".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "oc_collres_accesscache".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "oc_filecache_extended".

Wie löse ich das Problem?

Dann schaue ich mal hier:

Ich weiß nicht wie ich damit beim Shared-Hosting Angebot umgehe.

Wo gebe ich das ein: Register new command db:add-missing-primary-keys

Danke fĂŒr euere Hilfe vorab.

MfG
nc-kay

OCC Web

von Adphi AGPL-Lizenziert

OCCWEb aus dem Appstore ist keine Lösung.

Thu Nov 19 2020 12:13:50
Press Enter for more information on occ commands.
occ $ occ db:add-missing-primary-keys

Command “occ” is not defined.

Help occ web

cc $
Nextcloud 20.0.2
Usage:
command [options [arguments]
]Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
–ansi Force ANSI output
–no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
–no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
check check dependencies of the server environment
help Displays help for a command
list Lists commands
status show some status information
upgrade run upgrade routines after installation of a new release. The release has to be installed before.
activity
activity:send-mails Sends the activity notification mails
app
app:check-code check code to be compliant
app:disable disable an app
app:enable enable an app
app:getpath Get an absolute path to the app directory
app:install install an app
app:list List all available apps
app:remove remove an app
app:update update an app or all apps
background
background:ajax Use ajax to run background jobs
background:cron Use cron to run background jobs
background:webcron Use webcron to run background jobs
broadcast
broadcast:test test the SSE broadcaster
config
config:app:delete Delete an app config value
config:app:get Get an app config value
config:app:set Set an app config value
config:import Import a list of configs
config:list List all configs
config:system:delete Delete a system config value
config:system:get Get a system config value
config:system:set Set a system config value
dav
dav:create-addressbook Create a dav addressbook
dav:create-calendar Create a dav calendar
dav:list-calendars List all calendars of a user
dav:move-calendar Move a calendar from an user to another
dav:remove-invalid-shares Remove invalid dav shares
dav:send-event-reminders Sends event reminders
dav:sync-birthday-calendar Synchronizes the birthday calendar
dav:sync-system-addressbook Synchronizes users to the system addressbook
db
db:add-missing-columns Add missing optional columns to the database tables
db:add-missing-indices Add missing indices to the database tables
db:add-missing-primary-keys Add missing primary keys to the database tables
db:convert-filecache-bigint Convert the ID columns of the filecache to BigInt
db:convert-mysql-charset Convert charset of MySQL/MariaDB to use utf8mb4
db:convert-type Convert the Nextcloud database to the newly configured one
documentserver
documentserver:flush Flush all pending changes made to documents
documentserver:fonts Manage custom fonts
encryption
encryption:change-key-storage-root Change key storage root
encryption:decrypt-all Disable server-side encryption and decrypt all files
encryption:disable Disable encryption
encryption:enable Enable encryption
encryption:encrypt-all Encrypt all files for all users
encryption:list-modules List all available encryption modules
encryption:migrate-key-storage-format Migrate the format of the keystorage to a newer format
encryption:set-default-module Set the encryption default module
encryption:show-key-storage-root Show current key storage root
encryption:status Lists the current status of encryption
federation
federation:sync-addressbooks Synchronizes addressbooks of all federated clouds
files
files:cleanup cleanup filecache
files:recommendations:recommend
files:scan rescan filesystem
files:scan-app-data rescan the AppData folder
files:transfer-ownership All files and folders are moved to another user - shares are moved as well.
group
group:add Add a group
group:adduser add a user to a group
group:delete Remove a group
group:list list configured groups
group:removeuser remove a user from a group
integrity
integrity:check-app Check integrity of an app using a signature.
integrity:check-core Check integrity of core code using a signature.
integrity:sign-app Signs an app using a private key.
integrity:sign-core Sign core using a private key.
l10n
l10n:createjs Create javascript translation files for a given app
log
log:file manipulate logging backend
log:manage manage logging configuration
log:tail Tail the nextcloud logfile
log:watch Watch the nextcloud logfile
mail
mail:account:create creates IMAP account
mail:account:diagnose Diagnose a user’s IMAP connection
mail:account:export Exports a user’s IMAP account(s)
mail:account:export-threads Exports a user’s account threads
mail:account:sync Synchronize an IMAP account
mail:account:train Train the classifier of new messages
mail:clean-up clean up all orphaned data
mail:thread Build threads from the exported data of an account
maintenance
maintenance:data-fingerprint update the systems data-fingerprint after a backup is restored
maintenance:mimetype:update-db Update database mimetypes and update filecache
maintenance:mimetype:update-js Update mimetypelist.js
maintenance:mode set maintenance mode
maintenance:repair repair this installation
maintenance:theme:update Apply custom theme changes
maintenance:update:htaccess Updates the .htaccess file
migrations
migrations:execute Execute a single migration version manually.
migrations:generate
migrations:generate-from-schema
migrations:migrate Execute a migration to a specified version or the latest available version.
migrations:status View the status of a set of migrations.
notification
notification:generate Generate a notification for the given user
notification:test-push Generate a notification for the given user
onlyoffice
onlyoffice:documentserver Manage document server
preview
preview:repair distributes the existing previews into subfolders
security
security:bruteforce:reset resets bruteforce attemps for given IP address
security:certificates list trusted certificates
security:certificates:import import trusted certificate
security:certificates:remove remove trusted certificate
sharing
sharing:cleanup-remote-storages Cleanup shared storage entries that have no matching entry in the shares_external table
sharing:expiration-notification Notify share initiators when a share will expire the next day.
talk
talk:active-calls Allows you to check if calls are currently in process
talk:command:add Add a new command
talk:command:add-samples Adds some sample commands: /wiki, 

talk:command:delete Remove an existing command
talk:command:list List all available commands
talk:command:update Add a new command
talk:room:add Adds users to a room
talk:room:create Create a new room
talk:room:delete Deletes a room
talk:room:demote Demotes participants of a room to regular users
talk:room:promote Promotes participants of a room to moderators
talk:room:remove Remove users from a room
talk:room:update Updates a room
talk:signaling:add Add an external signaling server.
talk:signaling:delete Remove an existing signaling server.
talk:signaling:list List external signaling servers.
talk:stun:add Add a new STUN server.
talk:stun:delete Remove an existing STUN server.
talk:stun:list List STUN servers.
talk:turn:add Add a TURN server.
talk:turn:delete Remove an existing TURN server.
talk:turn:list List TURN servers.
text
text:reset Reset a text document
theming
theming:config Set theming app config values
trashbin
trashbin:cleanup Remove deleted files
trashbin:expire Expires the users trashbin
trashbin:size Configure the target trashbin size
twofactorauth
twofactorauth:cleanup Clean up the two-factor user-provider association of an uninstalled/removed provider
twofactorauth:disable Disable two-factor authentication for a user
twofactorauth:enable Enable two-factor authentication for a user
twofactorauth:enforce Enabled/disable enforced two-factor authentication
twofactorauth:state Get the two-factor authentication (2FA) state of a user
update
update:check Check for server and app updates
user
user:add adds a user
user:delete deletes the specified user
user:disable disables the specified user
user:enable enables the specified user
user:info show user info
user:lastseen shows when the user was logged in last time
user:list list configured users
user:report shows how many users have access
user:resetpassword Resets the password of the named user
user:setting Read and modify user settings
versions
versions:cleanup Delete versions
versions:expire Expires the users file versions
workflows
workflows:list Lists configured workflows
occ $

Wie löse ich das Problem?

Vermutliche Lösung: OCCWeb

occ $ db:add-missing-primary-keys

Check primary keys.

Adding primary key to the federated_reshares table, this can take some time


federated_reshares table updated successfully.

Adding primary key to the systemtag_object_mapping table, this can take some time


systemtag_object_mapping table updated successfully.

Adding primary key to the comments_read_markers table, this can take some time


comments_read_markers table updated successfully.

Adding primary key to the collres_resources table, this can take some time


collres_resources table updated successfully.

Adding primary key to the collres_accesscache table, this can take some time


collres_accesscache table updated successfully.

Adding primary key to the filecache_extended table, this can take some time


filecache_extended table updated successfully.

occ $

geil --------->

Sicherheits- & Einrichtungswarnungen

FĂŒr die Sicherheit und Geschwindigkeit Ihrer Installation ist es von großer Bedeutung, dass sie richtig konfiguriert ist. Um Ihnen hierbei zu helfen werden einige automatische Tests durchgefĂŒhrt. Weitere Informationen finden Sie in der verlinkten Dokumentation.

Alle ÜberprĂŒfungen bestanden.

MfG
nc-kay

Hallo Forum,

wie hÀtte ich das Problem mit einem ssh Zugang lösen können?

MfG
nc-kay

Es gibt einige Warnungen bei Deiner Systemkonfiguration.

Die PHP-Speichergrenze liegt unterhalb des empfohlenen Wertes von 512MB.

In der Datenbank fehlen einige PrimĂ€rschlĂŒssel. Aufgrund der Tatsache, dass das HinzufĂŒgen von PrimĂ€rschlĂŒsseln bei großen Tabellen einige Zeit dauern konnte, wurden sie nicht automatisch hinzugefĂŒgt. Durch AusfĂŒhren von "occ db:add-missing-primary-keys" können diese fehlenden PrimĂ€rschlĂŒssel manuell hinzugefĂŒgt werden, wĂ€hrend die Instanz weiter lĂ€uft.
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "rqln_federated_reshares".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "rqln_systemtag_object_mapping".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "rqln_comments_read_markers".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "rqln_collres_resources".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "rqln_collres_accesscache".
    Fehlender PrimĂ€rschlĂŒssel auf Tabelle "rqln_filecache_extended".

Heute nach dem Installatron Update, wie löse ich das das Problem mit ssh Zugang?

Lösung:
mit ssh auf den Server

Im Installationsverzeichnis von nextcloud ist eine aufĂŒhrbare occ Datei.

Du kannst die Befehler schon auch ĂŒber occweb ausfĂŒhren, dort musst du dann nur das occ weglassen. Also in diesem Fall nur db:add-missing-primary-keys

Hallo, wie löst man diese Probleme, wenn der Shared-Hoster nur einen ftp Zugang anbietet?

MfG
nc-kay

Entweder Du bittest den Support Deines Hosters die entsprechenden Kommandos auszufĂŒhren oder Du fĂŒhrst die DatenbankĂ€nderungen mittels direktem Datenbankzugriff aus (falls dies möglich ist) oder aber Du wechselst zu einem Hosting-Angebot welches einen SSH-Zugriff beinhaltet.

2 Likes

Wie ist das gemeint?
Was fĂŒr Möglichkeiten gibt es da?

Erst mal sollte man eigentlich “occ” nutzen können. Wenn nicht vielleicht “Web OCC”, welches aber seit einigen Versionen auch nicht mehr offiziell unterstĂŒtzt wird.

Falls man an den Datenbanken direkt Ă€ndern will, habe ich folgende EintrĂ€ge hier gefunden. Keine Ahnung was man dann damit machen muss. Vielleicht kennt jemand die DB-Befehle, die man dann aber auch wieder ĂŒber irgendein Web-DB-Tool ausfĂŒhren mĂŒssen (mysqladmin?).

Missing primary key on table “oc_federated_reshares”.
Missing primary key on table “oc_systemtag_object_mapping”.
Missing primary key on table “oc_comments_read_markers”.
Missing primary key on table “oc_collres_resources”.
Missing primary key on table “oc_collres_accesscache”.
Missing primary key on table “oc_filecache_extended”.
1 Like

Collabora Online scheint mit einem Shard-Hoster besser, erheblich schneller, zuverlÀssiger zu funktionieren.

Meine Apps:

  • Collabora Online 3.7.10 Offiziell :slightly_smiling_face:

  • Collabora Online - Built-in CODE Server 6.4.14 :slightly_smiling_face:

Von ONLYOFFICE werde ich mich gedanklich verabschieden, das nervt nur.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

14. Dezember 2020, 10 Tage vor Heiligabend

h ttps://help.nextcloud.com/t/update-nextcloud-19-0-2-19-0-3-wartungsmodus-problem-vserver/92088

Das Problem war heute nur mit occ zu lösen (ssh Verbindung)

Upgrade von Nextcloud 20.0.2 auf Nextcloud 20.0.3

Protokoll

Upgrade von Nextcloud 20.0.2 auf Nextcloud 20.0.3

/www/nextcloudkay$ ./occ upgrade
bash: ./occ: Keine Berechtigung
ftp307778-2746296@sh-82:~/www/nextcloudkay$ sudo ./occ upgrade
sudo: /usr/bin/sudo muss dem Benutzer mit UID 0 gehören und das »setuid«-Bit gesetzt haben
ftp307778-2746296@sh-82:~/www/nextcloudkay$ ls -la
insgesamt 168
drwxr-xr-x 14 ftp307778-2746296 users 4096 Dez 14 09:03 .
drwxr-xr-x 10 ftp307778-2746296 users 4096 Nov 23 12:49 

drwxr-xr-x 41 ftp307778-2746296 users 4096 Dez 14 09:03 3rdparty
drwxr-xr-x 55 ftp307778-2746296 users 4096 Dez 14 09:04 apps
-rw-r–r-- 1 ftp307778-2746296 users 17234 Dez 14 09:03 AUTHORS
drwxr-xr-x 2 ftp307778-2746296 users 4096 Dez 14 09:04 config
-rw-r–r-- 1 ftp307778-2746296 users 3893 Dez 14 09:03 console.php
-rw-r–r-- 1 ftp307778-2746296 users 34520 Dez 14 09:03 COPYING
drwxr-xr-x 22 ftp307778-2746296 users 4096 Dez 14 09:03 core
-rw-r–r-- 1 ftp307778-2746296 users 5083 Dez 14 09:03 cron.php
drwxrwx— 6 ftp307778-2746296 users 4096 Nov 23 07:31 data
-rw-r–r-- 1 ftp307778-2746296 users 3124 Dez 14 09:16 .htaccess
-rw-r–r-- 1 ftp307778-2746296 users 156 Dez 14 09:03 index.html
-rw-r–r-- 1 ftp307778-2746296 users 2960 Dez 14 09:03 index.php
drwxr-xr-x 6 ftp307778-2746296 users 4096 Dez 14 09:03 lib
-rw-r–r-- 1 ftp307778-2746296 users 283 Dez 14 09:03 occ
drwxr-xr-x 2 ftp307778-2746296 users 4096 Dez 14 09:03 ocm-provider
drwxr-xr-x 2 ftp307778-2746296 users 4096 Dez 14 09:03 ocs
drwxr-xr-x 2 ftp307778-2746296 users 4096 Dez 14 09:03 ocs-provider
-rw-r–r-- 1 ftp307778-2746296 users 3102 Dez 14 09:03 public.php
-rw-r–r-- 1 ftp307778-2746296 users 5332 Dez 14 09:03 remote.php
drwxr-xr-x 4 ftp307778-2746296 users 4096 Dez 14 09:03 resources
-rw-r–r-- 1 ftp307778-2746296 users 26 Dez 14 09:03 robots.txt
-rw-r–r-- 1 ftp307778-2746296 users 2379 Dez 14 09:03 status.php
drwxr-xr-x 3 ftp307778-2746296 users 4096 Dez 14 09:03 themes
drwxr-xr-x 2 ftp307778-2746296 users 4096 Dez 14 09:04 updater
-rw-r–r-- 1 ftp307778-2746296 users 101 Dez 14 09:03 .user.ini
-rw-r–r-- 1 ftp307778-2746296 users 362 Dez 14 09:03 version.php

ftp307778-2746296@sh-82:~/www/nextcloudkay$ chmod 750 occ

ftp307778-2746296@sh-82:~/www/nextcloudkay$ ./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
Setting log level to debug
Turned on maintenance mode
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 bruteforcesettings in appstore
Checked for update of app “bruteforcesettings” 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 contactsinteraction in appstore
Checked for update of app “contactsinteraction” in appstore
Checking for update of app dashboard in appstore
Checked for update of app “dashboard” 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_external in appstore
Checked for update of app “files_external” in appstore
Checking for update of app files_mindmap in appstore
Checked for update of app “files_mindmap” 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_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 mail in appstore
Checked for update of app “mail” 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 photos in appstore
Checked for update of app “photos” 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 richdocumentscode in appstore
Update app richdocumentscode from appstore
Checked for update of app “richdocumentscode” 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 spreed in appstore
Checked for update of app “spreed” 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 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 user_status in appstore
Checked for update of app “user_status” in appstore
Checking for update of app viewer in appstore
Checked for update of app “viewer” in appstore
Checking for update of app weather_status in appstore
Checked for update of app “weather_status” 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
Turned off maintenance mode
Resetting log level
ftp307778-2746296@sh-82:~/www/nextcloudkay$

#####################################################
Problem 2

Es gibt einige Warnungen zu Ihrer Systemkonfiguration.
Die PHP-Speichergrenze liegt unterhalb des empfohlenen Wertes von 512MB.

Gelöst wie immer, siehe Thread.

16. Dezember 2020
*wow
Hier geht das Schlag auf Schlag 20.0.3 —> 20.0.4

Fehlermeldungen:

## Sicherheits- & Einrichtungswarnungen

FĂŒr die Sicherheit und Geschwindigkeit Ihrer Installation ist es von großer Bedeutung, dass sie richtig konfiguriert ist. Um Ihnen hierbei zu helfen werden einige automatische Tests durchgefĂŒhrt. Weitere Informationen finden Sie in der verlinkten Dokumentation.

Es gibt einige Warnungen zu Ihrer Systemkonfiguration.

* In der Datenbank fehlen einige Indizes. Auf Grund der Tatsache, dass das HinzufĂŒgen von Indizes in großen Tabellen einige Zeit in Anspruch nehmen kann, wurden diese nicht automatisch erzeugt. Durch das AusfĂŒhren von "occ db:add-missing-indices" können die fehlenden Indizes manuell hinzugefĂŒgt werden, wĂ€hrend die Instanz weiter lĂ€uft. Nachdem die Indizes hinzugefĂŒgt wurden, sind Anfragen auf die Tabellen normalerweise schneller.
  * Fehlender Index "cards_abiduri" in der Tabelle "oc_cards".
* Bei einigen Spalten in der Datenbank fehlt eine Konvertierung in big int. Aufgrund der Tatsache, dass das Ändern von Spaltentypen bei großen Tabellen einige Zeit dauern kann, wurden sie nicht automatisch geĂ€ndert. Durch AusfĂŒhren von "occ db:convert-filecache-bigint" können diese ausstehenden Änderungen manuell ĂŒbernommen werden. Diese Operation muss ausgefĂŒhrt werden, wĂ€hrend die Instanz offline ist. Weitere Einzelheiten finden Sie auf [der zugehörigen Dokumentationsseite](https://docs.nextcloud.com/server/20/go.php?to=admin-bigint-conversion).
  * federated_reshares.share_id
  * share_external.id
  * share_external.parent

Wie löse ich das Problem?

occ db:add-missing-indices

Leider nicht:

occ db:add-missing-indices
bash: occ: Befehl nicht gefunden

aber so

./occ db:add-missing-indices

12 Stunden spÀter:

Hallo, wie lange dauert der Befehl?

12 Stunden und mehr?

Wie kann ich feststellen ober sich das System evtl. aufgehÀngt hat?

Jetzt ist es 15h.

Das System arbeitet immer noch, ist das ok so?

JJetzt bekomme ich immer noch diese Meldung:

Bei einigen Spalten in der Datenbank fehlt eine Konvertierung in big int. Aufgrund der Tatsache, dass das Ändern von Spaltentypen bei großen Tabellen einige Zeit dauern kann, wurden sie nicht automatisch geĂ€ndert. Durch AusfĂŒhren von “occ db:convert-filecache-bigint” können diese ausstehenden Änderungen manuell ĂŒbernommen werden. Diese Operation muss ausgefĂŒhrt werden, wĂ€hrend die Instanz offline ist. Weitere Einzelheiten finden Sie auf der zugehörigen Dokumentationsseite.

  • federated_reshares.share_id
  • share_external.id
  • share_external.parent

Was ist mit “wĂ€hrend die Instanz offline” gemeint?

Im Browser:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Und nun?
Es ist ein Shared-Host, mit ssh habe ich Zugriff.

Das Problem hast sich von alleine gelöst.

Immer diese Aufregung.

Es gibt einige Warnungen zu Ihrer Systemkonfiguration.

  • Bei einigen Spalten in der Datenbank fehlt eine Konvertierung in big int. Aufgrund der Tatsache, dass das Ändern von Spaltentypen bei großen Tabellen einige Zeit dauern kann, wurden sie nicht automatisch geĂ€ndert. Durch AusfĂŒhren von “occ db:convert-filecache-bigint” können diese ausstehenden Änderungen manuell ĂŒbernommen werden. Diese Operation muss ausgefĂŒhrt werden, wĂ€hrend die Instanz offline ist. Weitere Einzelheiten finden Sie auf der zugehörigen Dokumentationsseite.
    • federated_reshares.share_id
    • share_external.id
    • share_external.parent

Nur was mache ich damit?
Wie löse ich das Problem?

./occ db:convert-filecache-bigint

Wie sehe ich da den Fortschritt, bzw. ob es funktioniert?
Wie lange dauert das?

Maintanance mode war nicht eingestellt:

./occ maintenance:mode --on
Maintenance mode enabled
ftp306598-2747276@sh-82:~/www/nextcloud$ ./occ db:convert-filecache-bigint
Nextcloud is in maintenance mode - no apps have been loaded

Following columns will be updated:

* federated_reshares.share_id
* share_external.id
* share_external.parent

This can take up to hours, depending on the number of files in your instance!
Continue with the conversion (y/n)? [n] j
ftp306598-2747276@sh-82:~/www/nextcloud$ 

./occ maintenance:mode --on
Maintenance mode enabled
ftp306598-2747276@sh-82:~/www/nextcloud$ ./occ db:convert-filecache-bigint
Nextcloud is in maintenance mode - no apps have been loaded

Following columns will be updated:

* federated_reshares.share_id
* share_external.id
* share_external.parent

This can take up to hours, depending on the number of files in your instance!
Continue with the conversion (y/n)? [n] j
ftp306598-2747276@sh-82:~/www/nextcloud$ 


ftp306598-2747276@sh-82:~/www/nextcloud$ ./occ maintenance:mode --off
Maintenance mode disabled

Das Problem bleibt bestehen.

Neuer Versuch “j” durch “y” bei BestĂ€tigung ersetzt.

Dann wieder im Browser:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Etwas gewartet, Problem von alleine gelöst.

Jetzt werden keine Probleme mehr angezeigt.

Irgendwie ist so ein Update immer aufregend, bin fast genervt.

Bin jetzt bei Nextcloud 20.0.4 meine eigen installierte Version.

Installatron ist noch beim Nextcloud Release 20.0.3.

  1. Dez. 2020
    Hallo Forum,
    wie kann ich bei einem Update verhinden, dass die .htaccess und .user.ini verÀndert wird?

Wie handhabt Ihr das mit diesen Änderungen?

h ttps://www.ionos.de/digitalguide/hosting/hosting-technik/htaccess-tricks/

```
# Aktiviere HTTPS
    RewriteEngine On
RewriteCond %{Server_Port} !=443
RewriteRule ^(.*)$ https://ihredomain.tld/$1 [R=301, L]
```

MfG
nc-kay