If any of the ports required by the index service is already occupied by some other process, indexer process won’t be able to bootstrap. You should be able to see the exact error in the indexer.log file.
For the list of ports required for index service, please see:
https://developer.couchbase.com/documentation/server/current/install/install-ports.html