Is reinstall really the only way to fix hostname change?

Update the files with correct ip and restart Couchbase it should work.

In version 3.x /opt/couchbase/var/lib/couchbase/ip_start
In version 4.x /opt/couchbase/var/lib/couchbase/ip