The primary user creation command does not work rake admin:create

AI-generated summary

A user, tatar, encountered issues with email verification on a newly deployed Discourse instance using Yandex SMTP, as it requires SSL/TLS encryption. Attempting to bypass this by manually creating an admin via rake admin:create failed due to a missing Rakefile. simon clarified that the command must be run inside the Discourse container using ./launcher enter app. pfaffman suggested configuring the START_TLS environment variable in app.yml and rebuilding the instance to resolve the SMTP issue.

Hi All!

I started deploying and configuring discourse from a ready made DigitalOcean droplet

as a mail server - I decided to use smtp from yandex

but I ran into a problem sending mail, because of which I can not verify my starting administrator account

 UNEXPECTED ERROR

530 5.7.7 Email sending without SSL/TLS encryption is not allowed. Please see: https://yandex.ru/support/mail/mail-clients/ssl.html

I have not been able to solve this problem, maybe someone knows what else you can try to do

After that, I decided to create an administrator manually - via the console, using command - rake admin:create

but I got an error

rake aborted!

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

(See full trace by running task with --trace)

Please help me

Did you run ./launcher enter app from your /var/discourse directory before running the rake admin:create command?

No, I didn’t. Thanks for the help!

There is a start tls environment variable in app.yml. You’ll need to edit it by hand and rebuild.