Out of resources when opening file '/var/tmp/#sql_2414_1.MAD' (Errcode: 24)