OnlyOffice on OpenShift - Postgresql tables not found

I installed OnlyOffice on Openshift according to this documentation: GitHub - ONLYOFFICE/Kubernetes-Docs: ONLYOFFICE Docs for Kubernetes

I used a newly installed PostgreSQL server also installed via Helm charts.

The converter pod is starting and running, but the docservice container crashes with the following error messages:

[2026-01-28T09:50:24.320] [ERROR] [docId] [userId] nodeJS - DB table "doc_changes" does not exist
[2026-01-28T09:50:24.321] [ERROR] [docId] [userId] nodeJS - DB table "task_result" does not exist

The database onlyoffice exists but it looks like the tables are not getting set up by the docservice container.

Should this be done by the helm charts setup or do I need to create the tables manually? If I needed to create them manually how would I do that? I found in anther thread that there should be a “createdb.sql” script in the docservice container but this it’s not there.

1 Like

In the meantime I found the script online (https://raw.githubusercontent.com/ONLYOFFICE/server/master/schema/postgresql/createdb.sql)
and ran it manually on the PostgreSQL DB. After that the containers are running fine.

Apparently this DB initialization is not part of the helm charts. There should be some sort of init container or job that runs.

1 Like

Hey @michizubi-SRF, :wave:

Great to hear you got it running after manually applying the createdb.sql script — thanks for sharing the solution!

Just to reiterate one more time: