Koozali.org: home of the SME Server

Nextcloud support

Offline BossHog

  • **
  • 27
  • +0/-0
Nextcloud support
« on: June 09, 2026, 12:49:34 PM »
Howdy,
in regards to opening discussion on contribs, what can we do to help get the Nextcloud  up to date?

At the moment we are 5 vesions outdated, current contribs is 29 as of today NC is at 34.
How can I help devs move forward?

Joe

Offline Jean-Philippe Pialasse

  • *
  • 3,008
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud support
« Reply #1 on: June 10, 2026, 03:36:08 AM »
install then upgrade using the web interface. 

our rpm does not upgade existing install.

nc 29 has been chosen as the last one supported by sme10 to ease migration. 

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #2 on: June 13, 2026, 01:24:00 AM »
Howdy,
I will try to go through each of the updates and post any warnings.
NC Web Updater does NOT appear to allow skipping major version updates; that is 29 must go 30 then 31 etc. etc.
My process will follow what the Web Updater is suggesting.

Start update v29 to v30:
During my attempt the download timed out, but after reinitializing the update it passed it self tests and continued.
The update completed and left me with the following warnings:

Quote
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.

    1). One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.

    2). You are currently running PHP 8.1.34. PHP 8.1 is deprecated since Nextcloud 30. Nextcloud 32 may require at least PHP 8.2. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible. For more details see the documentation11.

    3). Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them. Missing indices: "fs_name_hash" in table "filecache", "unique_category_per_user" in table "vcategory", "cards_prop_abid_name_value" in table "cards_properties" For more details see the documentation.

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.

The commands that are in blue were run from the Nextcloud install directory on my SME Server.
All of the commands completed successfully.
The PHP version warning went away after reconfigure and reboot of server.

Joe

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #3 on: June 13, 2026, 01:32:00 AM »
Howdy,
continuing with my Nextcloud update experience.

I will try to go through each of the updates and post any warnings.
NC Web Updater does NOT appear to allow skipping major version updates; that is 30 must go 31 etc. etc.
My process will follow what the Web Updater is suggesting.

Start update v30 to v31:
During my attempt the download timed out(same as previous update posted above), but after reinitializing the update it passed it self tests and continued.
The update completed and left me with the following warnings:

Quote
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.

    1). One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.

    2). Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them. Missing indices: "systag_objecttype" in table "systemtag_object_mapping" For more details see the documentation.

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.

The commands that are in blue were run from the Nextcloud install directory on my SME Server.
All of the commands completed successfully.
This update did not complain about PHP version.
However, I did reconfigue and reboot my server. So far my testing has not shown any issues, YMMV.

Joe

Offline Jean-Philippe Pialasse

  • *
  • 3,008
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud support
« Reply #4 on: June 13, 2026, 03:02:35 AM »
you have an occ command in path.  you can run it from anywhere

you do not need to reconfigure and reboot your server.  this is a webapp, not a kernel.  Do you reboot your server for changing a html page ?


if it start complaining about php you just need :
signal-event smeserver-nextcloud-update. 

also : most of those occ command about indice will be cleared by night :
Code: [Select]
19    2  *  *  * root /usr/bin/nc_dbupdate > /dev/null 2>&1
content of nc_dbupdate
Code: [Select]

#!/bin/bash

/usr/bin/occ  db:add-missing-indices
/usr/bin/occ  db:add-missing-primary-keys
/usr/bin/occ  db:convert-filecache-bigint
/usr/bin/occ  maintenance:repair --include-expensive

« Last Edit: June 13, 2026, 03:29:53 PM by Jean-Philippe Pialasse »

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #5 on: June 14, 2026, 03:43:17 PM »
Howdy,
thanks for clearing that up JP;
Quote
you have an occ command in path.  you can run it from anywhere

you do not need to reconfigure and reboot your server.  this is a webapp, not a kernel
and
Quote
if it start complaining about php you just need :
signal-event smeserver-nextcloud-update. 
The nc_dbupdate is nice to know;
Quote
also : most of those occ command about indice will be cleared by night :
Noted!
Joe

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #6 on: June 14, 2026, 03:58:37 PM »
Howdy,
carrying on with the updates for Nextcloud.
Also, please take note of Reply #4 of this thread, JP shared some helpful info that saves unneeded commands or reboots.

I will try to go through each of the updates and post any warnings.
NC Web Updater does NOT appear to allow skipping major version updates; that is 31 must go 32 etc. etc.
My process will follow what the Web Updater is suggesting.

Start update v31 to v32:
The update completed and left me with the following warnings:

Quote
Security & setup warnings

It is 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.

1). Mimetype migrations available. One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.

2). Database missing indices. Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them. Missing indices: "properties_name_path_user" in table "properties", "calobjects_by_uid_index" in table "calendarobjects", "activity_object_user" in table "activity"

3). AppAPI deploy daemon. AppAPI default deploy daemon is not set. Please register a default deploy daemon in the settings to install External Apps (Ex-Apps).

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.
As noted by JP, the occ commands highlighted in blue will be run by the SME Server automatically.
The AppAPI error was not relavent for my server as I do not use external apps, YMMV
Joe

Offline Jean-Philippe Pialasse

  • *
  • 3,008
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Nextcloud support
« Reply #7 on: June 14, 2026, 08:39:44 PM »
indeed NC only allow one major release upgrade at a time. 


i have one more secret to share, cli upgrade.
https://wiki.koozali.org/Nextcloud#CLI_upgrade_of_Nextcloud_software

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #8 on: June 16, 2026, 02:50:03 AM »
Howdy,
thank you again JP for sharing info,
Quote
i have one more secret to share, cli upgrade.
https://wiki.koozali.org/Nextcloud#CLI_upgrade_of_Nextcloud_software
Nice to have options
Joe

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #9 on: June 16, 2026, 03:02:54 AM »
Howdy,
continuing with my Nextcloud update experience.

NC Web Updater does NOT appear to allow skipping major version updates; that is 32 must go 33 etc. etc.
My process will follow what the Web Updater is suggesting.

Start update v32 to v33:
The update completed and left me with the following warnings:
Quote
Security & setup warnings

It is 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.

1). Mimetype migrations available
One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.

2). Database missing indices
Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them. Missing indices: "share_with_file_target_index" in table "share", "user_mountpoint_index" in table "share_external", "mounts_user_path_root_index" in table "mounts"

3). Configuration server ID
Server identifier isn’t configured. It is recommended if your Nextcloud instance is running on several PHP servers. Add a server ID in your configuration.

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.
As noted by JP in Reply #4, the occ commands highlighted in blue will be run by the SME Server automatically.
For my needs the Server ID was ignored, as my SME Server is running only 1 instance of NC.
As usual, YMMV
Joe

Offline ReetP

  • *
  • 4,056
  • +6/-0
Re: Nextcloud support
« Reply #10 on: June 16, 2026, 04:20:39 PM »
For my needs the Server ID was ignored, as my SME Server is running only 1 instance of NC.

https://bugs.koozali.org/show_bug.cgi?id=13609

Code: [Select]
occ config:system:set serverid --value 0
Also 13608 and 13610

(bugzilla server is currently having a moment - check back later)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline BossHog

  • **
  • 27
  • +0/-0
Re: Nextcloud support
« Reply #11 on: June 16, 2026, 11:29:06 PM »
Howdy,
thanks ReetP.
For a bit of enlightenment, this is from NC config.sample.php which gives details:
Quote
/**
    * This is a unique identifier for your Nextcloud installation, created
    * automatically by the installer. This example is for documentation only,
    * and you should never use it because it will not work. A valid ``instanceid``
    * is created when you install Nextcloud.
    */
   'instanceid' => '',

/**
    * This is a unique identifier for your server.
    * It is useful when your Nextcloud instance is using different PHP servers.
    * Once it's set it shouldn't be changed.
    *
    * Value must be an integer, comprised between 0 and 1023.
    *
    * When config.php is shared between different servers, this value should be overriden with "NC_serverid=<int>" on each server.
    * Note that it must be overriden for CLI and for your webserver.
    *
    * Example for CLI: NC_serverid=42 occ config:list system
         */
   'serverid' => -1
This explains the difference between "instanceid" and "serverid"
Joe