Arduino Mega + Ethernet shield problems

I want to use Arduino Mega and Ethernet shield in my home automation MQTT project and i have some isues with this boards.
Sometimes after restart or if the power supply fails the ethernet shield remains at this stage and no longer connects to the MQTT server.

why is he doing this?
can someone help me ?

Thank you