Back up your database before using the mass template association tool. Do not attempt to associate all your nodes at once. Doing so takes a long time, makes debugging more difficult, and might even lead to association failure. Associate in batches of 20-30 nodes at a time. For your first associated group, start with a small batch to ensure that the process works properly.