Update from nextcloud-31.0.7.1 to 31.0.8 failed starting step 10

Update initiated via web-frontend

.step
{"state":"end","step":9}

updater.log

...
2025-08-15T05:15:03+0000 UKrenGSWHz [info] startStep("8")
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replaceEntryPoints()
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replace index.php
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replace status.php
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replace remote.php
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replace public.php
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replace ocs/v1.php
2025-08-15T05:15:03+0000 UKrenGSWHz [info] replace ocs/v2.php
2025-08-15T05:15:03+0000 UKrenGSWHz [info] end of replaceEntryPoints()
2025-08-15T05:15:03+0000 UKrenGSWHz [info] endStep("8")
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] request to updater
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] currentStep()
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] Step 8 is in state "end".
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] POST request for step "9"
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] startStep("9")
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] deleteOldFiles()
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] config sample exists
2025-08-15T05:15:03+0000 nEvBMTF9YD [info] themes README exists
2025-08-15T05:15:04+0000 nEvBMTF9YD [info] end of deleteOldFiles()
2025-08-15T05:15:04+0000 nEvBMTF9YD [info] endStep("9")
2025-08-15T05:15:04+0000 Xyos2VOlAb [info] request to updater
2025-08-15T05:15:04+0000 Xyos2VOlAb [info] currentStep()
2025-08-15T05:15:04+0000 Xyos2VOlAb [info] Step 9 is in state "end".
2025-08-15T05:15:04+0000 Xyos2VOlAb [info] POST request for step "10"
2025-08-15T05:15:04+0000 Xyos2VOlAb [error] POST request failed with other exception
2025-08-15T05:15:04+0000 Xyos2VOlAb [error] Exception: Exception
Message: Not authenticated
Code:0
Trace:
#0 {main}
File:*(path_to_file)*/index.php
Line:1322

(path_to_file) is correct - just replaced the original path

nextcloud.log

