ERROR (242): Failed to start the server: error: {} #83

Open
opened 2026-04-05 16:16:26 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @edbrk on 12/13/2025

Hello,

I am trying to run this app on K3S, i believe it should be able to work (no reason why it should not really as it runs in docker fine). Although this is not currently supported i believe the issue im about to describe is not related to how i am running the application, just thought it should be of note regardless.

I have configured the application and got the pod to start, it can connect to all the supporting services it seems (use to have errors that indicated it coulnd't connect but now don't see them as i resolved them). However, i am getting a very nondescript error regarding the backend server of it being unable to start:

[0] [17:31:07.377] ERROR (242): Failed to start the server: [1] [0] error: {} [1] [0] node apps/open-archiver/dist/index.js exited with code 1

The full log for the container starting is:

``Scope: all 5 workspace projects
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +630
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 630, reused 0, downloaded 89, added 89
Progress: resolved 630, reused 0, downloaded 259, added 258
Progress: resolved 630, reused 0, downloaded 453, added 453
Progress: resolved 630, reused 0, downloaded 553, added 547
Progress: resolved 630, reused 0, downloaded 584, added 561
Progress: resolved 630, reused 0, downloaded 630, added 630, done
.../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.25.6/node_modules/esbuild postinstall$ node install.js
.../esbuild@0.25.6/node_modules/esbuild postinstall: Done
.../esbuild@0.18.20/node_modules/esbuild postinstall: Done

dependencies:

  • concurrently 9.2.0
  • dotenv-cli 8.0.0

devDependencies: skipped

╭ Warning ─────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: msgpackr-extract, sqlite3. │
│ Run "pnpm approve-builds" to pick which dependencies should be allowed │
│ to run scripts. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯

packages/frontend prepare$ svelte-kit sync || echo ''
packages/frontend prepare: Missing Svelte config file in /app/packages/frontend — skipping
packages/frontend prepare: Done
Done in 6.9s using pnpm v10.13.1

open-archiver@0.4.0 db:migrate /app
dotenv -- pnpm --filter @open-archiver/backend db:migrate

@open-archiver/backend@0.1.0 db:migrate /app/packages/backend
node dist/database/migrate.js

[dotenv@17.2.0] injecting env (0) from .env (tip: ⚙️ override existing env vars with { override: true })
Running migrations...
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P06',
message: 'schema "drizzle" already exists, skipping',
file: 'schemacmds.c',
line: '132',
routine: 'CreateSchemaCommand'
}
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P07',
message: 'relation "__drizzle_migrations" already exists, skipping',
file: 'parse_utilcmd.c',
line: '207',
routine: 'transformCreateStmt'
}
Migrations completed!

open-archiver@0.4.0 docker-start:oss /app
concurrently "pnpm start:workers" "pnpm start:oss"

