• March 26, 2023, 7:50 p.m.

    I ended up having to make a Misago forum system live before I fully understand it all. Working rather well but two issues:
    It's a vanilla Docker install.
    1. Registration gives an 'unknown error' message but works. The message is putting people off.
    2. Somewhat randomly people get the 'unknown error' message replying to threads - for some people it seems to happen all the time, for me randomly. Can't see mach logic to it.
    I've found this thread 'misago-project.org/t/unknown-error-on-register-form/1091/' which describes the first problem, which relates to email service set-up. It's quite possible I've fouled this up. I need to go to my hosting provider to find out their email server details, but I don't know where I'g go in the Misago code to fix it. Is it possible that the post problem is related to the email too?
    Edit: I find that I can't post a private thread - this suggests it is the same problem, connected to user name lookup
    Edit2: I think I've got it. Email config is fouled up, leading to registration sending error message when it sends confirming email, or on password change, and on reply to post by user who has 'send email on reply' set.

  • March 27, 2023, 12:44 a.m.

    E-mail configuration is part of appctl utility, the same one you've used for installation.

    To change email configuration run ./appctl email in your console. It will ask you questions about e-mail configuration. After you change e-mail config you will be asked to run ./appctl rebuild to make site use new configuration.

    After site was rebuild and started, you can test e-mail like this:

    ./appctl manage.py sendtestemail example@mail.com

    Just replace example@mail.com with your e-mail.

    If your email is configured correctly, you will get an email:

    Zrzut ekranu 2023-03-27 o 00.43.47.png

    Zrzut ekranu 2023-03-27 o 00.43.47.png

    PNG, 20.4 KB, uploaded by rafalp on March 27, 2023.

  • March 27, 2023, 12:52 a.m.

    If you are curious which part of emails setup is wrong, there are two files with logs in logs directory:

    • misago.log is Misago's errors log.
    • uwsgi.log is Python server errors log.
  • March 27, 2023, 12:59 a.m.

    If you don't require users to activate their accounts with activation link in welcome messages, you can use ./appctl email to disable e-mails and keep them off until you have more time to fiddle with them.

  • March 27, 2023, 1:06 a.m.

    I'll change Misago's behavior in future release so incorrect e-mail setup will only prevent Misago from sending e-mails, but will not interrupt users in other way from interacting with the site.

    GH issue for tracking: github.com/rafalp/Misago/issues/1510

  • March 27, 2023, 10:46 a.m.

    Thanks for all that Rafal,
    My configuration mistake was to turn on SSL. It's giving an exception saying that the SSL protocol is the wrong version when it tries to negotiate with the server.
    I'm taking the site (dprevived.com) down to fix an a few minutes, so I won't need the to just turn them off. Is it credible that the email problem is also causing users to not be able to reply - or send private threads? It seemed to me that any posts involving a user lookup were liable to fail sometimes, and that email alerts were the issue.

  • March 27, 2023, 11:49 a.m.

    That seems to have fixed it.

  • March 27, 2023, 3:31 p.m.

    Yes, everything involving sending email will fail on wrong configuration. If replying on thread will trigger email notification to some users, whole action will report error.