Sync takes forever

Per my understanding each time I reboot my server, I need to run sync command to sync the chain
which generates prompt as
Worker 2: Target [XXXX] State:error, Height XXXXX
sometime it tooks a few minues to complete, sometime it tooks hours, but the height gap is almost the same, I’m wondering why~~~

same as my my case,sync never finished