[0]
[0] > open-archiver@0.4.0 start:workers /app
[0] > dotenv -- concurrently "pnpm --filter @open-archiver/backend start:ingestion-worker" "pnpm --filter @open-archiver/backend start:indexing-worker" "pnpm --filter @open-archiver/backend start:sync-scheduler"
[0]
[1]
[1] > open-archiver@0.4.0 start:oss /app
[1] > dotenv -- concurrently "node apps/open-archiver/dist/index.js" "pnpm --filter @open-archiver/frontend start"
[1]
[0] [0]
[0] [0] > @open-archiver/backend@0.1.0 start:ingestion-worker /app/packages/backend
[0] [0] > node dist/workers/ingestion.worker.js
[0] [0]
[0] [1]
[0] [1] > @open-archiver/backend@0.1.0 start:indexing-worker /app/packages/backend
[0] [1] > node dist/workers/indexing.worker.js
[0] [1]
[1] [1]
[1] [1] > @open-archiver/frontend@0.0.1 start /app/packages/frontend
[1] [1] > node build/index.js
[1] [1]
[1] [1] Listening on http://0.0.0.0:3000
[0] [2]
[0] [2] > @open-archiver/backend@0.1.0 start:sync-scheduler /app/packages/backend
[0] [2] > node dist/jobs/schedulers/sync-scheduler.js
[0] [2]
[0] [2] Continuous sync scheduler started.
[0] [1] Indexing worker started
[0] [0] Ingestion worker started
[1] [0] [dotenv@17.2.0] injecting env (0) from .env (tip: ⚙️ suppress all logs with { quiet: true })
[1] [0] [dotenv@17.2.0] injecting env (0) from .env (tip: ⚙️ write to custom object with { processEnv: myObject })
[1] [0] [17:31:07.377] ERROR (242): Failed to start the server:
[1] [0] error: {}
[1] [0] node apps/open-archiver/dist/index.js exited with code 1
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[1] [1] Proxy request failed: TypeError: fetch failed
[1] [1] at node:internal/deps/undici/undici:14900:13
[1] [1] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[1] [1] [cause]: AggregateError [ECONNREFUSED]:
[1] [1] at internalConnectMultiple (node:net:1134:18)
[1] [1] at afterConnectMultiple (node:net:1715:7)
[1] [1] at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
[1] [1] code: 'ECONNREFUSED',
[1] [1] [errors]: [ [Error], [Error] ]
[1] [1] }
[1] [1] }
[1] [1] Failed to get auth status: {"message":"Failed to connect to the backend service. {}"}
[1] [1] Proxy request failed: TypeError: fetch failed
[1] [1] at node:internal/deps/undici/undici:14900:13
[1] [1] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[1] [1] [cause]: AggregateError [ECONNREFUSED]:
[1] [1] at internalConnectMultiple (node:net:1134:18)
[1] [1] at afterConnectMultiple (node:net:1715:7)
[1] [1] at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
[1] [1] code: 'ECONNREFUSED',
[1] [1] [errors]: [ [Error], [Error] ]
[1] [1] }
[1] [1] }
[1] [1] Proxy request failed: TypeError: fetch failed
[1] [1] at node:internal/deps/undici/undici:14900:13
[1] [1] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[1] [1] [cause]: AggregateError [ECONNREFUSED]:
[1] [1] at internalConnectMultiple (node:net:1134:18)
[1] [1] at afterConnectMultiple (node:net:1715:7)
[1] [1] at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
[1] [1] code: 'ECONNREFUSED',
[1] [1] [errors]: [ [Error], [Error] ]
[1] [1] }
[1] [1] }
[1] [1] en``

Any help would be appreciated. Thank you.

