I rooted my Motorola moto g 2nd gen (titan) by first unlocking bootloader officially through the Motorola website. After that i flashed twrp recovery and rooted my phone using supersu. to install custom rom, i installed lineage os official file and gapps for google apps. by this time i also had merged my sd card with my internal storage. i could flash lineage os but could not flash gapps. so i accidently wiped all the data including my google os backup and supersu. now when i chech with rootchecker it shows no root access. i can also not install gapps. but lineage os is working. please help me with getting root access with rootchecker and also install gapps so that i could use my phone normally.
May be you have downloaded wrong
Backup the current ROM using TWRP (If anything goes wrong, you can restore)
Goto http://opengapps.org/ and select appropriate platform (ARM), android version, and variant(pico). (Check whether MOTO G second gen is ARM platform, otherwise it will create problems, pico contains google play services)
Also you can download root zip for lineage from this link and flash it : https://download.lineageos.org/extras (ARM)