Do you have a monitor, have you checked the /var/log/dmesg files
There could be something hanging waiting for dhcp or something else
Some discussion of the “hang” here
Hanging at Starting DietPi-Autostart custom script… - General Discussion - DietPi Community Forum