*Originally created by @edbrk on 12/13/2025* Hello, I am trying to run this app on K3S, i believe it should be able to work (no reason why it should not really as it runs in docker fine). Although this is not currently supported i believe the issue im about to describe is not related to how i am running the application, just thought it should be of note regardless. I have configured the application and got the pod to start, it can connect to all the supporting services it seems (use to have errors that indicated it coulnd't connect but now don't see them as i resolved them). However, i am getting a very nondescript error regarding the backend server of it being unable to start: `[0] [17:31:07.377] ERROR (242): Failed to start the server: [1] [0] error: {} [1] [0] node apps/open-archiver/dist/index.js exited with code 1` The full log for the container starting is: ``Scope: all 5 workspace projects Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +630 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 630, reused 0, downloaded 89, added 89 Progress: resolved 630, reused 0, downloaded 259, added 258 Progress: resolved 630, reused 0, downloaded 453, added 453 Progress: resolved 630, reused 0, downloaded 553, added 547 Progress: resolved 630, reused 0, downloaded 584, added 561 Progress: resolved 630, reused 0, downloaded 630, added 630, done .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../esbuild@0.25.6/node_modules/esbuild postinstall$ node install.js .../esbuild@0.25.6/node_modules/esbuild postinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall: Done dependencies: + concurrently 9.2.0 + dotenv-cli 8.0.0 devDependencies: skipped ╭ Warning ─────────────────────────────────────────────────────────────────────╮ │ │ │ Ignored build scripts: msgpackr-extract, sqlite3. │ │ Run "pnpm approve-builds" to pick which dependencies should be allowed │ │ to run scripts. │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ packages/frontend prepare$ svelte-kit sync || echo '' packages/frontend prepare: Missing Svelte config file in /app/packages/frontend — skipping packages/frontend prepare: Done Done in 6.9s using pnpm v10.13.1 > open-archiver@0.4.0 db:migrate /app > dotenv -- pnpm --filter @open-archiver/backend db:migrate > @open-archiver/backend@0.1.0 db:migrate /app/packages/backend > node dist/database/migrate.js [dotenv@17.2.0] injecting env (0) from .env (tip: ⚙️ override existing env vars with { override: true }) Running migrations... { severity_local: 'NOTICE', severity: 'NOTICE', code: '42P06', message: 'schema "drizzle" already exists, skipping', file: 'schemacmds.c', line: '132', routine: 'CreateSchemaCommand' } { severity_local: 'NOTICE', severity: 'NOTICE', code: '42P07', message: 'relation "__drizzle_migrations" already exists, skipping', file: 'parse_utilcmd.c', line: '207', routine: 'transformCreateStmt' } Migrations completed! > open-archiver@0.4.0 docker-start:oss /app > concurrently "pnpm start:workers" "pnpm start:oss" [0] [0] > open-archiver@0.4.0 start:workers /app [0] > dotenv -- concurrently "pnpm --filter @open-archiver/backend start:ingestion-worker" "pnpm --filter @open-archiver/backend start:indexing-worker" "pnpm --filter @open-archiver/backend start:sync-scheduler" [0] [1] [1] > open-archiver@0.4.0 start:oss /app [1] > dotenv -- concurrently "node apps/open-archiver/dist/index.js" "pnpm --filter @open-archiver/frontend start" [1] [0] [0] [0] [0] > @open-archiver/backend@0.1.0 start:ingestion-worker /app/packages/backend [0] [0] > node dist/workers/ingestion.worker.js [0] [0] [0] [1] [0] [1] > @open-archiver/backend@0.1.0 start:indexing-worker /app/packages/backend [0] [1] > node dist/workers/indexing.worker.js [0] [1] [1] [1] [1] [1] > @open-archiver/frontend@0.0.1 start /app/packages/frontend [1] [1] > node build/index.js [1] [1] [1] [1] Listening on http://0.0.0.0:3000 [0] [2] [0] [2] > @open-archiver/backend@0.1.0 start:sync-scheduler /app/packages/backend [0] [2] > node dist/jobs/schedulers/sync-scheduler.js [0] [2] [0] [2] Continuous sync scheduler started. [0] [1] Indexing worker started [0] [0] Ingestion worker started [1] [0] [dotenv@17.2.0] injecting env (0) from .env (tip: ⚙️ suppress all logs with { quiet: true }) [1] [0] [dotenv@17.2.0] injecting env (0) from .env (tip: ⚙️ write to custom object with { processEnv: myObject }) [1] [0] [17:31:07.377] ERROR (242): Failed to start the server: [1] [0] error: {} [1] [0] node apps/open-archiver/dist/index.js exited with code 1 [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [1] [1] Proxy request failed: TypeError: fetch failed [1] [1] at node:internal/deps/undici/undici:14900:13 [1] [1] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [1] [1] [cause]: AggregateError [ECONNREFUSED]: [1] [1] at internalConnectMultiple (node:net:1134:18) [1] [1] at afterConnectMultiple (node:net:1715:7) [1] [1] at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { [1] [1] code: 'ECONNREFUSED', [1] [1] [errors]: [ [Error], [Error] ] [1] [1] } [1] [1] } [1] [1] Failed to get auth status: {"message":"Failed to connect to the backend service. {}"} [1] [1] Proxy request failed: TypeError: fetch failed [1] [1] at node:internal/deps/undici/undici:14900:13 [1] [1] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [1] [1] [cause]: AggregateError [ECONNREFUSED]: [1] [1] at internalConnectMultiple (node:net:1134:18) [1] [1] at afterConnectMultiple (node:net:1715:7) [1] [1] at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { [1] [1] code: 'ECONNREFUSED', [1] [1] [errors]: [ [Error], [Error] ] [1] [1] } [1] [1] } [1] [1] Proxy request failed: TypeError: fetch failed [1] [1] at node:internal/deps/undici/undici:14900:13 [1] [1] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [1] [1] [cause]: AggregateError [ECONNREFUSED]: [1] [1] at internalConnectMultiple (node:net:1134:18) [1] [1] at afterConnectMultiple (node:net:1715:7) [1] [1] at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { [1] [1] code: 'ECONNREFUSED', [1] [1] [errors]: [ [Error], [Error] ] [1] [1] } [1] [1] } [1] [1] en`` Any help would be appreciated. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OpenArchiver#83