End device can't join network

Hi, I’m working with smart agriculture libelium end device and Lora gateway composed with Raspberry ¨PI3 and RHF0M301. I registered the end device and gateway in TTN.every thing was working fine and I was receiving data in my application via OTAA. The last week the gateway and the end device had been shut down due to power interruption. when I returned to work on it I have an error to join network (with OTAA)
Can you help me plz. I’m new to this stuff

These some pictures for the live data in my application:
image
image