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

matrix-dendrite-create-account parses arguments incorrectly #2057

Closed
madprogramer opened this issue Aug 25, 2022 · 1 comment
Closed

matrix-dendrite-create-account parses arguments incorrectly #2057

madprogramer opened this issue Aug 25, 2022 · 1 comment

Comments

@madprogramer
Copy link

Describe the bug
Attempting to create an account on the dendrite server with the matrix-dendrite-create-account util fails.

To Reproduce
Enable Dendrite instead of Synapse:

# The Matrix homeserver software to install.
# See `roles/matrix-base/defaults/main.yml` for valid options.
matrix_homeserver_implementation: dendrite

ssh into your server and attempt to create a new account as follows:

/usr/local/bin/matrix-dendrite-create-account myaccount weakpassword 0 

This input is unrecognised, giving the expected usage of the command as output:

Usage: /usr/local/bin/matrix-dendrite-create-account <username> <password> <admin access: 0 or 1>

However, if admin access is not provided, an account is generated successfully with the following message:

/usr/local/bin/matrix-dendrite-create-account: line 12: [: : integer expression expected
time="2022-08-25T20:10:04Z" level=info msg="Created account: myaccount (AccessToken: SOMETOKEN)"

Expected behavior
Without any error message, we should expect to see:

time="2022-08-25T20:10:04Z" level=info msg="Created account: myaccount (AccessToken: SOMETOKEN)"
@spantaleev
Copy link
Owner

Thanks for the report! It should be fixed now!

I wonder what this is about though:

/usr/local/bin/matrix-dendrite-create-account: line 12: [: : integer expression expected

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