Update integrity check Extra Files

Hello

Thank you for your help.

Updated from 20.0.4 to 20.0.9 taz.ba2 install. updated manually from terminal
all works fine apart from integrity check. there are a lot of “Extra Files”. it is a little concerning there is so many.

i have been through and updated the Apps that required updating and that has worked for some, the documentation says to remove the “Extra Files” is this true and is there a way i can delete them all or update all the in one hit.

snip and link from documentation

https://docs.nextcloud.com/server/20/admin_manual/issues/code_signing.html

List of invalad files from nextcloud.

Results

  • comments
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/sc.js
      • l10n/sc.json
  • lookup_server_connector
    • EXTRA_FILE
      • l10n/he.json
      • l10n/eu.json
      • l10n/hu.js
      • l10n/zh_TW.json
      • l10n/eu.js
      • l10n/el.js
      • l10n/hu.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_TW.js
      • l10n/he.js
      • l10n/zh_HK.json
      • l10n/sc.json
      • l10n/el.json
  • recommendations
    • EXTRA_FILE
      • l10n/vi.json
      • l10n/lv.json
      • l10n/vi.js
      • l10n/oc.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_HK.json
      • l10n/lv.js
      • l10n/sc.json
      • l10n/oc.js
  • viewer
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/lo.js
      • l10n/sc.js
      • l10n/sc.json
      • l10n/lo.json
  • privacy
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • files_external
    • EXTRA_FILE
      • 3rdparty/composer/installed.php
      • 3rdparty/composer/InstalledVersions.php
      • 3rdparty/composer/platform_check.php
      • 3rdparty/icewind/smb/src/StringBuffer.php
      • 3rdparty/icewind/streams/src/HashWrapper.php
      • 3rdparty/icewind/streams/src/WriteHashWrapper.php
      • 3rdparty/icewind/streams/src/ReadHashWrapper.php
      • 3rdparty/icewind/streams/src/UrlCallback.php
      • 3rdparty/icewind/streams/src/WrapperHandler.php
  • dav
    • EXTRA_FILE
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_HK.json
      • l10n/sc.json
  • serverinfo
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
  • weather_status
    • EXTRA_FILE
      • l10n/eu.json
      • l10n/ja.js
      • l10n/fi.js
      • l10n/zh_TW.json
      • l10n/eu.js
      • l10n/fi.json
      • l10n/zh_HK.js
      • l10n/sk.json
      • l10n/ru.js
      • l10n/zh_TW.js
      • l10n/zh_HK.json
      • l10n/ja.json
      • l10n/ru.json
      • l10n/sk.js
  • oauth2
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_HK.json
      • l10n/sc.json
  • admin_audit
    • EXTRA_FILE
      • l10n/vi.json
      • l10n/he.json
      • l10n/lt_LT.js
      • l10n/da.js
      • l10n/uk.json
      • l10n/da.json
      • l10n/vi.js
      • l10n/bg.js
      • l10n/oc.json
      • l10n/el.js
      • l10n/sr.json
      • l10n/lt_LT.json
      • l10n/sc.js
      • l10n/es_AR.js
      • l10n/zh_HK.js
      • l10n/es_AR.json
      • l10n/he.js
      • l10n/bg.json
      • l10n/zh_HK.json
      • l10n/sc.json
      • l10n/oc.js
      • l10n/sr.js
      • l10n/ro.js
      • l10n/ro.json
      • l10n/el.json
      • l10n/uk.js
  • dashboard
    • EXTRA_FILE
      • l10n/pt_PT.json
      • l10n/he.json
      • l10n/eu.json
      • l10n/ja.js
      • l10n/da.js
      • l10n/pt_PT.js
      • l10n/da.json
      • l10n/eu.js
      • l10n/bg.js
      • l10n/oc.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/ka_GE.json
      • l10n/ko.json
      • l10n/he.js
      • l10n/bg.json
      • l10n/zh_HK.json
      • l10n/th.js
      • l10n/sc.json
      • l10n/oc.js
      • l10n/ja.json
      • l10n/ka_GE.js
      • l10n/th.json
      • l10n/ko.js
  • provisioning_api
    • EXTRA_FILE
      • l10n/pt_BR.json
      • l10n/pt_BR.js
      • l10n/eu.json
      • l10n/hu.js
      • l10n/zh_TW.json
      • l10n/eu.js
      • l10n/el.js
      • l10n/hu.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_TW.js
      • l10n/zh_HK.json
      • l10n/sc.json
      • l10n/el.json
  • settings
    • EXTRA_FILE
      • lib/SetupChecks/SupportedDatabase.php
      • l10n/oc.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_HK.json
      • l10n/sc.json
      • l10n/oc.js
      • js/vue-vendors-settings-apps-settings-users-feb6e6add9aee6bcda40.js.map
      • js/vue-settings-users-f21df1de93ddcf45e13b.js.map
      • js/vue-vendors-settings-users-bcea665d3ab241c6619f.js
      • js/vue-settings-users-f21df1de93ddcf45e13b.js
      • js/vue-vendors-settings-users-bcea665d3ab241c6619f.js.map
      • js/vue-vendors-settings-apps-settings-users-feb6e6add9aee6bcda40.js
  • theming
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • files_pdfviewer
    • EXTRA_FILE
      • lib/Listeners/LoadPublicViewerListener.php
  • user_status
    • EXTRA_FILE
      • l10n/he.json
      • l10n/af.json
      • l10n/eu.json
      • l10n/ja.js
      • l10n/hu.js
      • l10n/zh_TW.json
      • l10n/eu.js
      • l10n/hu.json
      • l10n/zh_HK.js
      • l10n/af.js
      • l10n/zh_TW.js
      • l10n/he.js
      • l10n/zh_HK.json
      • l10n/th.js
      • l10n/ja.json
      • l10n/th.json
  • nextcloud_announcements
    • EXTRA_FILE
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_HK.json
      • l10n/sc.json
  • sharebymail
    • EXTRA_FILE
      • l10n/eu.json
      • l10n/zh_TW.json
      • l10n/eu.js
      • l10n/zh_HK.js
      • l10n/zh_TW.js
      • l10n/zh_HK.json
  • firstrunwizard
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
  • contactsinteraction
    • EXTRA_FILE
      • l10n/he.json
      • l10n/hu.js
      • l10n/zh_TW.json
      • l10n/hu.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/ru.js
      • l10n/zh_TW.js
      • l10n/he.js
      • l10n/zh_HK.json
      • l10n/sc.json
      • l10n/ro.js
      • l10n/ru.json
      • l10n/ro.json
  • files_versions
    • EXTRA_FILE
      • l10n/sc.js
      • l10n/sc.json
  • text
    • EXTRA_FILE
      • l10n/vi.json
      • l10n/si.json
      • l10n/si.js
      • l10n/vi.js
      • l10n/oc.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/zh_HK.json
      • l10n/sc.json
      • l10n/oc.js
  • photos
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • js/photos-3.js.map
  • workflowengine
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • federation
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • files_rightclick
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/sc.js
      • l10n/sc.json
  • federatedfilesharing
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • phonetrack
    • EXTRA_FILE
      • phonetrack/appinfo/signature.json
  • cloud_federation_api
    • EXTRA_FILE
      • l10n/eu.json
      • l10n/hu.js
      • l10n/zh_TW.json
      • l10n/eu.js
      • l10n/hu.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/nb.js
      • l10n/sc.json
      • l10n/ro.js
      • l10n/nb.json
      • l10n/ro.json
  • user_ldap
    • EXTRA_FILE
      • lib/Command/ResetUser.php
  • files_sharing
    • EXTRA_FILE
      • lib/Migration/Version21000Date20201223143245.php
  • accessibility
    • EXTRA_FILE
      • l10n/es_DO.json
      • l10n/oc.json
      • l10n/sc.js
      • l10n/sc.json
      • l10n/oc.js
      • l10n/es_DO.js
  • updatenotification
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • survey_client
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • password_policy
    • EXTRA_FILE
      • l10n/zh_HK.js
      • l10n/zh_HK.json
  • logreader
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/lo.js
      • l10n/sc.js
      • l10n/sc.json
      • l10n/lo.json
  • twofactor_backupcodes
    • EXTRA_FILE
      • l10n/he.json
      • l10n/sc.js
      • l10n/zh_HK.js
      • l10n/he.js
      • l10n/zh_HK.json
      • l10n/sc.json
  • notifications
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/lo.js
      • l10n/lo.json
  • activity
    • EXTRA_FILE
      • l10n/si.json
      • l10n/si.js
      • l10n/sc.js
      • l10n/sc.json

