Why you install SQL 2017 while your current version is 2014?As I know, all the nodes in an AG must be the same SQL Server version.Since your current version of SQL Server is 2014, there could be compatibility issues with the new version (SQL Server 2017) installing.
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".