Skip to content

OC\HintException: Bad Signature #3222

@alrea333

Description

@alrea333

Steps to reproduce

  1. Use last docker of wonderfall/nextcloud
  2. Synchronize Files on windows
  3. Icon becomes red, with fatal error of webdav

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:
debian plus docker wonderfall/nextcloud

Web server:
nginx (official docker)

Database:
postgres (official docker)

PHP version:
7.0.14

Nextcloud version: (see Nextcloud admin page)
11.0.1

Updated from an older Nextcloud/ownCloud or fresh install:
Bug was present on version 11.0. Update made via new pull of the docker image

Where did you install Nextcloud from:
docker

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.
No errors have been found.

List of activated apps:

App list

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:
  - activity: 2.4.1
  - admin_audit: 1.1.0
  - comments: 1.1.0
  - dav: 1.1.1
  - encryption: 1.4.1
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_accesscontrol: 1.1.2
  - files_pdfviewer: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - gallery: 16.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.0
  - notifications: 1.0.1
  - password_policy: 1.1.0
  - provisioning_api: 1.1.0
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - survey_client: 0.1.5
  - systemtags: 1.1.3
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - updatenotification: 1.1.1
  - workflowengine: 1.1.1
Disabled:
  - external
  - files_automatedtagging
  - files_external
  - files_retention
  - spreedme
  - templateeditor
  - user_external
  - user_ldap
  - user_saml

The content of config/config.php:

Config report
{
    "system": {
        "datadirectory": "\/data",
        "apps_paths": [
            {
                "path": "\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/apps2",
                "url": "\/apps2",
                "writable": true
            }
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "\/tmp\/redis.sock",
            "port": 0,
            "timeout": 0
        },
        "instanceid": "ocadc83b19e7",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.alrea.net"
        ],
        "overwrite.cli.url": "https:\/\/nextcloud.alrea.net",
        "dbtype": "pgsql",
        "version": "11.0.1.2",
        "dbname": "nextcloud",
        "dbhost": "nextcloud_db",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "no-reply",
        "logtimezone": "UTC",
        "logdateformat": "Y-m-d H:i:s",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_domain": "alrea.net",
        "mail_smtphost": "relay.mail.gandi.net",
        "mail_smtpport": "587",
        "mail_smtpauthtype": "LOGIN",
        "maintenance": false,
        "loglevel": 0,
        "singleuser": false
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
NO
Are you using encryption: yes/no
YES at the beggining, then I have tried to stop it, but the Fatal Error still happen during the synch
(command made to stop encryption :
occ maintenance:singleuser --on
occ encryption:decrypt-all
occ maintenance:singleuser --off)

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
NO

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
Chrome 55.0.2883.87

Operating system:
Windows 10

Logs

Web server error log

Web server error log
2017/01/23 18:07:22 [warn] 7#7: *30680 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/7/53/0000000537 while reading upstream, client: 172.20.0.2, server: nextcloud.alrea.net, request: "GET /remote.php/webdav/weTilt/App/weTiltRelecteurApp-0.2-debug.apk HTTP/1.1", upstream: "http://172.21.0.2:8888/remote.php/webdav/weTilt/App/weTiltRelecteurApp-0.2-debug.apk", host: "nextcloud.alrea.net"
2017/01/23 18:07:23 [warn] 7#7: *31065 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000538, client: 172.20.0.2, server: nextcloud.alrea.net, request: "PUT /remote.php/webdav/DealAgri/Catalogues/Caterpillar/Tarif%202017%20PR%20CATERPILLAR%20Net%20Concessionnaires%20Agri%2018%20Janv%202017.xlsx HTTP/1.1", host: "nextcloud.alrea.net"
2017/01/23 18:07:23 [warn] 7#7: *31066 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000539, client: 172.20.0.2, server: nextcloud.alrea.net, request: "PUT /remote.php/webdav/DealAgri/Catalogues/Immat/Immat%202012-2015.xlsx-chunking-1216214631-4-0 HTTP/1.1", host: "nextcloud.alrea.net"
2017/01/23 18:07:33 [warn] 7#7: *31067 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/0/54/0000000540 while reading upstream, client: 172.20.0.2, server: nextcloud.alrea.net, request: "GET /remote.php/webdav/weTilt/App/weTiltStudentApp-0.2-debug.apk HTTP/1.1", upstream: "http://172.21.0.2:8888/remote.php/webdav/weTilt/App/weTiltStudentApp-0.2-debug.apk", host: "nextcloud.alrea.net"
2017/01/23 18:07:45 [error] 7#7: *31067 upstream prematurely closed connection while reading upstream, client: 172.20.0.2, server: nextcloud.alrea.net, request: "GET /remote.php/webdav/weTilt/Arbre%20r%C3%A9ponse/Arbre%20r%C3%A9ponse.txt HTTP/1.1", upstream: "http://172.21.0.2:8888/remote.php/webdav/weTilt/Arbre%20r%C3%A9ponse/Arbre%20r%C3%A9ponse.txt", host: "nextcloud.alrea.net"

Nextcloud log (data/nextcloud.log)

Nextcloud log
Fatal	webdav	OC\HintException: Bad Signature
/nextcloud/apps/encryption/lib/Crypto/Crypt.php - line 464: OCA\Encryption\Crypto\Crypt->checkSignature('0rGJBE38rePRmGS...', '\xCA\xA7\xB3j\xFE\xEF\xC61\xFB{\x89G\x1D\xD8\n...', 'ab96d45fbe17f8f...')
/nextcloud/apps/encryption/lib/Crypto/Encryption.php - line 372: OCA\Encryption\Crypto\Crypt->symmetricDecryptFileContent('0rGJBE38rePRmGS...', '\xCA\xA7\xB3j\xFE\xEF\xC61\xFB{\x89G\x1D\xD8\n...', 'AES-256-CTR', 34, '0end')
/nextcloud/lib/private/Files/Stream/Encryption.php - line 460: OCA\Encryption\Crypto\Encryption->decrypt('0rGJBE38rePRmGS...', '0end')
/nextcloud/lib/private/Files/Stream/Encryption.php - line 291: OC\Files\Stream\Encryption->readCache()
[internal function] OC\Files\Stream\Encryption->stream_read(1555)
/nextcloud/3rdparty/icewind/streams/src/Wrapper.php - line 83: fread(Resource id #43, 8192)
/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php - line 91: Icewind\Streams\Wrapper->stream_read(8192)
[internal function] Icewind\Streams\CallbackWrapper->stream_read(8192)
/nextcloud/3rdparty/sabre/http/lib/Sapi.php - line 78: stream_copy_to_stream(Resource id #46, Resource id #48, '1555')
/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 498: Sabre\HTTP\Sapi sendResponse(Object(Sabre\HTTP\Response))
/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/nextcloud/apps/dav/appinfo/v1/webdav.php - line 60: Sabre\DAV\Server->exec()
/nextcloud/remote.php - line 165: require_once('/nextcloud/apps...')
{main}

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions