What did you get a shock to? - that is what else are you touching ? Any ground bus that can give a shock (to earth) simply isn't a ground ! No amount of leakage current could raise the voltage that much.
I would suggest a thorough checkout of the wiring associated with the panel, including RCD test, and a PAT test on the machine.