Preheat the oven to 350°F. Grease and line three 9-inch round cake pans.
In a large bowl, whisk together the flour, cocoa powder, baking soda, and salt. In a separate bowl, mix the melted butter and sugar until smooth. Add the eggs one at a time, then stir in the vanilla.
Mix in the sour cream and sourdough discard until combined. Gradually add the dry ingredients, then slowly stir in the warm coffee until the batter is smooth.
Divide the batter between the pans and bake for about 30 minutes, or until a toothpick comes out clean. Let the cakes cool completely.
For the ganache, melt the chocolate chips and heavy cream together in a glass bowl over a saucepan of simmering water. Stir until smooth, then let cool slightly.
For the frosting, beat the butter and cream cheese until creamy. Add the sour cream, vanilla, and powdered sugar, beating until fluffy. Mix in the cooled ganache until smooth.
Layer and frost the cooled cakes. Slice and enjoy!