Upgrade 27.0.0 -> 27.0.1

Hi
I did try to upgrade from 27.0.0 via web updater and get the Check for expected files Error.

If I uses ./occ upgrade I get the info Nextcloud is already latest version. Current version is 27.0.0 and avalible is 27.0.1 .

Has anyone an idea whats wrong / how to fix this?

Ben

Not without knowing the error you’re getting :wink:
Otherwise you could try to use updater.phar to update from CLI

Here is the updater.log:

2023-07-24T08:51:36+0200 KLzBZKNJcf [info] request to updater
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] currentStep()
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] show HTML page
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] current version: 27.0.0 build time: 2023-06-12T14:58:06+00:00 add4e4365a4040d2e4e6aa79c0d03c3edd78583c
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] getUpdateServerResponse()
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] releaseChannel: stable
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] internal version: 27.0.0.8
2023-07-24T08:51:36+0200 KLzBZKNJcf [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x0x8xxxstablexx2023-06-12T14%3A58%3A06%2B00%3A00+add4e4365a4040d2e4e6aa79c0d03c3edd78583cx8x2x8
2023-07-24T08:51:37+0200 KLzBZKNJcf [info] getUpdateServerResponse response: Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T08:51:37+0200 KLzBZKNJcf [info] checkForUpdate() Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T08:51:37+0200 KLzBZKNJcf [info] getChangelogURL()
2023-07-24T08:51:37+0200 KLzBZKNJcf [info] end of checkForUpdate() Update to Nextcloud 27.0.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-0-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] request to updater
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] currentStep()
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] POST request for step "1"
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] startStep("1")
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] checkForExpectedFilesAndFolders()
2023-07-24T08:51:40+0200 crLfLGFdm0 [error] POST request failed with UpdateException
2023-07-24T08:51:40+0200 crLfLGFdm0 [error] Exception: UpdateException
Message: 
Code:0
Trace:
#0 /var/www/virtual/WEBROOT/updater/index.php(1364): Updater->checkForExpectedFilesAndFolders()
#1 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:320
Data:
Array
(
    [0] => host
    [1] => port
    [2] => timeout
)


2023-07-24T08:51:40+0200 crLfLGFdm0 [info] rollbackChanges("1")
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] unlink .step
2023-07-24T08:51:40+0200 crLfLGFdm0 [info] end of  rollbackChanges()
2023-07-24T08:51:50+0200 KELrzz02bm [info] request to updater
2023-07-24T08:51:50+0200 KELrzz02bm [info] currentStep()
2023-07-24T08:51:50+0200 KELrzz02bm [info] POST request for step "1"
2023-07-24T08:51:50+0200 KELrzz02bm [info] startStep("1")
2023-07-24T08:51:50+0200 KELrzz02bm [info] checkForExpectedFilesAndFolders()
2023-07-24T08:51:50+0200 KELrzz02bm [error] POST request failed with UpdateException
2023-07-24T08:51:50+0200 KELrzz02bm [error] Exception: UpdateException
Message: 
Code:0
Trace:
#0 /var/www/virtual/WEBROOT/updater/index.php(1364): Updater->checkForExpectedFilesAndFolders()
#1 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:320
Data:
Array
(
    [0] => host
    [1] => port
    [2] => timeout
)


2023-07-24T08:51:50+0200 KELrzz02bm [info] rollbackChanges("1")
2023-07-24T08:51:50+0200 KELrzz02bm [info] unlink .step
2023-07-24T08:51:50+0200 KELrzz02bm [info] end of  rollbackChanges()
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] request to updater
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] currentStep()
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] show HTML page
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] current version: 27.0.0 build time: 2023-06-12T14:58:06+00:00 add4e4365a4040d2e4e6aa79c0d03c3edd78583c
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] getUpdateServerResponse()
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] releaseChannel: stable
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] internal version: 27.0.0.8
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x0x8xxxstablexx2023-06-12T14%3A58%3A06%2B00%3A00+add4e4365a4040d2e4e6aa79c0d03c3edd78583cx8x2x8
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] getUpdateServerResponse response: Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] checkForUpdate() Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] getChangelogURL()
2023-07-24T08:53:32+0200 qKxT8Xx5PZ [info] end of checkForUpdate() Update to Nextcloud 27.0.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-0-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-07-24T08:53:47+0200 HOMO5a10lN [info] request to updater
2023-07-24T08:53:47+0200 HOMO5a10lN [info] currentStep()
2023-07-24T08:53:47+0200 HOMO5a10lN [info] POST request for step "1"
2023-07-24T08:53:47+0200 HOMO5a10lN [error] POST request failed with other exception
2023-07-24T08:53:47+0200 HOMO5a10lN [error] Exception: Exception
Message: Not authenticated
Code:0
Trace:
#0 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:1353

2023-07-24T08:55:15+0200 48GXycCljs [info] request to updater
2023-07-24T08:55:15+0200 48GXycCljs [info] currentStep()
2023-07-24T08:55:15+0200 48GXycCljs [info] POST request for step "1"
2023-07-24T08:55:16+0200 48GXycCljs [error] POST request failed with other exception
2023-07-24T08:55:16+0200 48GXycCljs [error] Exception: Exception
Message: Not authenticated
Code:0
Trace:
#0 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:1353

2023-07-24T09:36:55+0200 zWKxWFuacO [info] request to updater
2023-07-24T09:36:55+0200 zWKxWFuacO [info] currentStep()
2023-07-24T09:36:55+0200 zWKxWFuacO [info] show HTML page
2023-07-24T09:36:55+0200 zWKxWFuacO [info] current version: 27.0.0 build time: 2023-06-12T14:58:06+00:00 add4e4365a4040d2e4e6aa79c0d03c3edd78583c
2023-07-24T09:36:55+0200 zWKxWFuacO [info] getUpdateServerResponse()
2023-07-24T09:36:55+0200 zWKxWFuacO [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-07-24T09:36:55+0200 zWKxWFuacO [info] releaseChannel: stable
2023-07-24T09:36:55+0200 zWKxWFuacO [info] internal version: 27.0.0.8
2023-07-24T09:36:55+0200 zWKxWFuacO [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x0x8xxxstablexx2023-06-12T14%3A58%3A06%2B00%3A00+add4e4365a4040d2e4e6aa79c0d03c3edd78583cx8x2x8
2023-07-24T09:36:55+0200 zWKxWFuacO [info] getUpdateServerResponse response: Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T09:36:55+0200 zWKxWFuacO [info] checkForUpdate() Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T09:36:55+0200 zWKxWFuacO [info] getChangelogURL()
2023-07-24T09:36:55+0200 zWKxWFuacO [info] end of checkForUpdate() Update to Nextcloud 27.0.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-0-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-07-24T09:36:57+0200 IzhlfahAHa [info] request to updater
2023-07-24T09:36:57+0200 IzhlfahAHa [info] currentStep()
2023-07-24T09:36:57+0200 IzhlfahAHa [info] POST request for step "1"
2023-07-24T09:36:58+0200 IzhlfahAHa [info] startStep("1")
2023-07-24T09:36:58+0200 IzhlfahAHa [info] checkForExpectedFilesAndFolders()
2023-07-24T09:36:58+0200 IzhlfahAHa [error] POST request failed with UpdateException
2023-07-24T09:36:58+0200 IzhlfahAHa [error] Exception: UpdateException
Message: 
Code:0
Trace:
#0 /var/www/virtual/WEBROOT/updater/index.php(1364): Updater->checkForExpectedFilesAndFolders()
#1 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:320
Data:
Array
(
    [0] => host
    [1] => port
    [2] => timeout
)


2023-07-24T09:36:58+0200 IzhlfahAHa [info] rollbackChanges("1")
2023-07-24T09:36:58+0200 IzhlfahAHa [info] unlink .step
2023-07-24T09:36:58+0200 IzhlfahAHa [info] end of  rollbackChanges()
2023-07-24T09:38:20+0200 GfLOjGxBew [info] request to updater
2023-07-24T09:38:20+0200 GfLOjGxBew [info] currentStep()
2023-07-24T09:38:20+0200 GfLOjGxBew [info] POST request for step "1"
2023-07-24T09:38:20+0200 GfLOjGxBew [info] startStep("1")
2023-07-24T09:38:20+0200 GfLOjGxBew [info] checkForExpectedFilesAndFolders()
2023-07-24T09:38:20+0200 GfLOjGxBew [error] POST request failed with UpdateException
2023-07-24T09:38:20+0200 GfLOjGxBew [error] Exception: UpdateException
Message: 
Code:0
Trace:
#0 /var/www/virtual/WEBROOT/updater/index.php(1364): Updater->checkForExpectedFilesAndFolders()
#1 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:320
Data:
Array
(
    [0] => host
    [1] => port
    [2] => timeout
)


2023-07-24T09:38:20+0200 GfLOjGxBew [info] rollbackChanges("1")
2023-07-24T09:38:20+0200 GfLOjGxBew [info] unlink .step
2023-07-24T09:38:20+0200 GfLOjGxBew [info] end of  rollbackChanges()
2023-07-24T09:50:55+0200 2eEFERSmYj [info] request to updater
2023-07-24T09:50:55+0200 2eEFERSmYj [info] currentStep()
2023-07-24T09:50:55+0200 2eEFERSmYj [info] show HTML page
2023-07-24T09:50:55+0200 2eEFERSmYj [info] current version: 27.0.0 build time: 2023-06-12T14:58:06+00:00 add4e4365a4040d2e4e6aa79c0d03c3edd78583c
2023-07-24T09:50:55+0200 2eEFERSmYj [info] getUpdateServerResponse()
2023-07-24T09:50:55+0200 2eEFERSmYj [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-07-24T09:50:55+0200 2eEFERSmYj [info] releaseChannel: stable
2023-07-24T09:50:55+0200 2eEFERSmYj [info] internal version: 27.0.0.8
2023-07-24T09:50:55+0200 2eEFERSmYj [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x0x8xxxstablexx2023-06-12T14%3A58%3A06%2B00%3A00+add4e4365a4040d2e4e6aa79c0d03c3edd78583cx8x2x8
2023-07-24T09:50:55+0200 2eEFERSmYj [info] getUpdateServerResponse response: Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T09:50:55+0200 2eEFERSmYj [info] checkForUpdate() Array
(
    [version] => 27.0.1.2
    [versionstring] => Nextcloud 27.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => XXX
)

2023-07-24T09:50:55+0200 2eEFERSmYj [info] getChangelogURL()
2023-07-24T09:50:55+0200 2eEFERSmYj [info] end of checkForUpdate() Update to Nextcloud 27.0.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-0-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] request to updater
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] currentStep()
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] POST request for step "1"
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] startStep("1")
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] checkForExpectedFilesAndFolders()
2023-07-24T09:50:59+0200 bKx5FlkpVW [error] POST request failed with UpdateException
2023-07-24T09:50:59+0200 bKx5FlkpVW [error] Exception: UpdateException
Message: 
Code:0
Trace:
#0 /var/www/virtual/WEBROOT/updater/index.php(1364): Updater->checkForExpectedFilesAndFolders()
#1 {main}
File:/var/www/virtual/WEBROOT/updater/index.php
Line:320
Data:
Array
(
    [0] => host
    [1] => port
    [2] => timeout
)


