When restoring a replication slave this error is returned by show slave status\G;
Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires. Replicate the missing transactions from elsewhere, or provision a new slave from backup. Consider increasing the master’s binary log expiration period. The GTID set sent by the slave is ‘3ccc2392-45ed-11e7-bc98-4061862b8d34:1-35942477’, and the missing transactions are ‘fe51e8df-b7c4-11e9-be21-4061862b8d34:1-23882704’.’
Your error means that the binlog containing one of the transaction is already purged on your master.
By looking at how you are extracting GTID position after the backup I can see an error:
Your awk command is getting only one subset from the GTID list. From my example, when the slave tries to connect passing 674a625e-976e-11e5-a8fb-125cab082fc3:1 as gtid_executed, the master will verify that slave has not yet executed subset from 88ae3dea-7042-11eb-a69c-d45d64347a19:1-2 and will have to send those. In case this has already been purged from master you will see the error.
I suggest you to adjust your awk to use the default delimiter (spaces):