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

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