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

"Captcha incorrect." is shown when creating admin user from /setup #1372

Closed
tateisu opened this issue Jan 25, 2021 · 8 comments
Closed

"Captcha incorrect." is shown when creating admin user from /setup #1372

tateisu opened this issue Jan 25, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@tateisu
Copy link

tateisu commented Jan 25, 2021

Issue Summary

  • create new lemmy instance, using docker, dessalines/lemmy:0.9.0 and dessalines/lemmy-ui:0.9.0.
  • setup section in lemmy.hjson was ignored, browser shows https://{server-name}/setup page.
  • "Captcha incorrect." is shown when registering admin user. but captcha is not shown at all.
lemmy_1     | [2021-01-25T20:10:58Z ERROR lemmy_websocket::handlers] Error during message handling {"error":"captcha_incorrect"}
@tateisu tateisu added the bug Something isn't working label Jan 25, 2021
@tateisu
Copy link
Author

tateisu commented Jan 25, 2021

image

@tateisu tateisu changed the title "Captcha incorrect." is shown hen creating admin user on /setup "Captcha incorrect." is shown when creating admin user from /setup Jan 25, 2021
@dessalines
Copy link
Member

Thanks, I'll take a look.

@dessalines
Copy link
Member

I just tested this a ton, and its working correctly. Do you already have an admin in the DB?

if !no_admins && Settings::get().captcha.enabled {

It would only throw an error if you already have an admin created somehow in the DB.

@tateisu
Copy link
Author

tateisu commented Jan 26, 2021 via email

@dessalines
Copy link
Member

I'm guessing because you somehow set up an admin user, but never set up the site:

    if (!this.state.siteRes.site_view) {
      this.context.router.history.push('/setup');
    }

Clear out the admin user, or start from a fresh volumes folder / DB.

@tateisu
Copy link
Author

tateisu commented Jan 26, 2021

I haven't manually connected to the DB. The admin user must have been created in the setup section of lemmy.hjson.

@tateisu
Copy link
Author

tateisu commented Jan 26, 2021

following steps works for me. thanks!

  • docker-compose down
  • sudo, then rm -fr volumes/postgres/*
  • comment out setup section in lemmy.hjson
  • docker-compose up -d

@dessalines
Copy link
Member

Ya you got it, if the volumes folder gets not you sometimes have to clear it out if things got set up wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants