Skip to content

No private key generated for new user accounts #2907

@zecke

Description

@zecke

Steps to reproduce

  1. occ user:add foo
  2. add password/confirm password
  3. ls -rw-r--r-- 1 www www 0 Jan 1 19:25 data/foo/files_encryption/OC_DEFAULT_MODULE/foo.publicKey

Expected behaviour

Private and public key being generated

Actual behaviour

Truncated private key.. login will fail/warn about it

Server configuration

Operating system:
FreeBSD 10.3

Web server:
nginx

Database:
mysql

PHP version:
7

Nextcloud version: (see Nextcloud admin page)
nextcloud-11.0

Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 9

Where did you install Nextcloud from:
FreeBSD ports

Signing status:
No errors have been found.

List of activated apps:

DetailsEnabled: - 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_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 - templateeditor: 0.2 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - updatenotification: 1.1.1 - workflowengine: 1.1.1 Disabled: - calendar - contacts - external - files_accesscontrol - files_antivirus - files_automatedtagging - files_external - files_retention - user_external - user_ldap - user_saml

The content of config/config.php:

Details { "system": { "instanceid": "private", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "private" ], "datadirectory": "\/usr\/local\/www\/nextcloud\/data", "overwrite.cli.url": "private", "dbtype": "mysql", "version": "11.0.0.10", "dbname": "nextcloud", "dbhost": "localhost", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "UTC", "installed": true, "mail_from_address": "private", "mail_smtpmode": "smtp", "mail_domain": "private", "mail_smtpauthtype": "LOGIN", "mail_smtphost": "private", "theme": "", "loglevel": 2, "maintenance": false, "singleuser": false } }

Are you using external storage, if yes which one: local/smb/sftp/...
local

Are you using encryption: yes/no
yes

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

LDAP configuration (delete this part if not used)

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log ``` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Insert your Nextcloud log here ```

Browser log

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

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

</details>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions