Home assistant stuck in "Preparing Home Assistant"

Home assistant stuck in “Preparing Home Assistant”
am using a raspberry pi 4 b
when i do “supervisor log” i get a red error ( 500 server error)
what is the solution?
this problem wasted a lot of my time already