Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crahses at startup, container won't run in arm64 #17

Open
Chillsmeit opened this issue Dec 12, 2023 · 2 comments
Open

Crahses at startup, container won't run in arm64 #17

Chillsmeit opened this issue Dec 12, 2023 · 2 comments

Comments

@Chillsmeit
Copy link

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

@vladimmi
Copy link

vladimmi commented Oct 9, 2024

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

@OzoneReloaded
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants