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

Encryption error. #5944

Closed
Happyfeet01 opened this issue Aug 1, 2017 · 4 comments
Closed

Encryption error. #5944

Happyfeet01 opened this issue Aug 1, 2017 · 4 comments

Comments

@Happyfeet01
Copy link

Happyfeet01 commented Aug 1, 2017

Encryption seems working and can decrypt all files correctly after disable it. But why the error log say module not enabled? Maybe the master-key is the trigger

-->

Steps to reproduce

1.activate encryption module
2. activate encryption over the admin Panel
3. ./occ encryption:enable-master-key

Expected behaviour

It seems encryption working and I can decrypt all files. But the encryption app spamming with "default encryption module not loaded" but it was activated.

Server configuration

Operating system:
Ubuntu 16.04.2

Web server:
Apache 2.4.18
Database:
MySQL
PHP version:
PHP 7.1.7

Nextcloud version: (see Nextcloud admin page)
12.0.0.29
Updated from an older Nextcloud/ownCloud or fresh install:
Nc 11
Where did you install Nextcloud from:
Website
Signing status:

Signing status

List of activated apps:

App list
Enabled:
  - activity: 2.5.2
  - admin_audit: 1.2.0
  - admin_notifications: 1.0.0
  - audioplayer: 2.0.2
  - bookmarks: 0.10.1
  - bruteforcesettings: 1.0.2
  - calendar: 1.5.3
  - circles: 0.11.0
  - comments: 1.2.0
  - contacts: 1.5.3
  - dav: 1.3.0
  - federatedfilesharing: 1.2.0
  - federation: 1.2.0
  - files: 1.7.2
  - files_accesscontrol: 1.2.4
  - files_automatedtagging: 1.2.2
  - files_downloadactivity: 1.1.1
  - files_external: 1.3.0
  - files_markdown: 1.0.1
  - files_pdfviewer: 1.1.1
  - files_retention: 1.1.2
  - files_sharing: 1.4.0
  - files_texteditor: 2.4.1
  - files_trashbin: 1.2.0
  - files_versions: 1.5.0
  - files_videoplayer: 1.1.0
  - firstrunwizard: 2.1
  - gallery: 17.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - news: 11.0.5
  - nextant: 1.0.8
  - nextcloud_announcements: 1.1
  - notes: 2.3.1
  - notifications: 2.0.0
  - oauth2: 1.0.5
  - ocdownloader: 1.5
  - ocr: 3.0.0-beta.1
  - passman: 2.1.4
  - password_policy: 1.2.2
  - piwik: 0.3.1
  - provisioning_api: 1.2.0
  - rainloop: 5.0.0
  - richdocuments: 1.12.33
  - serverinfo: 1.2.0
  - sharebymail: 1.2.0
  - survey_client: 1.0.0
  - systemtags: 1.2.0
  - tasks: 0.9.5
  - theming: 1.3.0
  - twofactor_backupcodes: 1.1.1
  - twofactor_totp: 1.3.0
  - updatenotification: 1.2.0
  - user_external: 0.4
  - workflowengine: 1.2.0
Disabled:
  - encryption
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "ocm85hmjn2qr",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.larsmueller.net"
        ],
        "datadirectory": "\/mnt\/data",
        "overwrite.cli.url": "https:\/\/cloud.larsmueller.net",
        "dbtype": "mysql",
        "version": "12.0.0.29",
        "dbname": "nextcloud",
        "dbhost": "localhost",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379
        },
        "logtimezone": "Europe\/Berlin",
        "installed": true,
        "maintenance": false,
        "loglevel": 2,
        "updater.release.channel": "stable",
        "theme": "",
        "integrity.check.disabled": true,
        "filesystem_check_changes": 1,
        "mysql.utf8mb4": true,
        "mail_domain": "larsmueller.net",
        "mail_from_address": "cloud-admin",
        "mail_smtpmode": "php",
        "mail_smtpauthtype": "LOGIN"
    }
}

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log

Nextcloud log (data/nextcloud.log)

Nextcloud log
OC\Encryption\Exceptions\ModuleDoesNotExistsException: Default encryption module not loaded
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Encryption/Manager.php - line 201: OC\Encryption\Manager->getDefaultEncryptionModule()
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 1017: OC\Encryption\Manager->getEncryptionModule()
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 447: OC\Files\Storage\Wrapper\Encryption->shouldEncrypt('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/LocalTempFileTrait.php - line 66: OC\Files\Storage\Wrapper\Encryption->fopen('files_external/...', 'r')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/LocalTempFileTrait.php - line 49: OC\Files\Storage\Wrapper\Encryption->toTmpFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 778: OC\Files\Storage\Wrapper\Encryption->getCachedFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 360: OC\Files\Storage\Wrapper\Encryption->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 360: OC\Files\Storage\Wrapper\Wrapper->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 360: OC\Files\Storage\Wrapper\Wrapper->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Files/View.php - line 242: OC\Files\Storage\Wrapper\Wrapper->getLocalFile('files_external/...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Security/CertificateManager.php - line 227: OC\Files\View->getLocalFile('/files_external...')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Http/Client/Client.php - line 74: OC\Security\CertificateManager->getAbsoluteBundlePath(NULL)
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Http/Client/Client.php - line 137: OC\Http\Client\Client->setDefaultOptions()
/var/www/vhosts/larsmueller.net/nextcloud/settings/Controller/CheckSetupController.php - line 125: OC\Http\Client\Client->get('http //www.gith...')
/var/www/vhosts/larsmueller.net/nextcloud/settings/Controller/CheckSetupController.php - line 108: OC\Settings\Controller\CheckSetupController->isSiteReachable('www.github.com')
/var/www/vhosts/larsmueller.net/nextcloud/settings/Controller/CheckSetupController.php - line 414: OC\Settings\Controller\CheckSetupController->isInternetConnectionWorking()
[internal function] OC\Settings\Controller\CheckSetupController->check()
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\CheckSetupController), 'check')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\CheckSetupController), 'check')
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OC\\Settings\\Con...', 'check', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/vhosts/larsmueller.net/nextcloud/lib/private/Route/Router.php- line 299:call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)

/var/www/vhosts/larsmueller.net/nextcloud/lib/base.php - line 1000:OC\Route\Router->match('/settings/ajax/...')

/var/www/vhosts/larsmueller.net/nextcloud/index.php - line 40: OC handleRequest()

{main}


@tflidd
Copy link
Contributor

tflidd commented Aug 1, 2017

Disabled:

  • encryption

Why is the encryption app disabled?

@Happyfeet01
Copy link
Author

That was after trying to encrypt. I decrypt all files and disable it. I have 100 GB files in nextcloud. Want lose the files. I only enable encryption again when I know why it spams the logiles.

@Happyfeet01
Copy link
Author

How can I proof why nextcloud say me that this module is not enabled? PHP mycrypt is enabled.

@Happyfeet01
Copy link
Author

I don't know why this error happens. But after disable and restart apache ,php no error messages and encryption working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants