In your log, I don’t see a JOIN confirmation. It looks like you are sending data without being connected to your LoRaWAN server.
Setup your RAK3172 correct to match with your gateway region (frequencies)
Setup your RAK3172 in your LoRaWAN server. Make sure DevEUI, AppEUI, AppKey are correct.
Send an AT+JOIN command to the RAK3172 and wait for it to connect to the LoRaWAN server.
Then try again after the device has joined the LNS.
Confirmed messages are not a guarantee that the packet is really received by the LoRaWAN server. It just means that the RAk3172 is re-sending it if it doesn’t get an ACK from the server.
It still can fail due to
node is too far from the gateway, doesn’t receive the ACK’s
node is too close to the gateway, which can lead to over-saturation of the signal and the packets are nor received
network latency between the gateway and the LoRaWAN server
RX time windows are set slightly different in the RAK3172 and in the LoRaWAN server.
On the LoRaWAN server logs, can you see the packets arriving, are the same packages received multiple times?
On the gateway traffic logs, can you see the uplink data packets and the downlink ACK packets?
You can change the number of retries for confirmed packets with AT+RETY. Try to set the number or retries higher.