Music star ratings have disappeared

Are your media files stored on external or networked drives?
If so, do you have this preference still activated? (You should not)
Settings - Server - Library - ‘Empty trash automatically after every scan’