2023-07-24T09:50:59+0200 bKx5FlkpVW [info] rollbackChanges("1")
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] unlink .step
2023-07-24T09:50:59+0200 bKx5FlkpVW [info] end of  rollbackChanges()

Could this have something to do with the download? I have a data dir outside of the web dir in home/name/data/webdirname.

With ./occ only the steps after the server upgrade are done. To do the steps the webupdater does with cli, you should run (adapt path if needed):

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

If you want to have verbose echo, you must make updater.phar executable first, so that you can call it directly instead of caling it as an argument of php:

sudo chmod +x /var/www/nextcloud/updater/updater.phar
sudo -u www-data /var/www/nextcloud/updater/updater.phar -vvv

I hope this helps,
much luck!

no, no luck, I get the similar arror like this:

cli


Nextcloud Updater - version: v26.0.0beta2-9-g64e2e4c dirty

Current version is 27.0.0.

Update to Nextcloud 27.0.1 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✘] Check for expected files failed
The following extra files have been found:
    host
    port
    timeout

Update failed. To resume or retry just execute the updater again.

log:

2023-07-24T12:51:41+0000 9rwuVO3ySW [info] getChangelogURL()
2023-07-24T12:51:41+0000 9rwuVO3ySW [info] end of checkForUpdate() Update to Nextcloud 27.0.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.0.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-0-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-07-24T12:52:17+0000 9rwuVO3ySW [info] updater started
2023-07-24T12:52:17+0000 9rwuVO3ySW [info] executeStep request for step "1"
2023-07-24T12:52:17+0000 9rwuVO3ySW [info] startStep("1")
2023-07-24T12:52:17+0000 9rwuVO3ySW [info] checkForExpectedFilesAndFolders()
2023-07-24T12:52:17+0000 9rwuVO3ySW [error] executeStep request failed with UpdateException
2023-07-24T12:52:17+0000 9rwuVO3ySW [error] Exception: NC\Updater\UpdateException
Message: 
Code:0
Trace:
#0 phar:///var/www/virtual/WEBDIR/updater/updater.phar/lib/UpdateCommand.php(366): NC\Updater\Updater->checkForExpectedFilesAndFolders()
#1 phar:///var/www/virtual/WEBDIR/updater/updater.phar/lib/UpdateCommand.php(240): NC\Updater\UpdateCommand->executeStep(1)
#2 phar:///var/www/virtual/WEBDIR/updater/updater.phar/vendor/symfony/console/Command/Command.php(255): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 phar:///var/www/virtual/WEBDIR/updater/updater.phar/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 phar:///var/www/virtual/WEBDIR/updater/updater.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(NC\Updater\UpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 phar:///var/www/virtual/WEBDIR/updater/updater.phar/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 phar:///var/www/virtual/WEBDIR/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run()
#7 /var/www/virtual/WEBDIR/updater/updater.phar(14): require('phar:///var/www...')
#8 {main}
File:phar:///var/www/virtual/WEBDIR/updater/updater.phar/lib/Updater.php
Line:291
Data:
Array
(
    [0] => host
    [1] => port
    [2] => timeout
)


2023-07-24T12:52:17+0000 9rwuVO3ySW [info] rollbackChanges("1")
2023-07-24T12:52:17+0000 9rwuVO3ySW [info] unlink .step
2023-07-24T12:52:17+0000 9rwuVO3ySW [info] end of  rollbackChanges()

any idea where to look for the problem?

And? Did you remove those three files?
You simply have to remove those files and start update again.

Yes that did the trick. Thanks! Now it works with every upgrade variant …

I’m having this same issue but updater.phar does not report any extra files. Are there more troubleshooting steps I could take? I’m trying to avoid installing from scratch again.

Thanks,
CC