Sync between device(couchbase lite), sync gateway, couchbase server is not working properly

From error it’s quite apparent that the Sync Gateway is unable to connect to the server . As suggested in error message, start with confirming the server setup and ensuring that it’s reachable . I cant see why restarting the couchbase lite would have any effect on this but I would start with addressing the sync gateway - server connection issues and we can follow up with client sync issues.