Domain relaunch - unknown 500 error

I had matomo running under domain.com/s/ and now i relaunched my project and copied all matomo files to the new domain.com/s/ again (its the same location as before, from a domain perspective. i just changed the internal file paths).
But now there is an 500 error with no more information…
How can i solve this?
I did not find any path specific settings in the config (like absolute paths etc) that could cause this error… :confused:
Matomo should not even know that the internal location has changed…

After a run of matomo maintenance its now working again.