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

Unable to add users or use registration #11757

Closed
Tie-fighter opened this issue Oct 11, 2018 · 8 comments
Closed

Unable to add users or use registration #11757

Tie-fighter opened this issue Oct 11, 2018 · 8 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@Tie-fighter
Copy link

Steps to reproduce

  1. Try to add an user via Users-UI or try to register via registration screen
  2. n/a

Expected behaviour

Useraccount should be created

Actual behaviour

Useraccount is not created

Server configuration

Operating system: Debian

Web server: unknown

Database: MySQL

PHP version: 7.2

Nextcloud version: 14.0.2

Updated from an older Nextcloud/ownCloud or fresh install:
13 -> 14.0.0 -> 14.0.1 -> 14.0.2

Where did you install Nextcloud from:
n/a

Signing status:

Signing status

No errors found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.0.1
  - activity: 2.7.0
  - admin_audit: 1.4.0
  - bruteforcesettings: 1.1.0
  - calendar: 1.6.2
  - cloud_federation_api: 0.0.1
  - comments: 1.4.0
  - contacts: 2.1.6
  - data_request: 1.1.0
  - dav: 1.6.0
  - deck: 0.4.1
  - drop_account: 0.0.11
  - federatedfilesharing: 1.4.0
  - federation: 1.4.0
  - files: 1.9.0
  - files_fulltextsearch: 1.0.1
  - files_pdfviewer: 1.3.2
  - files_sharing: 1.6.2
  - files_texteditor: 2.6.0
  - files_trashbin: 1.4.1
  - files_versions: 1.7.1
  - files_videoplayer: 1.3.0
  - firstrunwizard: 2.3.0
  - fulltextsearch: 1.0.1
  - gallery: 18.1.0
  - groupfolders: 1.3.3
  - logreader: 2.0.0
  - lookup_server_connector: 1.2.0
  - metadata: 0.7.0
  - mindmaps: 0.1.0
  - nextcloud_announcements: 1.3.0
  - notes: 2.4.2
  - notifications: 2.2.1
  - oauth2: 1.2.1
  - password_policy: 1.4.0
  - provisioning_api: 1.4.0
  - registration: 0.4.3
  - serverinfo: 1.4.0
  - sharebymail: 1.4.0
  - socialsharing_diaspora: 1.0.3
  - socialsharing_email: 1.0.4
  - socialsharing_facebook: 1.0.3
  - socialsharing_googleplus: 1.0.3
  - socialsharing_twitter: 1.0.3
  - support: 1.0.0
  - survey_client: 1.2.0
  - systemtags: 1.4.0
  - terms_of_service: 1.0.1
  - theming: 1.5.0
  - twofactor_backupcodes: 1.3.1
  - updatenotification: 1.4.1
  - workflowengine: 1.4.0
Disabled:
  - admin_notifications
  - announcementcenter
  - circles
  - encryption
  - files_downloadactivity
  - files_external
  - quota_warning
  - ransomware_protection
  - spreed
  - user_external
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.1000atmosphaeren.at"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.1000atmosphaeren.at",
        "dbtype": "mysql",
        "version": "14.0.2.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "asset-pipeline.enabled": true,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "loglevel": 0,
        "maintenance": false,
        "theme": "",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpport": "25",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "production",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Are you using external storage, if yes which one: n/a

Are you using encryption: no

Are you using an external user-backend, if yes which one: n/a

Client configuration

Browser: Brave

Operating system: Windows 10

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

Error | ocs_api | OCP\AppFramework\OCS\OCSException: Unable to send the invitation mail | 2018-10-11T11:46:30+0200
-- | -- | -- | --
Error | ocs_api | Swift_TransportException: Expected response code 220 but got code "", with message "" | 2018-10-11T11:46:30+0200
Error | PHP | stream_set_timeout() expects parameter 1 to be resource, null given at /data/web/e68455/html/1000atmosphaeren.at/cloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php#279 | 2018-10-11T11:46:30+0200
Error | PHP | stream_set_blocking() expects parameter 1 to be resource, null given at /data/web/e68455/html/1000atmosphaeren.at/cloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php#275 | 2018-10-11T11:46:30+0200


@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #9299 (Please improve user registration), #11417 (Add back the total used space per user), #11425 (Add back the total used space per user), #10916 (Unable to set quota when adding a new user), and #5114 (NC12, Adding user not possible).

@MorrisJobke
Copy link
Member

Your logs say Unable to send the invitation mail.

Looks like the email server responds weirdly: Swift_TransportException: Expected response code 220 but got code "", with message ""

@rullzer @nickvergessen I guess we should make it a bit more robust, right?

@MorrisJobke MorrisJobke added good first issue Small tasks with clear documentation about how and in which place you need to fix things in. Hacktoberfest labels Oct 11, 2018
@Tie-fighter
Copy link
Author

tbh I cannot find an issue with the e-mail server:

image

@MorrisJobke MorrisJobke added 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed Hacktoberfest good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Oct 11, 2018
@greywood
Copy link

Experiencing the same problem, specifically with the register app. Test emails send fine.

@skvaller
Copy link

Hi! Am wondering if someone can help me with the email client (app). I am running Nextcloud from my own server. I am Not using NC as a file sharing cloud at all. I am finding it very hard to change, add scripts or "fix" problems.
I installed the register app for one reason - to enable login. This since I can't seem to disable the "login frontend and the upload files function" and keep it public or just let the user register without all super defense. On the "register app" I have filled in all info about my mail server (server the same as the website server) but no good. After spending hours trying to fix recurring red marked "error", I am totally lost, can you help me?

@skvaller
Copy link

I reinstalled NC, downloaded and enabled the "register app". This time I could verify the email settings. Still no users can register. I found that there seems to be a bug with CSRF token. However searching forums, I can not really find the right place for the token in the files. I was led to config.php but where to enter 'csrf.disabled' => true',?
I am puzzled why being able to register are not a priority!

@kesselb
Copy link
Contributor

kesselb commented Jan 30, 2019

There is a bigger chance for help if you provide the information from the issue template https://github.com/nextcloud/server/issues/new?labels=bug%2C+0.+Needs+triage&template=Bug_report.md

Please keep in mind that theses errors are from your mail service telling you that it was not possible to send a message. Most of the time this is a configuration problem and not an issue with nextcloud.

@kesselb
Copy link
Contributor

kesselb commented Aug 17, 2019

Unable to reproduce and no activity for a while. Feel free to create a new issue if you see this issue.

@kesselb kesselb closed this as completed Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

6 participants