Updater to 23.0.04 error: .htaccess.2 extra file cannot be found

[details=“Support intro”]

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

  • Initializing

Current version is 23.0.3.
Update to Nextcloud 23.0.4 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-23.0.4.zip
Open changelog :arrow_upper_right:
Retry update

  • Check for expected files

The following extra files have been found:

  • .htaccess.2

Nextcloud version _(eg, 23.0.3)
Operating system and version _(eg, Ubuntu 20.04.4)
Apache or nginx version _(eg, Apache 2.4.41)
PHP version _(eg, 7.4)

The issue you are facing:

Cannot update to 23.0.4 with Updater

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Settings/Overview/Open updater/Start update

.htaccess.2 exists in var/www/nextcloud/ with 0644 permissions.

Screenshot 2022-04-24 184106

HELLO,

this is a 101 search here… google is your friend.

Solution:

  • log on to your server using ssh or whatever you use.
  • go to your www/nextcloud folder.
  • delete the extra files.
  • restart upgrade.

Done !

Solved, the displayed error message was not very explanatory (“expected files/extra files”) at least for me.

Thank you!

I’m using nextcloud on Truenas and in this case you can also remove the file using the webui shell as root user. Just look in the nextcloud jail directory tree.