[SOLVED] Integrity check - text

Nextcloud version (eg, 12.0.2): 17.0.0
Operating system and version (eg, Ubuntu 17.04): debian 9
Apache or nginx version (eg, Apache 2.4.25): apache 2
PHP version (eg, 7.1): 7.2

The issue you are facing:

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

Steps to replicate it:

  1. settings - overview
  2. The following list covers which files have failed the integrity check. Please read
    the previous linked documentation to learn more about the errors and how to fix
    them.
  • text
    • EXTRA_FILE
      • package-lock.json
      • .github/pull_request_template.md
      • .github/ISSUE_TEMPLATE/Bug_report.md
      • .github/ISSUE_TEMPLATE/Feature_request.md
      • .eslintrc.js
      • README.md
      • package.json
      • l10n/.gitkeep
      • .tx/config
      • .l10nignore
      • .gitattributes

have disabled ‘text’ and removed all the directories that match it that i can find. error remains. not sure why the full path isn’t shown.

Usually the Nextcloud web root is the base of all given files. Have you checked if e.g. a .github directory exists in that folder?

thanks for the reply.
nope, no .github directory in the root folder.

… and what about the directory "[Nextcloud root]/apps/text"?

there’s…

appinfo
babel.config.js
CHANGELOG.md
COPYING
css
.eslintrc.js
.gitattributes
.github
img
js
l10n
.l10nignore
lib
package.json
package-lock.json
README.md
.stylelintrc.js
templates
.tx

.github contains

ISSUE_TEMPLATE
pull_request_template.md

cheers.

Try to remove the supernumerary files and check if the check honors it.
These are the files and folders which I can find on my server:

grafik

cheers. got it from this
1
down to this
2
the error remains
3

@lupinehorror Can you confirm that you’ve trigged a new scan again and that it’s not showing the previous result?

yup…new scan.
refreshed and rescan clicked

more of the same but added errors

Technical information

The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results

  • files_external
    • INVALID_HASH
      • lib/Lib/Storage/SFTP.php
  • text
    • EXCEPTION
      • OC\IntegrityCheck\Exceptions\InvalidSignatureException
      • Signature data not found.

Raw output

Array
(
[files_external] => Array
(
[INVALID_HASH] => Array
(
[lib/Lib/Storage/SFTP.php] => Array
(
[expected] => 03e21db7021315c5f4c3da697356f825b72ebcd52573b08d12eb1ddcab099f9cb8d5cfac678ef67af974692b62024e72eb163303f1ae76a8529d3f64ced45e68
[current] => 0071dea59cdda529927b68d11f59d4f9132b77e7454f42a942fdeb5d0ed37c934ab118ebfcef7859ee57bf3e4eebbfd0d844b848046f01ec916a5a248feacc81
)

            )

    )

[text] => Array
    (
        [EXCEPTION] => Array
            (
                [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                [message] => Signature data not found.
            )

    )

)

Download the Nextcloud 17.0.0 archive file. extract the mentioned files_external/lib/Lib/Storage/SFTP.php file and use it to replace the existing file on your hard disk. Make sure that you’re correctly setting the file access rights afterwards.

1 Like

hi.
thanks. i wasn’t notified of your reply. uploaded the SFTP file then deleted the Text directory from Apps and reuploaded it.
that seems to have got it sorted and no file errors are now being thrown.
i do appreciate your help.
cheers.

Related issue: https://github.com/nextcloud/text/issues/422