Upgrade Nextcloud issues

  • Hello everyone,

    I recently start to use Nextcloud on my OMV home NAS. On YT i found very useful instruction. Thank you TDL for this great tutorial. OMV version is 4.x. Nextcloud version is linuxserver/nextcloud:latest

    My question is related to the nextcloud and mariadb.
    Why version not changed after update nextcloud image and create new container from that new image?
    I use old configuration folder and data folder to preserve old configuration and data.
    When i logon to the web interface of nextcloud in section settings>overview i can see old version instead version from new image.

    I can do upgrade from web. After i do upgrade from web interface the version was change.
    Does i must always do all this steps?

    Also i noticed on the same page that i have suggestion to correct database : "missing some indexes" command: occ db:add-missing-indices and "columns in the database are missing" command : occ db:convert-filecache-bigint.
    In which container, nextcloud or mariadb, i must run this command ?

    Can i run it as it is stated on this page or must use another command which are available in those conatainers ?I hope someone will help me.
    Regards

    • Official Post

    Regarding missing indexes, in your Nextcloud web interface choose Apps from your admin pulldown, then choose Tools from the left menu and then install OCCWeb. It is an inside Nextcloud command line. Once installed open it from your top menu and run the following command:

    db:add-missing-indices

    That should fix it. Do the same thing for the big init issue: db:convert-filecache-bigint


    For your first problem I think you just need to go into your Docker plugin (unless you are using Portainer) and restart your Nextcloud container.

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!