It seems that the test_data:install task wants to initialize the new test_data environment. If you are in a repo that has a config/credentials.yml.enc but you are unable to edit that with rails credentials:edit (i.e. because you don't have a config/master.key or haven't set RAILS_MASTER_KEY, the environment creation throws an exception.