Dobrý deň,
chcem sa poradiť. Mám Ubuntu server 20.04 s inštaláciou Nextcloud cez snap.
Pri aktualizácii z verzie 20.0.1 -> na 20.0.2 mi na stránke s bezpečnostnými informáciami vypísalo toto chybové hlásenie.
The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running "occ db:add-missing-primary-keys" those missing primary keys could be added manually while the instance keeps running.
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".
Mám to nainštalované takto
tony@nxtc:/var/snap/nextcloud$ ll
total 20
drwxr-xr-x 5 root root 4096 Dec 2 05:05 ./
drwxr-xr-x 6 root root 4096 Nov 11 07:33 ../
drwxr-xr-x 8 root root 4096 Nov 12 00:00 24051/
drwxr-xr-x 8 root root 4096 Nov 12 00:00 24739/
drwxr-xr-x 3 root root 4096 Nov 11 07:34 common/
lrwxrwxrwx 1 root root 5 Dec 2 05:05 current -> 24739/
tony@nxtc:/var/snap/nextcloud$
Našiel som nejaký pokus o riešenie ktorý sa ale týkal inštalácie štandardnej, nie ako snap, ktoré mi nefungovovalo.
tony@nxtc:/var/snap/nextcloud$ sudo -u www-data php occ db:add-missing-primary-keys
sudo: php: command not found
Chcem preto požiadať o radu, ako toto vyriešiť.
Ďakujem za odpoveď.