First, stay organized.
From the very beginning, implement a canning system. For example, jars, lids, and rings are used in the canning process, but not all can be re-used. Visibly mark used lids to denote they are out of commission for the next round of canning. This will prevent unnecessary seal failures.
Second, rotate the pantry.
To ensure the nutritive value of the food you have preserved, use products within a year of being canned. A quick way to track this is by making labels with tape and a marker or blank stickers; this is a simple approach you can take to enjoy home-canned products at their best quality. Keep inventory of what products were used, liked and disliked. Use this information to plan for next season's canning escapades.
Pro tip: Store jars with rings removed to allow for easier detection of seal failure. When removing the ring, wash, rinse, and dry to combat mold growth and corrosion.
Finally, avoid spoilage.
Prevention is key because once spoilage has contaminated a product, it cannot be salvaged. Using the proper amount of headspace when canning allows for a good seal in a low oxygen environment. If too much headspace is left, there may be excess oxygen that was not driven from the jar during processing. If the headspace is too little, the product may siphon out of the jar, get deposited on the rim, and prevent a clean seal.
While molds can come in many different colors, not every type of discoloration found in a home-canned food is indicative of spoilage organisms. Sometimes, the undersides of the metal lid discolors. No need to panic if the product was properly processed and sealed. According to the University of Georgia, So Easy to Preserve, “natural compounds in some foods, particularly acids, corrode metal and make a dark deposit on the underside of jar lids.”
If you'd like to learn more about ways to enjoy home-canned goods and avoid spoilage, the UC Master Food Preserver Program has volunteers that are a wealth of information. Find a program near you to attend public classes on home food preservation or go through a training program.