Replication fails because data_dir directory does not exist

If you activate master or slave replication, provision fails because data_dir directory does not exist