docker icon indicating copy to clipboard operation
docker copied to clipboard

Crahses at startup, container won't run in arm64

Open Chillsmeit opened this issue 2 years ago • 4 comments

Hello, I'm using a RaspberryPi5 8Gb with the Raspberry Pi OS Lite image, when I try to startup the server using your docker-compose.yml template for sqlite, the container won't start and just crashes. Here's the docker-compose.yml (I tried to change it to my settings too but no dice)

version: "3.9"
services:
  spacebar:
    image: spacebarchat/server:latest-sqlite-arm64
    ports:
      - "3001:3001"
    volumes:
      - spacebar-database:/exec/persistent/database/
      - spacebar-storage:/exec/persistent/storage
    environment:
      DATABASE: "/exec/persistent/database/database.db"
      STORAGE_PROVIDER: "file"
      STORAGE_LOCATION: "/exec/persistent/storage/"
      PORT: "3001"
volumes:
  spacebar-database:
  spacebar-storage:

Here are the logs: _spacebar-spacebar-1_logs.txt

Chillsmeit avatar Dec 12 '23 20:12 Chillsmeit

It's still broken almost a year later...

vladimmi avatar Oct 09 '24 12:10 vladimmi

Same here. Full logs:

> [email protected] start
> node dist/bundle/start.js


███████╗██████╗  █████╗  ██████╗███████╗██████╗  █████╗ ██████╗ 
██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗
███████╗██████╔╝███████║██║     █████╗  ██████╔╝███████║██████╔╝
╚════██║██╔═══╝ ██╔══██║██║     ██╔══╝  ██╔══██╗██╔══██║██╔══██╗
███████║██║     ██║  ██║╚██████╗███████╗██████╔╝██║  ██║██║  ██║
╚══════╝╚═╝     ╚═╝  ╚═╝ ╚═════╝╚══════╝╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝

                spacebar-server | Pre-release (3585e93)

Commit Hash: 3585e9316ee454f18dd28f75838b317544dbe53c (3585e93)
Cores: 4 (Using 1 thread(s).)

[Path] running in /exec/dist/bundle
[CPU] Cortex-A72 Cores x4
[System] linux arm64
[Process] running with PID: 18
[Process] starting with 1 threads
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice To update run: npm install -g [email protected]
npm notice
npm error path /exec
npm error command failed
npm error signal SIGSEGV
npm error command sh -c node dist/bundle/start.js

npm error A complete log of this run can be found in: /home/spacebar/.npm/_logs/2024-10-12T16_50_38_528Z-debug-0.log
0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config:load:file:/usr/local/lib/node_modules/npm/npmrc
4 silly config:load:file:/exec/.npmrc
5 silly config:load:file:/home/spacebar/.npmrc
6 silly config:load:file:/usr/local/etc/npmrc
7 verbose title npm run start
8 verbose argv "run" "start"
9 verbose logfile logs-max:10 dir:/home/spacebar/.npm/_logs/2024-10-12T16_47_46_783Z-
10 verbose logfile /home/spacebar/.npm/_logs/2024-10-12T16_47_46_783Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 verbose stack Error: command failed
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
13 verbose stack     at ChildProcess.emit (node:events:517:28)
13 verbose stack     at maybeClose (node:internal/child_process:1098:16)
13 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:303:5)
14 verbose pkgid [email protected]
15 verbose cwd /exec
16 verbose Linux 5.19.0-1022-raspi
17 verbose node v18.20.4
18 verbose npm  v10.7.0
19 error path /exec
20 error command failed
21 error signal SIGSEGV
22 error command sh -c node dist/bundle/start.js
23 verbose exit 1
24 verbose code 1
25 error A complete log of this run can be found in: /home/spacebar/.npm/_logs/2024-10-12T16_47_46_783Z-debug-0.log

OzoneReloaded avatar Oct 12 '24 16:10 OzoneReloaded

Similar thing happens to me still -


> [email protected] start
> node dist/bundle/start.js


███████╗██████╗  █████╗  ██████╗███████╗██████╗  █████╗ ██████╗
██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗
███████╗██████╔╝███████║██║     █████╗  ██████╔╝███████║██████╔╝
╚════██║██╔═══╝ ██╔══██║██║     ██╔══╝  ██╔══██╗██╔══██║██╔══██╗
███████║██║     ██║  ██║╚██████╗███████╗██████╔╝██║  ██║██║  ██║
╚══════╝╚═╝     ╚═╝  ╚═╝ ╚═════╝╚══════╝╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝

                spacebar-server | Pre-release (3a561b5)

Commit Hash: 3a561b5cf605e03a2a4222edbc3e1dbc496da60e (3a561b5)
Cores: 4 (Using 1 thread(s).)

[Path] running in /exec/dist/bundle
[CPU] Cortex-A76 Cores x4
[System] linux arm64
[Process] running with PID: 18
[Process] starting with 1 threads
npm notice
npm notice New major version of npm available! 9.6.7 -> 11.3.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v11.3.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice
npm ERR! path /exec
npm ERR! command failed
npm ERR! signal SIGSEGV
npm ERR! command sh -c node dist/bundle/start.js

npm ERR! A complete log of this run can be found in: /home/spacebar/.npm/_logs/2025-04-21T03_26_32_319Z-debug-0.log

driftywinds avatar Apr 21 '25 03:04 driftywinds

error appears to be thrown from npm itself, not our code? so far unable to reproduce.

TheArcaneBrony avatar Apr 25 '25 01:04 TheArcaneBrony