Unable to upgrade Nexus from version OSS 3.30.1-01 to 3.31.0

In the beginning of log you can see: Failed to run task ‘Rebuilding search index of *’;
Any ideas on how to workaround it?