The reason the carpet s pulling away from the vinyl is there are a specific vinyl cements used to glue to the finished vinyl surface . I use HH - 66 it smells like the brush on cement we used decades ago to repair an blow up pool . RH Adhesives Br HH-66 PVC 4 oz Vinyl Cement Glue with Brush 791689822532 | eBay