Problem with connection between node and server

Good Day,
I’ve installed lora server + lora app server on AWS ec2 ubuntu18.04 machine.
And I have installed lora gateway os base on RAK831 gateway connected to raspberry pi.
the problem is that the lora server and lora app server receive the join request and reply with success, but the node shows failed to join network, as you can see in the screenshot.
Thanks in advance.

I’m going to close this topic as there is already an other topic covering OTAA related issues: (quick hint: did you set the LoRaWAN MAC version correctly in the device-profile?)