It seems that apps have been installed directly in the Nextcloud document root directory, instead of an apps sub-directry. Check your config.php settings to make sure that the apps directories have correctly been configured as described in the adminstrator guide

Next move all extra files to a directory outsite of the Nextcloud document root directory and re-run the integrity check. If everything still works as expected you can delete the moved files.

Hi J-ed.

Thank you for the reply.

The apps are in the sub directory /var/www/nextcloud/apps/ I have double check this and the permissions are correct.

Data file is outside of the directory it is sitting on raid drives.

I followed the documentation for manual updating. Downloaded newversion.tar.ba2 renamed the old nextcloud directory to nextcloud_old. Unzipped new and placed into same directory. Moved apps from old to new. And moved config.php from old to new. And ran update command. Ran no issues and nextcloud works fine.

If you look at the files they are all in the same sub directory for that app. … appname/i10n/

Not sure what this directory is for.

1 Like

I think the “i10n” directory isn’t the problem here. Based on the errors these are als app directories located in the Nextcloud document root directory instead of the apps sub-directory, therefore you need to remove it.

[Deleted. I read it again]

Hi Mate

here is a screen shot of the new nextcloud directory /var/www/html/
and the old directory. /var/www/html_nextcloudV20.0.4/

there isnt any app directories in the nextcloud directory

