Skip to content

Error on gateway container when deploying in Google Cloud VM #1203

@frolesti

Description

@frolesti

What Happened?

I have followed all the steps on the Deployment guide (which maybe could use an update) with the latest main version. I am getting the following error when setting up the gateway container, which is preventing the complete deployment of the application:

root@alta-vm:/home/frolesti4_gmail_com/OpenDataCapture# docker logs open-data-capture-gateway-1
Server started at http://localhost:80
Server started at http://localhost:80
ReferenceError: document is not defined
    at Translator.changeLanguage (file:///app/dist/server/entry-server.js:31116:5)
    at Translator.replacementMethod (file:///app/dist/server/entry-server.js:31087:19)
    at Translator.init (file:///app/dist/server/entry-server.js:31130:10)
    at file:///app/dist/server/entry-server.js:107047:6
    at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
    at async file:///app/dist/main.js:74083:26
[01:06:48.611] ERROR (1): request errored
    req: "GET /"
    res: 500
    responseTime: 549
    err: {
      "type": "Error",
      "message": "failed with status code 500",
      "stack":
          Error: failed with status code 500
              at onResFinished (file:///app/dist/main.js:50710:46)
              at ServerResponse.onResponseComplete (file:///app/dist/main.js:50761:18)
              at ServerResponse.emit (node:events:531:35)
              at onFinish (node:_http_outgoing:1082:10)
              at callback (node:internal/streams/writable:766:21)
              at afterWrite (node:internal/streams/writable:710:5)
              at afterWriteTick (node:internal/streams/writable:696:10)
              at process.processTicksAndRejections (node:internal/process/task_queues:89:21)
    }
root@alta-vm:/home/frolesti4_gmail_com/OpenDataCapture# 

Is this something known? I am having a lot of issues with the deployment. I was able to deploy it two weeks ago with another version of main, something must have changed.

What Did You Expect?

I expect the gateway container to initiate properly

Operating System

Ubuntu 25.04

Browser (if applicable)

Chrome

Steps to Reproduce

No response

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions