I've installed Mastodon (v2.8.4) on Docker using these instructions at Linode. All is runnig fine, and I get to the registration page. I then want to approve emails manually using the command:
$docker-compose run web rails mastodon:confirm_email [email protected]
But the above command comes back with the following error:
Starting mastodon_db_1 ... done
Starting mastodon_redis_1 ... done
rake aborted!
Don't know how to build task 'mastodon:confirm_email' (See the list of available tasks with `rake --tasks`)
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/opt/ruby/bin/bundle:23:in `load'
/opt/ruby/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
There is indeed no confirm_email task:
$ docker-compose run web bundle exec rake --tasks | grep confirm_email
Starting mastodon_db_1 ... done
Starting mastodon_redis_1 ... done
$
Any ideas?
Thank you.
Linode's instructions are 7 months out of date. The correct invocation is
now through the tootctl command. See here:
https://docs.joinmastodon.org/administration/post-installation/ under
"Creating an admin account"
On Mon, May 27, 2019 at 7:29 AM Adriano Lucas notifications@github.com
wrote:
I've installed Mastodon on Docker using the instruction at Linode
https://www.linode.com/docs/applications/messaging/install-mastodon-on-ubuntu-1604/#install-docker.
All is runnig fine, and I get to the registration page. I then want to
approve emails manually using the command:docker-compose run web rails mastodon:confirm_email USER_EMAIL=
[email protected]But the above command comes back with the following error:
Starting mastodon_db_1 ... done
Starting mastodon_redis_1 ... done
rake aborted!
Don't know how to build task 'mastodon:confirm_email' (See the list of available tasks withrake --tasks)
/opt/mastodon/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in<top (required)>' /opt/ruby/bin/bundle:23:inload'
/opt/ruby/bin/bundle:23:in `'
(See full trace by running task with --trace)There is indeed no confirm_email task:
$ docker-compose run web bundle exec rake --tasks | grep confirm_email
Starting mastodon_db_1 ... done
Starting mastodon_redis_1 ... doneAny ideas?
Thank you.
โ
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tootsuite/mastodon/issues/10858?email_source=notifications&email_token=AABZCV75AZLZIMMXNVWAEJLPXPAZ3A5CNFSM4HP3BPI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWAHKKA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABZCV5WEFYCC7DVDJONOP3PXPAZ3ANCNFSM4HP3BPIQ
.
rails mastodon:confirm_email has been obsoleted. You should use tootctl.
$ ./bin/tootctl modify --email [email protected] --confirm
For those using Docker, this is how I confirmed a given user (here, _myuser_)โthere may be an easier way, though (Ubuntu 16.04, Mastodon v2.8.4):
docker~$ docker container ls | grep mastodon_web
CONTAINER ID IMAGE ...
3545a72ba4f7 tootsuite/mastodon:v2.8.4 ... mastodon_web_1
docker~$ docker exec -i -t 3545a72ba4f7 /bin/bash
mastodon@3545a72ba4f7:~$
mastodon@3545a72ba4f7:~$ RAILS_ENV=production bin/tootctl account modify myuser --confirm
OK
mastodon@3545a72ba4f7:~$
Give the user admin rights:
mastodon@3545a72ba4f7:~$ RAILS_ENV=production bin/tootctl accounts modify myuser --role admin
OK
mastodon@3545a72ba4f7:~$
Most helpful comment
For those using Docker, this is how I confirmed a given user (here, _myuser_)โthere may be an easier way, though (Ubuntu 16.04, Mastodon v2.8.4):
Give the user admin rights: