generated from coop-cloud/example
Cannot create admin user #47
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think I have done everything correct. But when running:
abra app cmd domain.dk app admin -- username user@email.tldI get this:
I have tried to run user generation this way:
abra app cmd domain.dk app bashRAILS_ENV=production bin/tootctl accounts create user --email user@email.tld --confirmed --role Owner(from https://docs.joinmastodon.org/admin/setup/)But I get:
I don't know how to set these variables.
Any suggestions?
@jeppebundsgaard
Hmmmmm, I assume you're getting
No such accountbecause you don't have a user created with the emailuser@email.tld? However, perhaps, I'm missing something.The reason you're seeing those env vars errors is because when you run
abra app cmd ...this gets injected into the environment:I haven't run this recipe in ages but I'd probably just cat this file once I
abra app bashin.And then copy/pasta the
file_envmachinery so I can expose all those env vars manually in my shell session. Annnnd finally run the command. Which will perhaps give you the same error 😛Good luck!
I learned a lot from your answer, thanks!
abracalls the exact command I tried from bash, and the results are the same.But it still doesn't work. It seems from "Cannot find user role with that name" that the user roles normally shipped with Mastodon are not enabled: https://docs.joinmastodon.org/admin/roles/.
But what do I do now?
@jeppebundsgaard any help? https://github.com/mastodon/mastodon/issues/18813
I think you're in a "mastodon is the problem" zone and not a "coop cloud is the problem" zone now 🙃
I looked into the issue, but it seems to be solved years ago. The command in abra.sh uses Owner with a capital O, as it should.
I managed to use the suggestion in the issue to create a user.
RAILS_ENV=production bundle exec bin/tootctl accounts create myusername --email name@emailand then
RAILS_ENV=production bin/tootctl account approve myusernameSo now I have an approved user, but it is not Owner or Admin, because those roles don't exist.
I guess you are right - this is Mastodon somehow. I'll see what I can find.