Users can't make new account (register error)

Today I notice that users can’t create new user account. You can reproduce it at www.llastres.com

The error is related to email (in use), I didn’t made any change in config lately, if it helps.

2 Likes

Obviously, the email isn’t in the database

1 Like

I’ve just had time for a quick test run and I can see an error in the console about the email check - XHRGEThttps://llastres.com/u/check_email?email=jammydodger@jammydodger.monster [HTTP/1.1 500 Internal Server Error 0ms]

I’m not seeing the same on my test site (updated this morning). Is there anything notable about your set-up that could provide some clues? Plugins, customisations, etc?

2 Likes

No customizations or weird code, only oficial plugins and theme components.

I’m on latest build and everything is update.

1 Like

Anything showing up in the logs? Should be at https://llastres.com/logs/ - The 500 error Jammy is seeing would mean something is going wrong server side

4 Likes

This is new for me, can’t figure out how to fix this warnings :pleading_face:

Last four warnings:

4

Message

(facebook) Authentication failure! no_authorization_code: OmniAuth::Strategies::Facebook::NoAuthorizationCodeError, must pass either a code (via URL or by an fbsr_XXX signed request cookie)

Backtrace

/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:163:in log' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:486:in fail!’
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-facebook-9.0.0/lib/omniauth/strategies/facebook.rb:75:in rescue in callback_phase' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-facebook-9.0.0/lib/omniauth/strategies/facebook.rb:70:in callback_phase’
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:238:in callback_call' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:189:in call!’
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:169:in call' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/builder.rb:45:in call’
/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:50:in call' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in call’

Env

HTTP HOSTS: llastres.com

3

Message (3 copies reported)

RegexpError (target of repeat operator is not specified: /@(.+.)?(mailinator.com|*.ru)$/i)
lib/validators/email_validator.rb:45:in initialize' lib/validators/email_validator.rb:45:in new’
lib/validators/email_validator.rb:45:in email_in_restriction_setting?' lib/validators/email_validator.rb:29:in allowed?’
app/controllers/users_controller.rb:545:in check_email' app/controllers/application_controller.rb:413:in block in with_resolved_locale’
app/controllers/application_controller.rb:413:in with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:71:in call’
lib/content_security_policy/middleware.rb:12:in call' lib/middleware/anonymous_cache.rb:368:in call’
config/initializers/100-quiet_logger.rb:23:in call' config/initializers/100-silence_logger.rb:31:in call’
lib/middleware/enforce_hostname.rb:23:in call' lib/middleware/request_tracker.rb:222:in call’

Backtrace

lib/validators/email_validator.rb:45:in initialize' lib/validators/email_validator.rb:45:in new’
lib/validators/email_validator.rb:45:in email_in_restriction_setting?' lib/validators/email_validator.rb:29:in allowed?’
app/controllers/users_controller.rb:545:in check_email' actionpack (7.0.3.1) lib/action_controller/metal/basic_implicit_render.rb:6:in send_action’
actionpack (7.0.3.1) lib/abstract_controller/base.rb:215:in process_action' actionpack (7.0.3.1) lib/action_controller/metal/rendering.rb:53:in process_action’
actionpack (7.0.3.1) lib/abstract_controller/callbacks.rb:234:in block in process_action' activesupport (7.0.3.1) lib/active_support/callbacks.rb:118:in block in run_callbacks’

Env

HTTP HOSTS: llastres.com

2

Message (13 copies reported)

RegexpError (target of repeat operator is not specified: /@(.+.)?(mailinator.com|*.ru)$/i)
lib/validators/email_validator.rb:45:in initialize' lib/validators/email_validator.rb:45:in new’
lib/validators/email_validator.rb:45:in email_in_restriction_setting?' lib/validators/email_validator.rb:29:in allowed?’
app/controllers/users_controller.rb:545:in check_email' app/controllers/application_controller.rb:413:in block in with_resolved_locale’
app/controllers/application_controller.rb:413:in with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:71:in call’
lib/content_security_policy/middleware.rb:12:in call' lib/middleware/anonymous_cache.rb:366:in call’
config/initializers/100-quiet_logger.rb:23:in call' config/initializers/100-silence_logger.rb:31:in call’
lib/middleware/enforce_hostname.rb:23:in call' lib/middleware/request_tracker.rb:222:in call’

Backtrace

lib/validators/email_validator.rb:45:in initialize' lib/validators/email_validator.rb:45:in new’
lib/validators/email_validator.rb:45:in email_in_restriction_setting?' lib/validators/email_validator.rb:29:in allowed?’
app/controllers/users_controller.rb:545:in check_email' actionpack (7.0.3.1) lib/action_controller/metal/basic_implicit_render.rb:6:in send_action’
actionpack (7.0.3.1) lib/abstract_controller/base.rb:215:in process_action' actionpack (7.0.3.1) lib/action_controller/metal/rendering.rb:53:in process_action’
actionpack (7.0.3.1) lib/abstract_controller/callbacks.rb:234:in block in process_action' activesupport (7.0.3.1) lib/active_support/callbacks.rb:118:in block in run_callbacks’

Env

HTTP HOSTS: llastres.com

1

Message (17 copies reported)

RegexpError (target of repeat operator is not specified: /@(.+.)?(mailinator.com|*.ru)$/i)
lib/validators/email_validator.rb:45:in initialize' lib/validators/email_validator.rb:45:in new’
lib/validators/email_validator.rb:45:in email_in_restriction_setting?' lib/validators/email_validator.rb:29:in allowed?’
lib/validators/email_validator.rb:15:in validate_each' app/controllers/users_controller.rb:664:in create’
app/controllers/application_controller.rb:413:in block in with_resolved_locale' app/controllers/application_controller.rb:413:in with_resolved_locale’
lib/middleware/omniauth_bypass_middleware.rb:71:in call' lib/content_security_policy/middleware.rb:12:in call’
lib/middleware/anonymous_cache.rb:368:in call' config/initializers/100-quiet_logger.rb:23:in call’
config/initializers/100-silence_logger.rb:31:in call' lib/middleware/enforce_hostname.rb:23:in call’
lib/middleware/request_tracker.rb:209:in `call’

Backtrace

lib/validators/email_validator.rb:45:in initialize' lib/validators/email_validator.rb:45:in new’
lib/validators/email_validator.rb:45:in email_in_restriction_setting?' lib/validators/email_validator.rb:29:in allowed?’
lib/validators/email_validator.rb:15:in validate_each' activemodel (7.0.3.1) lib/active_model/validator.rb:153:in block in validate’
activemodel (7.0.3.1) lib/active_model/validator.rb:149:in each' activemodel (7.0.3.1) lib/active_model/validator.rb:149:in validate’
activesupport (7.0.3.1) lib/active_support/callbacks.rb:423:in block in make_lambda' activesupport (7.0.3.1) lib/active_support/callbacks.rb:180:in block (2 levels) in halting_and_conditional’

Env

HTTP HOSTS: llastres.com

I don’t have an answer for you, I don’t know the code well enough - but it seems like it is either something with the blocked email domains setting (do you have anything in there?) or the normalize emails setting if you’ve got that turned on?

Hopefully someone else has better knowledge of that code who can give you something more concrete.

3 Likes

Hey Rory! Sorry, I was busy and can’t update. I empty blocked email domains and now It seems to work. I cleared the logs too. I’ll be monitoring the system for new warnings.

1 Like

It would be helpful if you could share whatever was in the blocked emails domain field.

2 Likes

Two fields:

mailinator.com
*.ru

1 Like

@undasein, I tried to create a new account on your forum and it worked on my end.

1 Like

Just to link this up - @Stephen has created a bug topic:

I’m glad you managed to resolve it for your site though @undasein :+1:

And if you remove the wildcard asterisk from .ru it should behave as you intended without blocking all sign ups.

4 Likes

Thank you all for your help. Keep the good work!

2 Likes