C4illin / ConvertX

💾 Self-hosted online file converter. Supports 800+ formats
GNU Affero General Public License v3.0
229 stars 3 forks source link

Bun make container crash #93

Closed NousYeCuites closed 1 month ago

NousYeCuites commented 1 month ago

Already opened a issue on Bun repo (https://github.com/oven-sh/bun/issues/12902) but maybe you can still help!

The container crash at boot, this is the logs it returns:

============================================================
Bun v1.1.18 (5a0b9352) Linux x64 (baseline)
Linux Kernel v5.15.0 | glibc v2.34
Args: "bun" "run" "./src/index.tsx"
Features: jsc Bun.stdin spawn(7) tsconfig(2) 
Builtins: "bun:main" "bun:sqlite" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:path" "node:stream" "node:string_decoder" "node:timers/promises" "node:util/types" 
Elapsed: 168ms | User: 146ms | Sys: 48ms
RSS: 1.00GB | Peak: 92.49MB | Commit: 1.00GB | Faults: 103
panic(main thread): Segmentation fault at address 0x562261209000
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

I run the container on a Ubuntu Server, this is the compose file:

# docker-compose.yml
services:
  convertx: 
    image: ghcr.io/c4illin/convertx
    container_name: ConvertX
    ports:
      - "1202:3000"
    environment: # Defaults are listed below. All are optional.
      - ACCOUNT_REGISTRATION=false # true or false, doesn't matter for the first account (e.g. keep this to false if you only want one account)
      - JWT_SECRET=#REDACTED # will use randomUUID() by default
      - HTTP_ALLOWED=false # setting this to true is unsafe, only set this to true locally
      - PUID=1000
      - PGID=1000
    volumes:
      - /home/hostadm/convertx:/app/data

The file are chown by the 1000 uid and it also crashed without the PUID and PGID variables

C4illin commented 1 month ago

That doesn't look good

Could you test image: ghcr.io/c4illin/convertx:main

NousYeCuites commented 1 month ago

Still outputs this with image: ghcr.io/c4illin/convertx:main:

ConvertX v0.3.2
============================================================
Bun v1.1.21 (70ca2b76) Linux x64 (baseline)
Linux Kernel v5.15.0 | glibc v2.34
Args: "bun" "run" "./src/index.tsx"
Features: jsc Bun.stdin spawn(7) tsconfig(2) no_avx no_avx2 
Builtins: "bun:main" "bun:sqlite" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:path" "node:stream" "node:string_decoder" "node:timers/promises" "node:util/types" 
Elapsed: 32070ms | User: 12153ms | Sys: 4283ms
RSS: 13.80GB | Peak: 7.63GB | Commit: 13.80GB | Faults: 78
panic(main thread): Segmentation fault at address 0x3B948000000
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
 https://bun.report/1.1.21/Br170ca2b7AqgggkyBuos3iE+xxQ2li3gD8vg18Ditm18D_6lmq1Dygtq1D+75i1Dg25l3EA2y7BgggggoC
C4illin commented 1 month ago

cant reproduce it here so I don't know what to do

NousYeCuites commented 1 month ago

I updated the image and now it works. Seems like the update fixed it

C4illin commented 1 month ago

Nice to hear!