here is the apps folder

Hi Devnull

i cant see the test.php file sorry. there is a few files i may of missed it lol…
nextcloud didnt have any errors before the update only after. and the only things copied over from new to old was config.php and the apps.

[Deleted. I read it again]

Hi mate

Sorry I get what you mean with test.php.

That is a screen shot of the nextcloud manual. They are using it as an example of what to do if you have this error to delete the file.

Hi. I read it again. Sorry the point with “test.php”.
You have got a lot of wrong files.

Perhapys you have only extract the files and your nextcloud runs on an older version.

What about:
https://cloud.server.tld/status.php

I think your upgrade goes wrong.
Sorry i never upgraded nextcloud manually.

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

Upgrade via built-in updater — Nextcloud latest Administration Manual latest documentation

Hi mate.

I extracted everything ok. The process for manual update is.

Rename old nextcloud directory so thats html_nextcloudV20.0.4.

Extract the tar file and move it to normal location.

Copy apps, themes and config.php from old directory to new directory.

Then run occ command to update.

The command ran fine no update errors.

Nextcloud runs fine. The overview show new version of nexrcloud.

Every time I use this command it doesn’t work. Always gets stuck in the maintenance mode section.

I have read this happens with V20. I have tried to get to the bottom of it but never got it to work.

@danielc87 for the manual update, I suppose your datadirectory isn’t in nextcloud folder

Hi mate

No the data directory is on a seperate drive. Two 6t drives in raid0

@danielc87 ok, so no problem for the manual upgrade

Not that I can see.

Not sure why the error with all the extra files.

@danielc87 you have the same error?

Hi.

Sorry no errors during upgrade. It went smooth. Just the extra files. Not sure what to do with them.

If I delete it may cause issues. If I don’t delete it keeps having this error.

Old version didn’t have any errors before update

@danielc87 try to move them outside of nextcloud folder and check if you encounter an error,
if not you can delete it otherwise put them back as before.

isnt there an occ command to just removed them? i would have thought integrity:repair or something similar should have fixed this