{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:03+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": "failed to create instance of background job: OCA\\Activity\\BackgroundJob\\EmailNotification",
  "userAgent": "--",
  "version": "31.0.7.1",
  "exception": {
    "Exception": "OC\\AppFramework\\Utility\\QueryNotFoundException",
    "Message": "Could not resolve OCA\\Activity\\BackgroundJob\\EmailNotification! Class \"OCA\\Activity\\BackgroundJob\\EmailNotification\" does not exist",
    "Code": 0,
    "Trace": [
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 124,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 440,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/ServerContainer.php",
        "line": 137,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 42,
        "function": "query",
        "class": "OC\\ServerContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/public/Server.php",
        "line": 39,
        "function": "get",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 309,
        "function": "get",
        "class": "OCP\\Server",
        "type": "::"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 198,
        "function": "buildJob",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/cron.php",
        "line": 152,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      }
    ],
    "File": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
    "Line": 113,
    "message": "failed to create instance of background job: OCA\\Activity\\BackgroundJob\\EmailNotification",
    "exception": {},
    "CustomMessage": "failed to create instance of background job: OCA\\Activity\\BackgroundJob\\EmailNotification"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:03+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": "failed to create instance of background job: OCA\\Circles\\Cron\\Maintenance",
  "userAgent": "--",
  "version": "31.0.7.1",
  "exception": {
    "Exception": "OC\\AppFramework\\Utility\\QueryNotFoundException",
    "Message": "Could not resolve OCA\\Circles\\Cron\\Maintenance! Class \"OCA\\Circles\\Cron\\Maintenance\" does not exist",
    "Code": 0,
    "Trace": [
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 124,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 440,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/ServerContainer.php",
        "line": 137,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 42,
        "function": "query",
        "class": "OC\\ServerContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/public/Server.php",
        "line": 39,
        "function": "get",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 309,
        "function": "get",
        "class": "OCP\\Server",
        "type": "::"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 198,
        "function": "buildJob",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 247,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 229,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/cron.php",
        "line": 152,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      }
    ],
    "File": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
    "Line": 113,
    "message": "failed to create instance of background job: OCA\\Circles\\Cron\\Maintenance",
    "exception": {},
    "CustomMessage": "failed to create instance of background job: OCA\\Circles\\Cron\\Maintenance"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:03+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": "failed to create instance of background job: OCA\\AppAPI\\BackgroundJob\\ExAppInitStatusCheckJob",
  "userAgent": "--",
  "version": "31.0.7.1",
  "exception": {
    "Exception": "OC\\AppFramework\\Utility\\QueryNotFoundException",
    "Message": "Could not resolve OCA\\AppAPI\\BackgroundJob\\ExAppInitStatusCheckJob! Class \"OCA\\AppAPI\\BackgroundJob\\ExAppInitStatusCheckJob\" does not exist",
    "Code": 0,
    "Trace": [
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 124,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 440,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/ServerContainer.php",
        "line": 137,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 42,
        "function": "query",
        "class": "OC\\ServerContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/public/Server.php",
        "line": 39,
        "function": "get",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 309,
        "function": "get",
        "class": "OCP\\Server",
        "type": "::"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 198,
        "function": "buildJob",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/cron.php",
        "line": 152,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      }
    ],
    "File": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
    "Line": 113,
    "message": "failed to create instance of background job: OCA\\AppAPI\\BackgroundJob\\ExAppInitStatusCheckJob",
    "exception": {},
    "CustomMessage": "failed to create instance of background job: OCA\\AppAPI\\BackgroundJob\\ExAppInitStatusCheckJob"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "include((path_to_nextcloud)/nextcloud/apps/files/composer/composer/../../lib/BackgroundJob/CleanupDirectEditingTokens.php): Failed to open stream: No such file or directory at (path_to_nextcloud)/nextcloud/lib/composer/composer/ClassLoader.php#576",
  "userAgent": "--",
  "version": "31.0.7.1",
  "data": {
    "app": "PHP"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "include(): Failed opening '(path_to_nextcloud)/nextcloud/apps/files/composer/composer/../../lib/BackgroundJob/CleanupDirectEditingTokens.php' for inclusion (include_path='(path_to_nextcloud)/nextcloud/3rdparty/pear/archive_tar:(path_to_nextcloud)/nextcloud/3rdparty/pear/console_getopt:(path_to_nextcloud)/nextcloud/3rdparty/pear/pear-core-minimal/src:(path_to_nextcloud)/nextcloud/3rdparty/pear/pear_exception:(path_to_nextcloud)/nextcloud/apps') at (path_to_nextcloud)/nextcloud/lib/composer/composer/ClassLoader.php#576",
  "userAgent": "--",
  "version": "31.0.7.1",
  "data": {
    "app": "PHP"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "include((path_to_nextcloud)/nextcloud/apps/files/composer/composer/../../lib/BackgroundJob/CleanupDirectEditingTokens.php): Failed to open stream: No such file or directory at (path_to_nextcloud)/nextcloud/lib/composer/composer/ClassLoader.php#576",
  "userAgent": "--",
  "version": "31.0.7.1",
  "data": {
    "app": "PHP"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "include(): Failed opening '(path_to_nextcloud)/nextcloud/apps/files/composer/composer/../../lib/BackgroundJob/CleanupDirectEditingTokens.php' for inclusion (include_path='(path_to_nextcloud)/nextcloud/3rdparty/pear/archive_tar:(path_to_nextcloud)/nextcloud/3rdparty/pear/console_getopt:(path_to_nextcloud)/nextcloud/3rdparty/pear/pear-core-minimal/src:(path_to_nextcloud)/nextcloud/3rdparty/pear/pear_exception:(path_to_nextcloud)/nextcloud/apps') at (path_to_nextcloud)/nextcloud/lib/composer/composer/ClassLoader.php#576",
  "userAgent": "--",
  "version": "31.0.7.1",
  "data": {
    "app": "PHP"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": "failed to create instance of background job: OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens",
  "userAgent": "--",
  "version": "31.0.7.1",
  "exception": {
    "Exception": "OC\\AppFramework\\Utility\\QueryNotFoundException",
    "Message": "Could not resolve OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens! Class \"OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens\" does not exist",
    "Code": 0,
    "Trace": [
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 124,
        "function": "resolve",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
        "line": 440,
        "function": "query",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/ServerContainer.php",
        "line": 137,
        "function": "queryNoFallback",
        "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
        "line": 42,
        "function": "query",
        "class": "OC\\ServerContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/public/Server.php",
        "line": 39,
        "function": "get",
        "class": "OC\\AppFramework\\Utility\\SimpleContainer",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 309,
        "function": "get",
        "class": "OCP\\Server",
        "type": "::"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/lib/private/BackgroundJob/JobList.php",
        "line": 198,
        "function": "buildJob",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      },
      {
        "file": "(path_to_nextcloud)/nextcloud/cron.php",
        "line": 152,
        "function": "getNext",
        "class": "OC\\BackgroundJob\\JobList",
        "type": "->"
      }
    ],
    "File": "(path_to_nextcloud)/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
    "Line": 113,
    "message": "failed to create instance of background job: OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens",
    "exception": {},
    "CustomMessage": "failed to create instance of background job: OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "include((path_to_nextcloud)/nextcloud/3rdparty/composer/../phpseclib/phpseclib/phpseclib/Crypt/Hash.php): Failed to open stream: No such file or directory at (path_to_nextcloud)/nextcloud/lib/composer/composer/ClassLoader.php#576",
  "userAgent": "--",
  "version": "31.0.7.1",
  "data": {
    "app": "PHP"
  }
}
{
  "reqId": "wv7a0XYRWdlHdbuKc49w",
  "level": 2,
  "time": "2025-08-15T07:15:04+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "PHP",
  "method": "",
  "url": "--",
  "message": "include(): Failed opening '(path_to_nextcloud)/nextcloud/3rdparty/composer/../phpseclib/phpseclib/phpseclib/Crypt/Hash.php' for inclusion (include_path='(path_to_nextcloud)/nextcloud/3rdparty/pear/archive_tar:(path_to_nextcloud)/nextcloud/3rdparty/pear/console_getopt:(path_to_nextcloud)/nextcloud/3rdparty/pear/pear-core-minimal/src:(path_to_nextcloud)/nextcloud/3rdparty/pear/pear_exception:(path_to_nextcloud)/nextcloud/apps') at (path_to_nextcloud)/nextcloud/lib/composer/composer/ClassLoader.php#576",
  "userAgent": "--",
  "version": "31.0.7.1",
  "data": {
    "app": "PHP"
  }
}

(path_to_nextcloud) is correct - just replaced the original path

Any idea how to solve this issue?

You can either:

  • run the Updater from the command line
  • do a manual update

Both processes are described in the Maintenance chapter of the Admin Manual.

As for what caused the updater failure while in web mode, it appears your updater authentication secret expired out for some reason.

How long did the Updater run from the initial timestamp to that last one your posted in the lot snippet?

I encountered this problem when updating with the web updater, only when the backup could not be made. My NC instance was on a debian VM whose virtual disk space had become a bit tight after 2 and a half years of upgrading. Try cleaning up the systemd logs, any old kernels. Which should solve the problem after reinitializing the update by deleting nextcloud backups, downloads and .step file (. /data/updater-instanceID/).

To prevent problems, only use the cli to update:
Using the command line based updater

sudo -u www-data php /var/www/nextcloud/updater/updater.phar --no-backup

This topic was automatically closed after 3 days. New replies are no longer allowed.