Opensearch holding back update to 3.0

While trying to update a DEB package installation of DocSpace from 2.6 to 3.0 the packages are held back because of opensearch. Any idea why this happens and how to solve it?

Logs below:

sudo apt upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-image-5.15.0-125-generic linux-modules-5.15.0-125-generic openresty-openssl111 openresty-pcre
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libavdevice58 ffmpeg libpostproc55 libavcodec58 libavutil56 libswscale5
  libswresample3 libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  docspace docspace-api docspace-api-system docspace-backup docspace-backup-background docspace-clear-events docspace-common docspace-doceditor docspace-files docspace-files-services
  docspace-healthchecks docspace-login docspace-migration-runner docspace-notify docspace-people-server docspace-proxy docspace-socket docspace-ssoauth docspace-studio
  docspace-studio-notify
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up opensearch (2.18.0) ...
Running OpenSearch Post-Installation Script
ERROR: Something went wrong during demo configuration installation. Please see the logs in /var/log/opensearch/install_demo_configuration.log
dpkg: error processing package opensearch (--configure):
 installed opensearch package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
Errors were encountered while processing:
 opensearch
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks!

I managed to update by adding exit 0 on top of the /var/lib/dpkg/info/opensearch.postinst script.

After that i ran

sudo apt install --only-upgrade docspace docspace-api docspace-api-system docspace-backup docspace-backup-background docspace-clear-events docspace-common docspace-doceditor docspace-files docspace-files-services docspace-healthchecks docspace-login docspace-migration-runner docspace-notify docspace-people-server docspace-proxy docspace-socket docspace-ssoauth docspace-studio docspace-studio-notify

The update seems to have been successful, but i still do not understand why this issue occurs and what issues might it cause on DocSpace.