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

Anonymous users can not log in or write? #11381

Closed
FinFrn opened this issue Jul 6, 2018 · 11 comments
Closed

Anonymous users can not log in or write? #11381

FinFrn opened this issue Jul 6, 2018 · 11 comments

Comments

@FinFrn
Copy link

FinFrn commented Jul 6, 2018

Hey!

The latest version of 0.66.2 enabled and I noticed that anonymous users can not log in or write?

and the rights do not work either so I recommend everybody to check their rights and their activities ..

It is therefore somewhat suspicious if the rights do not work, but normal user rights are working, and users of anonymous users will have to do it manually.

The server operating system is Ubuntu 16.04.4 LTS ...

@KJ2ME
Copy link

KJ2ME commented Jul 7, 2018

Same problem here, this is the error on log:

Exception while invoking method 'registerUser' Error: Can't call setUserId in a method after calling unblock at MethodInvocation.setUserId (/var/www/Rocket.Chat/programs/server/packages/ddp-common.js:367:13) at AccountsServer.Ap._loginUser (/var/www/Rocket.Chat/programs/server/packages/accounts-base.js:744:20) at MethodInvocation.registerUser (/var/www/Rocket.Chat/programs/server/app/app.js:10709:20) at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at MethodInvocation.methodsMap.(anonymous function) (/var/www/Rocket.Chat/programs/server/packages/rocketchat_lib.js:2504:36) at maybeAuditArgumentChecks (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:1877:12) at DDP._CurrentMethodInvocation.withValue (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:902:126) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at DDPServer._CurrentWriteFence.withValue (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:902:98) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at Promise (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:902:46) at new Promise (<anonymous>:null:null) at Session.method (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:875:23) at /var/www/Rocket.Chat/programs/server/packages/ddp-server.js:754:85

@SamirSaidani
Copy link

SamirSaidani commented Aug 2, 2018

link with #8982

@ghost
Copy link

ghost commented Aug 16, 2018

I have the same problem with 0.68.4

Exception while invoking method 'registerUser' Error: Can't call setUserId in a method after calling unblock
    at MethodInvocation.setUserId (/var/www/rocket/programs/server/packages/ddp-common.js:367:13)
    at AccountsServer.Ap._loginUser (/var/www/rocket/programs/server/packages/accounts-base.js:744:20)
    at MethodInvocation.registerUser (/var/www/rocket/programs/server/app/app.js:10726:20)
    at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30)
    at MethodInvocation.methodsMap.(anonymous function) (/var/www/rocket/programs/server/packages/rocketchat_lib.js:2506:36)
    at maybeAuditArgumentChecks (/var/www/rocket/programs/server/packages/ddp-server.js:1877:12)
    at DDP._CurrentMethodInvocation.withValue (/var/www/rocket/programs/server/packages/ddp-server.js:902:126)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12)
    at DDPServer._CurrentWriteFence.withValue (/var/www/rocket/programs/server/packages/ddp-server.js:902:98)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12)
    at Promise (/var/www/rocket/programs/server/packages/ddp-server.js:902:46)
    at new Promise (<anonymous>:null:null)
    at Session.method (/var/www/rocket/programs/server/packages/ddp-server.js:875:23)
    at /var/www/rocket/programs/server/packages/ddp-server.js:754:85

@FaizanZahid
Copy link

Same issue, getting random JS errors in console, when i try top click "Talk/Write as Anonymous"

If anyone can fix this, it would be great.

@raydebug
Copy link

same issue on 0.70.4

@benjamin-dk
Copy link

benjamin-dk commented Oct 31, 2018

I can confirm the bug in v. 0.70.4 (Ubuntu 18.04, snap installation)

@SteveUNSW
Copy link

Any official fixes?

@aziz75012
Copy link

Same issueon v.0.71.1 - Debian 9 - Apache 2.4.25

Exception while invoking method 'registerUser' Error: Can't call setUserId in a method after calling unblock at MethodInvocation.setUserId (/opt/Rocket.Chat/programs/server/packages/ddp-common.js:367:13) at AccountsServer.Ap._loginUser (/opt/Rocket.Chat/programs/server/packages/accounts-base.js:744:20) at MethodInvocation.registerUser (/opt/Rocket.Chat/programs/server/app/app.js:11352:20) at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at MethodInvocation.methodsMap.(anonymous function) (/opt/Rocket.Chat/programs/server/packages/rocketchat_lib.js:2518:36) at maybeAuditArgumentChecks (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:1877:12) at DDP._CurrentMethodInvocation.withValue (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:902:126) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at DDPServer._CurrentWriteFence.withValue (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:902:98) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at Promise (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:902:46) at new Promise (<anonymous>:null:null) at Session.method (/opt/Rocket.Chat/programs/server/packages/ddp-server.js:875:23) at /opt/Rocket.Chat/programs/server/packages/ddp-server.js:754:85

@wreiske
Copy link
Contributor

wreiske commented Nov 16, 2018

A fix is in, awaiting pull request review and merge.

@FaizanZahid
Copy link

okkk

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

No branches or pull requests

11 participants