Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Check for expected files failed" for upgrade from v25 or v26 #40456

Closed
5 of 8 tasks
JB1985 opened this issue Sep 16, 2023 · 26 comments
Closed
5 of 8 tasks

"Check for expected files failed" for upgrade from v25 or v26 #40456

JB1985 opened this issue Sep 16, 2023 · 26 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 26-feedback bug feature: install and update regression

Comments

@JB1985
Copy link

JB1985 commented Sep 16, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

Nextcloud Updater - version: v25.0.3-2-gd49ee0d

Current version is 25.0.11.

Update to Nextcloud 26.0.6 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-26.0.6.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:
    package.json
    package-lock.json
    composer.json
    composer.lock

Update failed. To resume or retry just execute the updater again.
Nextcloud is already latest version

Steps to reproduce

  1. Update your Nextcloud from 25.0.10 to 25.0.11
  2. Start the update again and try to upgrade from 25.0.11 to 26.0.6

Expected behavior

Upgrade to 26.0.6 without any failed message.

Installation method

Community Manual installation with Archive

Nextcloud Server version

25

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@JB1985 JB1985 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Sep 16, 2023
@joshtrichards

This comment was marked as outdated.

@calran

This comment was marked as resolved.

@meisterleise
Copy link

I've got the same problem with the backend updater.

image

@joshtrichards
Copy link
Member

Looks like these files got included in the v25.0.11 final release artifacts. I think that was an intentional change in NC27, but not sure about earlier releases since the v25 updater app doesn't have the handling added for them like in nextcloud/updater#488

Cc: @blizzz

@axelrathey
Copy link

axelrathey commented Sep 18, 2023

Hi,
I have got the same error.
Is it useful to remove (may be safe before) these 4 files manually?
Thanks Axel

@blizzz
Copy link
Member

blizzz commented Sep 18, 2023

Looks like these files got included in the v25.0.11 final release artifacts. I think that was an intentional change in NC27, but not sure about earlier releases since the v25 updater app doesn't have the handling added for them like in nextcloud/updater#488

Cc: @blizzz

That's accurate, yes. The updater fixes should have gone also into 26 and 25 releases, somehow that slipped my mind 😞

We stopped shipping the latest releases of 26 and 25 via the update server now. The next steps are to bring the updater adjustments down to the affected versions, and do a hotfix release.

Those who are on 25.0.11 and 26.0.6 already and want to do the next update have to delete the mentioned files manually I am afraid.

@blizzz
Copy link
Member

blizzz commented Sep 18, 2023

Is it useful to remove (may be safe before) these 4 files manually?

Yes, just remove them, and re-run the update.

@axelrathey

This comment was marked as resolved.

@solracsf

This comment was marked as outdated.

@solracsf
Copy link
Member

solracsf commented Sep 21, 2023

Updates are still failing, even for minor releases, unless these 4 files at the Nextcloud root are handly removed previously:

php updater.phar --no-backup
Nextcloud Updater - version: v26.0.0beta2-9-g64e2e4c dirty

Current version is 26.0.6.

Update to Nextcloud 26.0.7 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-26.0.7.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:
    composer.lock
    package.json
    package-lock.json
    composer.json

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

@blizzz
Copy link
Member

blizzz commented Sep 21, 2023

Updates are still failing, even for minor releases, unless these 4 files are handly removed previously:

Yes, we cannot fix the shipped 26.0.6 and 25.0.11. The updater of the currently installed versions runs. So, when you run any of these versions, the files have to be removed manually unfortunately.

@privatemaker privatemaker unpinned this issue Sep 21, 2023
@LeSpocky

This comment was marked as duplicate.

@blizzz

This comment was marked as duplicate.

@blizzz
Copy link
Member

blizzz commented Sep 21, 2023

Issue is resolved once on 25.0.12 or 26.0.7 (only upgrading from 25.0.11 or 26.0.6 is affected).

@blizzz blizzz closed this as completed Sep 21, 2023
@meisterleise
Copy link

meisterleise commented Sep 21, 2023

And how can I find this files?

Have about 50 files of each of this filenames like "composer.lock"
Instructions please!

Thank you.

@blizzz
Copy link
Member

blizzz commented Sep 21, 2023

Delete the four files before performing the update:

composer.json
composer.lock
package.json
package-lock.json

from your nextcloud root directory.

@meisterleise

This comment was marked as resolved.

@blizzz

This comment was marked as resolved.

@meisterleise
Copy link

I have finally been able to update it. Thank you for your help and patience, @blizzz

@solracsf
Copy link
Member

solracsf commented Sep 21, 2023

For those with the same problem, a command like this should do the job (adapt to your needs/installation):

cd /var/www/nextcloud; rm -f composer.lock package.json package-lock.json composer.json; php updater/updater.phar

@zyll71

This comment was marked as duplicate.

@meisterleise

This comment was marked as resolved.

@axelrathey
Copy link

axelrathey commented Sep 22, 2023

Ok, I got it,
I removed the 4 files

    package.json
    package-lock.json
    composer.json
    composer.lock

mentioned above via winscp from the nextcloud directory.

Then I installed updated from 25.0.11 to 25.0.12 without problems
Then I tested if version 25.0.12 works good.
As free space on my webspace becomes small I had to remove the backup files of the old 25.0.11
Then I upgraded to 26.0.7
The Upgrade to 26 had run a bit longer then the update 25.0.11 --> 25.0.12
Now I have Nextcloud 26.0.7 on my manitu.de webspace

Now it provides me Version 27.1.1, but I will wait because of 2 Apps are not compatible.

The above 4 file namews are back in my nextcloud directory. I will see whether I need them for version 27 or whether I have to remove them too.

Axel

@joshtrichards joshtrichards pinned this issue Sep 24, 2023
@solracsf solracsf changed the title [Bug]: Upgrade from 25.0.11 to 26.0.6 failed [Bug]: "Check for expected files failed" for upgrade from v25 or v26 Sep 24, 2023
@solracsf solracsf changed the title [Bug]: "Check for expected files failed" for upgrade from v25 or v26 "Check for expected files failed" for upgrade from v25 or v26 Sep 24, 2023
@roberix

This comment was marked as resolved.

@blizzz

This comment was marked as resolved.

@roberix

This comment was marked as resolved.

@solracsf solracsf unpinned this issue Nov 11, 2023
@nextcloud nextcloud locked as resolved and limited conversation to collaborators Nov 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 26-feedback bug feature: install and update regression
Projects
None yet
Development

No branches or pull requests