Global and skeletal-muscle specific knockout of H6PD provokes a myopathy characterised by metabolic stress, abnormal SR structure, SR stress and activation of the unfolded protein response. Here, H6PD is linked to myopathy.